Hi Robin,
Again about the static link of wxPython to Python2.6, according http://lists.osafoundation.org/pipermail/chandler-dev/2003-May/000665.html. Sorry bother you , really need your help…
My steps are as below,
- Build wxWidgets according http://www.wxpython.org/BUILD.html
- …/configure --prefix=/opt/wx/2.8
–with-gtk
–with-gnomeprint
–with-opengl
–enable-debug
–enable-debug_gdb
–enable-geometry
–enable-graphics_ctx
–enable-sound --with-sdl
–enable-mediactrl
–enable-display
–disable-shared \
just add --disable-shared
- vim .make file, add
make $*
&& make -C contrib/src/gizmos $*
&& make -C contrib/src/stc $*
then,
- .make
- run make_static_setup.py
python make_static_setup.py build_ext --inplace --debug BUILD_GLCANVAS=0 BUILD_GIZMOS=0 WX_CONFIG=/root/dev/wxPython-src-2.8.11.0/bld/wx-config > ~/dev/Python-2.6.5/Modules/Setup.local
I attached the Setup.local, pleae check it.
- Configure and build Python
./configure
There is an error:
creating Modules/Setup.local creating Makefile bad word -pthread in core
…
blablabla, and the configure is exit.
So, I change the line “-pthread -g -O0” to “-lpthread -O0” in Setup.local and the configure is successful,
- make
There are many warnings like
cc1plus: warning: command line option “-Wstrict-prototypes” is valid for Ada/C/ObjC but not for C++
And,
/root/dev/wxPython-src-2.8.11.0/wxPython/src/gtk/_misc_wrap.cpp:4977: warning: ‘wxGetElapsedTime’ is deprecated (declared at /root/dev/wxPython-src-2.8.11.0/include/wx/stopwatch.h:77)
/root/dev/wxPython-src-2.8.11.0/wxPython/src/gtk/_misc_wrap.cpp:4977: warning: ‘wxGetElapsedTime’ is deprecated (declared at /root/dev/wxPython-src-2.8.11.0/include/wx/stopwatch
Final errors are:
/root/dev/wxPython-src-2.8.11.0/bld/lib/libwx_gtk2d_stc-2.8.a(stclib_DocumentAccessor.o):(.eh_frame+0x11): undefined reference to __gxx_personality_v0' /root/dev/wxPython-src-2.8.11.0/bld/lib/libwx_gtk2d_stc-2.8.a(stclib_Style.o):(.eh_frame+0x12): undefined reference to
__gxx_personality_v0’ collect2: ld returned 1 exit status make: *** [python] Error 1
This is the entire build process I executed.
Seems there are some errors about compile c source files and cpp source files meantime.
For Configure and build Python, I tried ./configure CC=gcc CXX=g++, the compile errors keep same…
I used Python-2.6.5.tar.bz2 and wxPython-src-2.8.11.0.tar.bz2, downloaded form www.python.org and www.wxpython.org. The platform is Redhat Linux Server release 5.4
Robin, any idea?
I feel I am approaching to the final success…But need your help, please give me your guidance for me to fix these errors.
Thanks in advance.
Setup.local (30.1 KB)