[GtkGLExt] Cross Compilation Errors



Thanks Braden

I've checked out again and I get errors in the examples (see the end of this message).

I manually commented out the examples build in the makefile and it ran to completion OK. ie: i was able to make install.

However I'm still stuck because I rely upon mingw32-pkg-config to list the cflags and the ldflags. After make install I can't use these:

$ mingw32-pkg-config --cflags gdkglext-win32-1.0
Package pangox was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangox.pc'
to the PKG_CONFIG_PATH environment variable
Package 'pangox', required by 'GdkGLExt', not found

the same errors appear when I issue:

$ mingw32-pkg-config --cflags gdkglext-1.0

and the same errors appear when i use --libs.

It's so close - I'd resolve them myself if I could, but at this level it's a bit beyond me.

Cheers
Tristen

ps: here's the linking errors from the examples:

/bin/sh ../libtool --tag=CC   --mode=link i686-pc-mingw32-gcc  -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -mms-bitfields -Wl,-luuid -L/usr/i686-pc-mingw32/sys-root/mingw/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell32 -lole32 -latk-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lm -lcairo -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl   -lgdi32 -luser32 -lkernel32  -o button.exe button.o ../gdk/libgdkglext-win32-1.0.la ../gtk/libgtkglext-win32-1.0.la libdrawshapes.la 
libtool: link: i686-pc-mingw32-gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4 -mms-bitfields -mms-bitfields -Wl,-luuid -o .libs/button.exe button.o  -L/usr/i686-pc-mingw32/sys-root/mingw/lib ../gdk/.libs/libgdkglext-win32-1.0.dll.a ../gtk/.libs/libgtkglext-win32-1.0.dll.a /share/tristen/kits/gtkglext/gdk/.libs/libgdkglext-win32-1.0.dll.a -lopengl32 -lpthread ./.libs/libdrawshapes.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libgtk-win32-2.0.dll.a -lcomdlg32 -lwinspool -lcomctl32 /usr/i686-pc-mingw32/sys-root/mingw/lib/libgdk-win32-2.0.dll.a -limm32 -lshell32 /usr/i686-pc-mingw32/sys-root/mingw/lib/libatk-1.0.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libgdk_pixbuf-2.0.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libgio-2.0.dll.a -lshlwapi -ldnsapi /usr/i686-pc-mingw32/sys-root/mingw/lib/libpangocairo-1.0.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libpangowin32-1.0.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libpango-1.0.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libcairo.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libpixman-1.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libpng12.dll.a -lmsimg32 /usr/i686-pc-mingw32/sys-root/mingw/lib/libz.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libgobject-2.0.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libgmodule-2.0.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libgthread-2.0.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libglib-2.0.dll.a -lws2_32 -lole32 /usr/i686-pc-mingw32/sys-root/mingw/lib/libintl.dll.a /usr/i686-pc-mingw32/sys-root/mingw/lib/libiconv.dll.a -lgdi32 -luser32 -lkernel32 -lglu32 -L/usr/i686-pc-mingw32/sys-root/mingw/lib
./.libs/libdrawshapes.a(drawshapes.o): In function `teapot':
/share/tristen/kits/gtkglext/examples/drawshapes.c:799: undefined reference to `_glPushAttrib 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:806: undefined reference to `_glScalef 12'
/share/tristen/kits/gtkglext/examples/drawshapes.c:830: undefined reference to `_glMap2f 40'
/share/tristen/kits/gtkglext/examples/drawshapes.c:832: undefined reference to `_glMap2f 40'
/share/tristen/kits/gtkglext/examples/drawshapes.c:834: undefined reference to `_glMapGrid2f 24'
/share/tristen/kits/gtkglext/examples/drawshapes.c:835: undefined reference to `_glEvalMesh2 20'
/share/tristen/kits/gtkglext/examples/drawshapes.c:836: undefined reference to `_glMap2f 40'
/share/tristen/kits/gtkglext/examples/drawshapes.c:838: undefined reference to `_glEvalMesh2 20'
/share/tristen/kits/gtkglext/examples/drawshapes.c:849: undefined reference to `_glPopAttrib 0'
/share/tristen/kits/gtkglext/examples/drawshapes.c:840: undefined reference to `_glMap2f 40'
/share/tristen/kits/gtkglext/examples/drawshapes.c:842: undefined reference to `_glEvalMesh2 20'
/share/tristen/kits/gtkglext/examples/drawshapes.c:843: undefined reference to `_glMap2f 40'
/share/tristen/kits/gtkglext/examples/drawshapes.c:845: undefined reference to `_glEvalMesh2 20'
./.libs/libdrawshapes.a(drawshapes.o): In function `drawBox':
/share/tristen/kits/gtkglext/examples/drawshapes.c:121: undefined reference to `_glBegin 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:122: undefined reference to `_glNormal3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:123: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:124: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:125: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:126: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:127: undefined reference to `_glEnd 0'
./.libs/libdrawshapes.a(drawshapes.o): In function `pentagon':
/share/tristen/kits/gtkglext/examples/drawshapes.c:650: undefined reference to `_glBegin 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:651: undefined reference to `_glNormal3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:652: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:653: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:654: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:655: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:656: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:657: undefined reference to `_glEnd 0'
./.libs/libdrawshapes.a(drawshapes.o): In function `recorditem':
/share/tristen/kits/gtkglext/examples/drawshapes.c:361: undefined reference to `_glBegin 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:362: undefined reference to `_glNormal3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:363: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:364: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:365: undefined reference to `_glVertex3fv 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:366: undefined reference to `_glEnd 0'
./.libs/libdrawshapes.a(drawshapes.o): In function `doughnut':
/share/tristen/kits/gtkglext/examples/drawshapes.c:261: undefined reference to `_glBegin 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:271: undefined reference to `_glNormal3f 12'
/share/tristen/kits/gtkglext/examples/drawshapes.c:272: undefined reference to `_glVertex3f 12'
/share/tristen/kits/gtkglext/examples/drawshapes.c:273: undefined reference to `_glNormal3f 12'
/share/tristen/kits/gtkglext/examples/drawshapes.c:274: undefined reference to `_glVertex3f 12'
/share/tristen/kits/gtkglext/examples/drawshapes.c:276: undefined reference to `_glEnd 0'
./.libs/libdrawshapes.a(drawshapes.o): In function `draw_torus':
/share/tristen/kits/gtkglext/examples/drawshapes.c:308: undefined reference to `_glPushAttrib 4'
/share/tristen/kits/gtkglext/examples/drawshapes.c:309: undefined reference to `_glPolygonMode 8'
/share/tristen/kits/gtkglext/examples/drawshapes.c:311: undefined reference to `_glPopAttrib 0'
collect2: ld returned 1 exit status
make[2]: *** [button.exe] Error 1
make[2]: Leaving directory `/share/tristen/kits/gtkglext/examples'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/share/tristen/kits/gtkglext'
make: *** [all] Error 2


 

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]