wxPython linking problem compiling in cygwin - HELP

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

wxPython linking problem compiling in cygwin - HELP

Karl Kobata

 

 


From: Karl Kobata [mailto:[hidden email]]
Sent: Monday, September 17, 2007 11:13 AM
To: '[hidden email]'
Subject:

 

Please help.

I am compiling wxPython in the cygwin environment on a laptop.  I have posted a similar questions with wxPython user group, but since it is a compiler/linker related problem, the help is limited.

 

I am apparently missing libraries from GTK2/ATK/etc. required to resolve the references.

What libraries are they?

How can I verify that I have them?

What changes or options are required to resolve the errors?

What changes will I need to make to distutils to compile and link properly.

 

Please help.

karl

 

 

1) the configure files used is as follows:

../configure  \

   --prefix=/opt/wx/2.8  \

   --enable-optimise  \

   --enable-debug_flag  \

   --with-gtk=gtk+-2.0  \

   --disable-stl  \

   --disable-shared  \

   --disable-sound  \

   --enable-rpath=/opt/wx/2.8/lib

2) once installed I have edited the config.py file with

  - UNICODE = 0

  - WX_CONFIG = '/opt/wx/2.8/bin/wx-config'

3) set environment variable:

setenv LD_LIBRARY_PATH /opt/wx/2.8/lib

setenv PATH /opt/wx/2.8/bin:$PATH

4) execute python setup.py build_ext --inplace --debug

5) when the linking starts I get a slew of unresolved variables.  See below.

 

----------------------------------

> python setup.py build_ext --inplace --debug

Preparing CORE...

Preparing GLCANVAS...

Preparing STC...

Preparing GIZMOS...

running build_ext

building '_core_' extension

creating build-gtk2

creating build-gtk2/temp.cygwin-1.5.24-i686-2.5

creating build-gtk2/temp.cygwin-1.5.24-i686-2.5/src

creating build-gtk2/temp.cygwin-1.5.24-i686-2.5/src/gtk

gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -g -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE

-DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXGTK__ -DXTHREADS -DXUSE_MTSAFE_API -Iinclude -Isrc

-I/opt/wx/2.8/lib/wx/include/gtk2-ansi-debug-static-2.8

-I/opt/wx/2.8/include/wx-2.8 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.5 -c src/helpers.cpp -o build-gtk2/temp.cygwin-1.5.24-i686-2.5/src/helpers.o -g -O0

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -g -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE

-DWXP_USE_THREAD=1 -UNDEBUG -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -D__WXGTK__ -DXTHREADS -DXUSE_MTSAFE_API -Iinclude -Isrc

-I/opt/wx/2.8/lib/wx/include/gtk2-ansi-debug-static-2.8

-I/opt/wx/2.8/include/wx-2.8 -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/python2.5 -c src/gtk/_core_wrap.cpp -o build-gtk2/temp.cygwin-1.5.24-i686-2.5/src/gtk/_core_wrap.o -g -O0

cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++

src/gtk/_core_wrap.cpp: In function `PyObject* _wrap_GetAccelFromString(PyObject*, PyObject*, PyObject*)':

src/gtk/_core_wrap.cpp:32501: warning: `wxGetAccelFromString' is deprecated (declared at /opt/wx/2.8/include/wx-2.8/wx/utils.h:571)

src/gtk/_core_wrap.cpp:32501: warning: `wxGetAccelFromString' is deprecated (declared at /opt/wx/2.8/include/wx-2.8/wx/utils.h:571)

g++ -shared -Wl,--enable-auto-image-base -g

build-gtk2/temp.cygwin-1.5.24-i686-2.5/src/helpers.o

build-gtk2/temp.cygwin-1.5.24-i686-2.5/src/gtk/_core_wrap.o -L/usr/X11R6/lib -L/opt/wx/2.8/lib -L/usr/X11R6/lib -L/usr/X11R6/lib -L/usr/lib/python2.5/config -lgtk-x11-2.0 -lgthread-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lXft -lfreetype -lXrender -lXext -lfontconfig -lpangox-1.0 -lX11 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl -lSM -lexpat -lwxtiffd-2.8 -lwxjpegd-2.8 -lwxpngd-2.8 -lz -lpthread -liconv -lpython2.5 -o wx/_core_.dll /opt/wx/2.8/lib/libwx_gtk2d_aui-2.8.a /opt/wx/2.8/lib/libwx_gtk2d_xrc-2.8.a

/opt/wx/2.8/lib/libwx_gtk2d_qa-2.8.a /opt/wx/2.8/lib/libwx_gtk2d_html-2.8.a

/opt/wx/2.8/lib/libwx_gtk2d_adv-2.8.a /opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a

/opt/wx/2.8/lib/libwx_based_xml-2.8.a /opt/wx/2.8/lib/libwx_based_net-2.8.a

/opt/wx/2.8/lib/libwx_based-2.8.a

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_colour.o):colour.cpp:(.text+0x7b): undefined reference to `_gdk_colormap_free_colors'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_colour.o):colour.cpp:(.text+0xf1): undefined reference to `_gdk_colormap_alloc_color'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_colour.o):colour.cpp:(.text+0x7c7): undefined reference to `_gdk_color_parse'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x9c):undefined reference to `_g_source_remove'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xb2):undefined reference to `_gtk_widget_get_type'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xbd):undefined reference to `_g_type_class_peek'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xd4):undefined reference to `_g_signal_lookup'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xf7):undefined reference to `_g_signal_add_emission_hook'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x1f1):undefined reference to `_gtk_main_iteration'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x1f6):undefined reference to `_gtk_events_pending'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x2e3):undefined reference to `_gtk_widget_get_type'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x2f8):undefined reference to `_g_type_class_peek'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x316):undefined reference to `_gdk_threads_enter'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x344):undefined reference to `_gtk_events_pending'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x354):undefined reference to `_gdk_threads_leave'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x3f8):undefined reference to `_gtk_widget_get_type'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x40d):undefined reference to `_g_type_class_peek'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xd4):undefined reference to `_g_signal_lookup'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xf7):undefined reference to `_g_signal_add_emission_hook'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x1f1):undefined reference to `_gtk_main_iteration'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x1f6):undefined reference to `_gtk_events_pending'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x2e3):undefined reference to `_gtk_widget_get_type'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x2f8):undefined reference to `_g_type_class_peek'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x316):undefined reference to `_gdk_threads_enter'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x344):undefined reference to `_gtk_events_pending'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x354):undefined reference to `_gdk_threads_leave'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x3f8):undefined reference to `_gtk_widget_get_type'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x40d):undefined reference to `_g_type_class_peek'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x4c9):undefined reference to `_g_signal_lookup'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x4ec):undefined reference to `_g_signal_add_emission_hook'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x507):undefined reference to `_g_signal_lookup'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x52a):undefined reference to `_g_signal_add_emission_hook'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x53e):undefined reference to `_g_source_remove'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x578):undefined reference to `_gdk_threads_enter'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x5b1): undefined reference to `_gdk_threads_leave'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x6cb):undefined reference to `_g_idle_add_full

'/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x7a9):undefined reference to `_gtk_window_new'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0x7b6):undefined reference to `_gtk_widget_realize'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xa99):undefined reference to `_g_source_remove'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xb59):undefined reference to `_g_source_remove'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xc19):undefined reference to `_g_source_remove'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xcbc):undefined reference to `_gdk_visual_get_best_with_both'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xcda):undefined reference to `_gdk_colormap_new'

/opt/wx/2.8/lib/libwx_gtk2d_core-2.8.a(corelib_app.o):app.cpp:(.text+0xce2):undefined reference to `_gtk_widget_set_default_colorma ...........

/opt/wx/2.8/lib/libwx_based-2.8.a(baselib_zstream.o):zstream.cpp:(.text+0x405): undefined reference to `_inflateEnd'

/opt/wx/2.8/lib/libwx_based-2.8.a(baselib_zstream.o):zstream.cpp:(.text+0x4e5): undefined reference to `_inflateEnd'

/opt/wx/2.8/lib/libwx_based-2.8.a(baselib_zstream.o):zstream.cpp:(.text+0x6ab): undefined reference to `_inflate'

/opt/wx/2.8/lib/libwx_based-2.8.a(baselib_zstream.o):zstream.cpp:(.text+0xa39): undefined reference to `_zlibVersion'

/opt/wx/2.8/lib/libwx_based-2.8.a(baselib_zstream.o):zstream.cpp:(.text+0xa51): undefined reference to `_zlibVersion'

/opt/wx/2.8/lib/libwx_based-2.8.a(baselib_zstream.o):zstream.cpp:(.text+0xbc5): undefined reference to `_inflateInit2_'

/opt/wx/2.8/lib/libwx_based-2.8.a(baselib_zstream.o):zstream.cpp:(.text+0x12ea): undefined reference to `_deflateInit2_'

/opt/wx/2.8/lib/libwx_based-2.8.a(baselib_zstream.o):zstream.cpp:(.text+0x1733): undefined reference to `_deflateEnd'

/opt/wx/2.8/lib/libwx_based-2.8.a(baselib_zstream.o):zstream.cpp:(.text+0x180a): undefined reference to `_deflate'

/opt/wx/2.8/lib/libwx_based-2.8.a(baselib_zstream.o):zstream.cpp:(.text+0x1a15): undefined reference to `_deflate'

collect2: ld returned 1 exit status

error: command 'g++' failed with exit status 1

 

 


_______________________________________________
Compiler-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/compiler-sig