Ubuntu 8.10 - BMax Not linking

Archives Forums/Linux Discussion/Ubuntu 8.10 - BMax Not linking

peltazoid(Posted 2009) [#1]
When compling when it gets to linking the code I get the following error.

Linking:maxide
/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status
Build Error: Failed to link /home/andy/BlitzMax/130D/MaxIDE-s/maxide
Process complete

It was ok last night as I complied maxide-ce on a newly installed and built 132. modules build ok still.

I have installed the V180 of the nvidia driver today, but going back to 177 has not changed anything.

the output from ls -al /usr/lib | grep GL is the following
lrwxrwxrwx 1 root root 19 2009-04-10 22:27 libGLcore.so.1 -> libGLcore.so.177.82
-rw-r--r-- 1 root root 14091772 2008-12-07 20:12 libGLcore.so.177.82
lrwxrwxrwx 1 root root 16 2009-03-08 12:45 libGLEW.so.1.5 -> libGLEW.so.1.5.0
-rw-r--r-- 1 root root 225068 2008-02-11 16:48 libGLEW.so.1.5.0
lrwxrwxrwx 1 root root 15 2009-04-10 22:27 libGL.so.1 -> libGL.so.177.82
-rw-r--r-- 1 root root 661380 2008-12-07 20:12 libGL.so.177.82
-rw-r--r-- 1 root root 697826 2008-10-22 04:54 libGLU.a
lrwxrwxrwx 1 root root 11 2009-03-14 23:45 libGLU.so -> libGLU.so.1
lrwxrwxrwx 1 root root 20 2009-03-08 12:45 libGLU.so.1 -> libGLU.so.1.3.070200
-rw-r--r-- 1 root root 460432 2008-10-22 04:54 libGLU.so.1.3.070200

i'm not too sure what happend to why ld can not find the GL library. I have also tried changing the path and using the dev build of 130 as well that gives the same error.

Any advice?
Cheers.


dawlane(Posted 2009) [#2]
looks like theres a link missing libGL.so -> libGL.so.177.82


peltazoid(Posted 2009) [#3]
Cheers, yep adding a symlink of libGL.so to the actual lib and blitz complies again.

I had missed that plus being rusty with linux I had thought the libGl.so.1 was the same thing. :(

Thanks again.