|
Home > Archive > Descent forums > September 2004 > "GL not found" error from d2x configure shell script
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
"GL not found" error from d2x configure shell script
|
|
| CharlieB 2004-09-08, 6:08 pm |
| I am trying to build the d2x project and when running configure it returns
the "GL not found" error. I installed all the packages named mesa except
the demos but I still get the same error.
I am running Mandrake 9.1. Here is what configure is reporting at the end:
checking for netipx/ipx.h... yes
checking for IMG_ReadXPMFromArray in -lSDL_image... no
checking for main in -lGL... no
configure: error: GL not found, --with-opengl cannot be used
Here is config.log....
configure:6149: checking for main in -lGL
configure:6175: gcc -o conftest -I/usr/include/SDL -D_REENTRANT -pipe -g
-Wall conftest.c -lGL
-L/usr/lib -lSDL -lpthread >&5
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
ls from /usr/X11R6/lib...
[charlie@localhost lib]$ ls GL
libGL.la* libGL.so.1.0* libGLU.la* libGLU.so.1.3.500*
libGL.so@ libGL.so.1.2* libGLU.so@ libGLw.a
libGL.so.1@ libGL.so.1.4.500* libGLU.so.1@ libGLwrapper.so.0.1.8*
I don't think I am missing any OpenGL files since when I add -lGL to one of
my programs it compiles OK. My program however does not use any OpenGL
functions but g++ was able to find the -lGL library.
Could someone let me know what configure is looking for or what I can do to
work around this and still use OpenGL with d2x?
Thanks in advance
| |
| Anima Prava 2004-09-08, 6:08 pm |
| Thu, 13 Nov 2003 19:19:46 +0000, CharlieB <cdbiem@nospam.net>:
quote:
>I am trying to build the d2x project and when running configure it returns
>the "GL not found" error. I installed all the packages named mesa except
>the demos but I still get the same error.
>
>I am running Mandrake 9.1. Here is what configure is reporting at the end:
[...]
Hello.
In order to compile D2X on a machine with Mandrake 9.1
I had to create the following softlinks to the GL library,
when exactly the same error message appeared.
(They seem not to be where D2X supposes to find them, I think).
In our case here this worked, I hope the same for you.
If not, sorry for misleading.
(please replace xxx with your version)
/usr/lib/libGLU.so -> /usr/X11R6/lib/libGLU.so.x.x.xxx
/usr/lib/libGLU.so.1 -> /usr/X11R6/lib/libGLU.so.x.x.xx
Command used:
ln -s /usr/X11R6/lib/libGLU.so.x.x.xxx /usr/lib/libGLU.so
ln -s /usr/X11R6/lib/libGLU.so.x.x.xxx /usr/lib/libGLU.so.1
However, be sure to install "all" the Mesa libraries, including the
"-devel" ones (this may look obvious to you, but it was not for me).
Regards,
Anima Prava.
| |
| CharlieB 2004-09-08, 6:08 pm |
| Anima Prava wrote:
quote:
> Thu, 13 Nov 2003 19:19:46 +0000, CharlieB <cdbiem@nospam.net>:
>
> [...]
>
> Hello.
> In order to compile D2X on a machine with Mandrake 9.1
> I had to create the following softlinks to the GL library,
> when exactly the same error message appeared.
> (They seem not to be where D2X supposes to find them, I think).
> In our case here this worked, I hope the same for you.
> If not, sorry for misleading.
>
> (please replace xxx with your version)
>
> /usr/lib/libGLU.so -> /usr/X11R6/lib/libGLU.so.x.x.xxx
> /usr/lib/libGLU.so.1 -> /usr/X11R6/lib/libGLU.so.x.x.xx
>
> Command used:
>
> ln -s /usr/X11R6/lib/libGLU.so.x.x.xxx /usr/lib/libGLU.so
> ln -s /usr/X11R6/lib/libGLU.so.x.x.xxx /usr/lib/libGLU.so.1
>
> However, be sure to install "all" the Mesa libraries, including the
> "-devel" ones (this may look obvious to you, but it was not for me).
>
> Regards,
> Anima Prava.
Thanks for the help Anima. You gave me the info I needed to get the
configure file to run. What I did was create 2 symbolic links...
/usr/lib/libGL.so -> /usr/X11R6/lib/libGL.so
/usr/lib/libGLU.so -> /usr/X11R6/lib/libGLU.so
I tried adding /usr/X11R6/lib to $PATH but that didn't work. Strange? Anyway
thanks a lot. Now tomorrow, on to compiling...
| |
| Anima Prava 2004-09-08, 6:08 pm |
| Thu, 13 Nov 2003 22:07:04 +0000, CharlieB <cdbiem@nospam.net>:
quote:
> Now tomorrow, on to compiling...
Good luck.
Please see if you can find a new error message for my huge collection.
: )
Regards,
Anima Prava
| |
|
| I think this question is best referred to the descent-source mailing list.
The link is on the D2X page.
rms
|
| |
|
|