[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 |