Thread: [Plib-devel] plib 1.8.5 won't pass the autoconf phase in Ubuntu Gutsy
Brought to you by:
sjbaker
From: Anton G. <gal...@gm...> - 2008-03-17 13:51:34
|
Hi there, I'm having problems to build plib 1.8.5 from sources due to a problem in autoconf. This is an Ubuntu Gutsy Linux distro with proper Mesa GL and pthreads installation. This is how the error looks from the outside: =============================== ... checking for pthread_create in -lpthread... no checking for glNewList in -lGL... no checking for glNewList in -lMesaGL... no configure: error: could not find working GL library ... =============================== And this is how it looks from config.log: =============================== configure:6287: checking for pthread_create in -lpthread configure:6322: gcc -o conftest -g -O2 conftest.c -lpthread -lSM -lICE -lXi -lXmu -lXext -lX11 -lm >&5 /usr/bin/ld: cannot find -lXi collect2: ld returned 1 exit status configure:6328: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "plib" | #define VERSION "1.8.5" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char pthread_create (); | int | main () | { | return pthread_create (); | ; | return 0; | } configure:6346: result: no configure:6358: checking for glNewList in -lGL configure:6393: gcc -o conftest -g -O2 conftest.c -lGL -lSM -lICE -lXi -lXmu -lXext -lX11 -lm >&5 /usr/bin/ld: cannot find -lXi collect2: ld returned 1 exit status configure:6399: $? = 1 configure: failed program was: | /* confdefs.h. */ | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define PACKAGE "plib" | #define VERSION "1.8.5" | /* end confdefs.h. */ | | /* Override any GCC internal prototype to avoid an error. | Use char because int might match the return type of a GCC | builtin and then its argument prototype would still apply. */ | #ifdef __cplusplus | extern "C" | #endif | char glNewList (); | int | main () | { | return glNewList (); | ; | return 0; | } configure:6417: result: no =============================== The problem in this installation was libxi-dev and libxmu-dev packages where not installed. But also, by replacing line 279 in config.in LIBS="$LIBS $X_PRE_LIBS -lXi -lXmu -lXext -lX11 $X_EXTRA_LIBS -lm" to something like this: LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lm" The compilation went smooth as silk. Maybe those libs are not really needed? Kind regards, Anton |
From: Fay J. F Dr C. U. 46 S. <joh...@eg...> - 2008-03-17 15:35:00
|
Anton, Does the PLIB that you build without the X libraries link properly with a sample program? PLIB itself is just a library and doesn't really need a final link step where everything must be defined; the real test of when libraries are needed comes in building an application. John F. Fay Technical Fellow Jacobs Technology TEAS Group 850-883-1294 -----Original Message----- From: pli...@li... [mailto:pli...@li...] On Behalf Of Anton Gomez Sent: Monday, March 17, 2008 8:52 AM To: pli...@li... Subject: [Plib-devel] plib 1.8.5 won't pass the autoconf phase in UbuntuGutsy Hi there, I'm having problems to build plib 1.8.5 from sources due to a problem in autoconf. This is an Ubuntu Gutsy Linux distro with proper Mesa GL and pthreads installation. This is how the error looks from the outside: <snip> The problem in this installation was libxi-dev and libxmu-dev packages where not installed. But also, by replacing line 279 in config.in LIBS="$LIBS $X_PRE_LIBS -lXi -lXmu -lXext -lX11 $X_EXTRA_LIBS -lm" to something like this: LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lm" The compilation went smooth as silk. Maybe those libs are not really needed? Kind regards, Anton |
From: Jan R. <slo...@gm...> - 2008-03-17 19:32:51
|
Am Mon, 17 Mar 2008 14:51:35 +0100 schrieb "Anton Gomez" <gal...@gm...>: > The problem in this installation was libxi-dev and libxmu-dev packages where > not installed. But also, by replacing line 279 in config.in > LIBS="$LIBS $X_PRE_LIBS -lXi -lXmu -lXext -lX11 $X_EXTRA_LIBS -lm" > > to something like this: > LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lm" > > The compilation went smooth as silk. Maybe those libs are not really needed? Hi, on my Ubuntu Gutsy box, configure && make works without any trouble: checking for pthread_create in -lpthread... yes checking for glNewList in -lGL... yes But I can recall that I experienced similar problems when I compiled CRRCsim on Gutsy for the first time. I then decided to remove these libs from the (very old) Makefiles and never really missed them. Kind regards, Jan R. PS: By the way, configure && make and the examples also work fine on Windows XP (using MinGW & MSYS). PPS: The SourceForge project page (http://sourceforge.net/projects/plib/) still shows 1.8.5-rc1 as the most recent release. -- Jan Reucker email: jan dot reucker at web dot de web: http://www.reucker-online.de |