FW: HELP - wxPython - cygwin setup.py errors

Karl Kobata wrote:

The undefined references would indicate a library that is missing.
What library would that be?

Looks like it is not getting at least the gdk, gtk and zlib libraries, and probably in the section that you clipped out it is also missing the rest of the libs that are implicitly linked with by wxGTK. Apparently cygwin requires that you explicitly link with them.

What library entry will I need to add?

Look at the libs that were linked with wxGTK when it was built and add them.

···

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

Robin Dunn wrote:

Karl Kobata wrote:

The undefined references would indicate a library that is missing.
What library would that be?

Looks like it is not getting at least the gdk, gtk and zlib libraries, and probably in the section that you clipped out it is also missing the rest of the libs that are implicitly linked with by wxGTK. Apparently cygwin requires that you explicitly link with them.

What library entry will I need to add?

Look at the libs that were linked with wxGTK when it was built and add them.

I'm also on the Cygwin trail, but I am attempting to build with the MSW toolkit. I've tried to tweak config.py to provide the right environment, and am currently seeing this:

sholden@bigboy ~/Projects/wxPython28
$ UNICODE=0 WXPORT=msw python setup.py build_ext --inplace --debug 2>&1

more

Found wx-config: /home/wx28/bin/wx-config
     Using flags: --toolkit=msw --unicode=no --version=2.8
Cygwin WXPORT
Cygwin: added libdir /lib/w32api
Preparing CORE...
Preparing GLCANVAS...
Preparing STC...
Preparing GIZMOS...
running build_ext
building '_core_' extension
g++ -shared -Wl,--enable-auto-image-base -g build-msw/temp.cygwin-1.5.24-i686-2.5/src/helpers.o build-msw/temp.cygwin-1.5.24-i686-2.5/src/msw/_core_wrap.o -L/usr/X11R6/lib -L/lib/w32api -L/home/wx28//lib -L/usr/lib/python2.5/config -lexpat -lwxtiff-2.8 -lwxjpeg-2.8 -lwxpng-2.8 -lz -lrpcrt4 -loleaut32 -lole32 -luuid -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32 -lkernel32 -luser32 -lpython2.5 -o wx/_core_.dll /home/wx28//lib/libwx_msw_aui-2.8.a /home/wx28//lib/libwx_msw_xrc-2.8.a /home/wx28//lib/libwx_msw_qa-2.8.a /home/wx28//lib/libwx_msw_html-2.8.a /home/wx28//lib/libwx_msw_adv-2.8.a /home/wx28//lib/libwx_msw_core-2.8.a /home/wx28//lib/libwx_base_xml-2.8.a /home/wx28//lib/libwx_base_net-2.8.a /home/wx28//lib/libwx_base-2.8.a
/home/wx28//lib/libwx_msw_core-2.8.a(corelib_app.o):app.cpp:(.text+0x665): undefined reference to `_InitCommonControls@0'
/home/wx28//lib/libwx_msw_core-2.8.a(corelib_app.o):app.cpp:(.text+0x680): undefined reference to `_OleInitialize@4'
...
Lots of other undefined symbols.

However I understood that _InitCommonControls@0 should be provided by COMCTL32.DLL, which I assume (possibly wrongly) will be represented by /lib/w32api/libcomctl32.a. Clearly it's not, as I see both -L/lib/w32api and -lcomctl32 in the g++ command line.

It's a while since I did any C++, so if anyone can point out how I am going wrong I would be grateful.

regards
  Steve

···

--
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://del.icio.us/steve.holden

Sorry, the dog ate my .sigline