Troubles building from current CVS image

Mark Livingstone wrote:

Hi Robin,

I have just downloaded the current wxWindows CVS image getting wxPython
along with it. I am learning Python and wxWindows to help me in my job as QA
Manager of the Sourceforge Mahogany Email / News program. "Once upon a time"
Mahogany used to have Python support but that ended somewhere around Python
2.1 and now doesn't even get compiled by the make files. We want to bring it
back so I am investigating the possibilities.

So, I went to wxWindows/wxPython/BUILD.unix.txt which referred me
to ../README.1st.txt The only problem is there is no such file at that
location :slight_smile:

So, I went looking for one and found one in wxWindows/wxPython/distrib/ Is
that the one you were referring to?

Yes, the file is moved to the root when I make the wxPythonSrc tarball and so it is written as if it is in that location.

Presuming it was, I read it and made wxPython/build, went there but then
realised there ain't any ../configure for it to run in the wxPython
directory above it :wink:

Were you meaning the build process to be done from wxWindows/build?

Yes. When the README.1st.txt is moved then it would make more sense.

It
seems so. So I did that and using the directions managed to create the
desired wxGtk. I then went on to the wxPython part but it failed:

gcc -DNDEBUG -O2 -fomit-frame-pointer -pipe -march=i586 -mcpu=pentiumpro -fPIC - DSWIG_GLOBAL -DHAVE_CONFIG_H -DWXP_USE_THREAD=1 -UNDEBUG -D__WXDEBUG__ -D__WXGTK __ -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -Isrc -I/usr/lib/wxPython/lib/wx/includ e/gtkd-2.5 -I/usr/lib/wxPython/include -I/usr/include/gtk-1.2 -I/usr/include/gli b-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -I/usr/include/python2.2 -c s rc/gtk/misc2.cpp -o build/temp.linux-i686-2.2/src/gtk/misc2.osrc/gtk/misc2.cpp: In function `bool wxThread_IsMain()':src/gtk/misc2.cpp:120: `wxThread' undeclared (first use this function)src/gtk/misc2.cpp:120: (Each undeclared identifier is reported only once for eac h function it appears in.)src/gtk/misc2.cpp:120: parse error before `::' tokenerror: command 'gcc' failed with exit status 1[root@sovereign wxPython]#

wxPython assumes that wxThread is always available but apparently it is not in this case. The only way that wxThread could not be declared is if it was either manually or automatically disabled in wxWindows configure. So you'll want to look at the output of that step and see if you can figure out why wxThread was disabled.

BTW, I've havn't tried these build instructions with 2.5 yet. Although I expect them to work, if you run into troubles related to the rpath you may want to take out that configure option and just ensure that the LD_LIBRARY_PATH is set to wherever you installed wxGTK to. (Or use a standard --prefix.)

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!