Re: [Plib-users] Errors building plib1.8.5
Brought to you by:
sjbaker
From: Stuart M. <stu...@bl...> - 2008-04-21 16:03:32
|
Hi, I'm afraid I'm not up on specifics as in how to fix this, but I can explain the process and hopefully that might help you track down the problem. What the configure script is doing is generating test code which it compiles to see if it can find various libraries that are needed.So for example to see if ti can find the OpenGL library it generates code which calls glNewList (a function that must be in the library). It compiles and links that code and if works then it found the library. So the /usr/include/GL won't afect this since it's about libraries, not include files. You need to find the location of libraries and ensure the -L compiler flag sets the path to search for those libraries e.g. if they are in /usr/local/lib then you need a -L /usr/local/lib so that -lMesaGL flag will find the /usr/local/lib/libMesa.sl library (name probably is different, like I said I don't know much about specifics on different machines). Hopefully that is some help. Cheers, Stuart. Felipe De La Puente wrote: > Hello guys, I'm using Ubuntu 8.04 with nvidia drivers 169.12 and > Kernel 2.6.24-16 in a AMD64 machine, and in the "./configure" stage of > the building process i got the following error: > > configure:6285: checking for pthread_create in -lpthread > configure:6320: 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:6326: $? = 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:6344: result: no > > > And the following: > > configure:6428: checking for glNewList in -lMesaGL > configure:6463: gcc -o conftest -g -O2 conftest.c -lMesaGL -lSM > -lICE -lXi -lXmu -lXext -lX11 -lm >&5 > /usr/bin/ld: cannot find -lMesaGL > collect2: ld returned 1 exit status > configure:6469: $? = 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:6487: result: no > configure:6497: error: could not find working GL library > > I have executed ./configure --prefix=/usr/local --with-GL=/usr because > I have the directory /usr/include/GL. > > Hope anyone can help, I'll really apreciate it. > > Greetings, Felipe. > > > PS: I've attached the config.log file. > PS2: I have installed all the libgl1-mesa-dev, libgl1-mesa-dri, > libgl1-mesa-glx, libglu1-mesa, libglu1-mesa-dev, and almost *mesa* > packages. > -- > ATTE: > Hernán Felipe De la Puente Christen > Móvil: 093199807 > ICQ : 58547127 > MSN : fde...@gm... <mailto:fde...@gm...> > Web : http://www.udec.cl/%7Ehdelapuente > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > ------------------------------------------------------------------------ > > _______________________________________________ > plib-users mailing list > pli...@li... > https://lists.sourceforge.net/lists/listinfo/plib-users > |