[wxPython-users] Further wxPython/cygwin setup issues (msw)
Robin Dunn
robin at alldunn.com
Fri Sep 14 16:50:14 PDT 2007
Steve Holden wrote:
> 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 at 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 at 0'
> /home/wx28//lib/libwx_msw_core-2.8.a(corelib_app.o):app.cpp:(.text+0x680):
> undefined reference to `_OleInitialize at 4'
> ...
> Lots of other undefined symbols.
>
> However I understood that _InitCommonControls at 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.
I've never tried using the cygwin compiler for windows API apps so I'm
just shooting in the dark here... I think I would try building one of
the wxWidgets C++ samples and see what flags and libs that it links with
and then try to get wxPython's setup.py to duplicate it.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wxpython-users
mailing list