Hi all,
I have been using wxPython 2.6.3.3 on Solaris 10 and would like to try
migrate to the latest version. Upon building 2.8.9.2 I've encountered
an issue with Cairo. When I try to build with it, the file
graphic.cpp fails to compile because gdk_cairo_create isn't found. I
then built without Cairo (actually I did this first since I didn't
know any better) and get warnings that I will not be able to set
wxUSE_GRAPHICS_CONTEXT.
I'm building according to the INSTALL and BUILD documents with some
differences.
Here's the .configure script:
../configure --prefix=/opt/wx/2.8 \
--with-gtk \
--with-gnomeprint \
--enable-debug_gdb \
--enable-geometry \
--enable-graphics_ctx \
--enable-sound --with-sdl \
--enable-mediactrl \
--enable-display \
--enable-unicode \
--with-libjpeg=builtin \
--with-libpng=builtin \
--with-libtiff=builtin \
--with-zlib=builtin \
--enable-optimize \
--enable-debug_flag \
I'm building with gmake instead of make.
When I build with Cairo, I set the environment variables:
CCFLAGS=-I/usr/local/include/cairo
PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
Upon researching the list, I think that the reason for not being able
to build with Cairo may be that I need GTK+ version 2.8 or better. The
GTK+ version I have is 2.4.9. I haven't tried to upgrade that yet,
since I think I have apps that depend on it.
I've been trying to determine what I give up without
wx.GraphicsContextDC. It seems that it renders graphics without
aliasing. Please correct me if I'm wrong, but it looks like I would
not be able to use wx.FloatCanvas that has some features of interest
to me.
My app primarily displays images, with rectangular graphics drawn into
them, with zooming and sliders. Other displays are line, bar, and
radial graphs for which I use wx.lib.plot.py.
My question at this point is whether there is anything I haven't
mentioned that would put me at a disadvantage in not using Cairo?
For example are there any performance differences? I'm trying to
speed up image display and particularly zooming/scrolling that are
quite slow for my image sizes (~4Kx3K), whereas the similar operations
with gimp are fairly speedy.
Regards,
Chris Botos