What the heck?

Archives Forums/Linux Discussion/What the heck?

SkyCube(Posted 2005) [#1]
Hi again,

Sorry to post two topics in a row, but I keep getting this message when trying to build the fireworks example:

Building fireworks
linking: fireworks.debug
/usr/bin/ld: cannot find -lGLU
collect2: ld returned 1 exit status

I assumed this refers to the GLUT library, so I installed it, but no change. I am using Linspire Linux.


N(Posted 2005) [#2]
I am using Linspire Linux.


Since you're probably the only person here using that, good luck.


Perturbatio(Posted 2005) [#3]
Make sure you have xorg-X11-devel-* packages installed.
Also some people seem to have installed:
gcc
gobjc-3.3
libsdl1.2-dev
xxf86vm-dev

and it then works.


SkyCube(Posted 2005) [#4]
Hello again,

Thanks for the info, Perturbatio. Are all those packages absolutely essential? I can't seem to find xxf86vm. What is it?


Perturbatio(Posted 2005) [#5]
I don't know which platform that was for, it's not one I've installed, but I remember reading a thread on the linux forum where installing that solved it (I think it's *f86vm-dev)


SkyCube(Posted 2005) [#6]
Thanks again,

I will try to search for it, but I don't think it's available on Linspire's CNR Warehouse. I'll have to get it from elsewhere.


Perturbatio(Posted 2005) [#7]
I don't recall installing it on my distro, I do recall installing xorg-X11-devel-* , libgcc (or similar) and lib64MesaGLU1 (hang on a mo... that could be it).

obviously you won't be using the 64 bit version unless you're running 64bit linux.


SkyCube(Posted 2005) [#8]
I installed Mesa, like you suggested Perturbatio, but I now get this message when I try to compile:

/usr/bin/ld: cannot find -lGL

Could I still be missing something?


N(Posted 2005) [#9]
What version of Xorg or XFree86 do you have, SkyCube?


Perturbatio(Posted 2005) [#10]
this is a list of all modules I have installed that contain "gl":
glib-gettextize-2.6.3-1mdk
libglib2.0_0-devel-2.6.3-1mdk
lib64Mesaglut3-5.0.2-9mdk
lib64MesaGLU1-devel-5.0.2-9mdk
lib64glib1.2-1.2.10-15mdk
glibc-devel-2.3.4-8mdk
lib64glade2.0_0-2.4.2-1mdk
libglib1.2-1.2.10-15mdk
lib64Mesaglut3-devel-5.0.2-9mdk
lib64dbus-glib-1_0-0.23.2-2mdk
lib64glib2.0_0-devel-2.6.3-1mdk
perl-Glib-1.080-1mdk
lib64glade-gnome0-0.17-12mdk
lib64glitz1-0.4.0-2mdk
libMesaGLU1-devel-5.0.2-9mdk
lib64glib2.0_0-2.6.3-1mdk
lib64MesaGLU1-5.0.2-9mdk
lib64glade0-0.17-12mdk
lib64taglib0-1.3.1-3mdk
perl-GTK-Glade-0.7009-3mdk
glibc-2.3.4-8mdk
libglib2.0_0-2.6.3-1mdk
libMesaGLU1-5.0.2-9mdk




SkyCube(Posted 2005) [#11]
I am using X.org version 6.8.2

I am perusing through your list, Perturbatio, seeing if I have those packages...

Boy, running Blitz on Linux has been a real pain for me. The windows version worked just fine.


Alden(Posted 2005) [#12]
This is the list of shared objects used to compile fireworks example.
Some of them are just links pointing to so-s at another place,
libGL.so.1 to libGL.so.1.0.7174 in same dir,
libGLU.so.1 to libGLU.so.1.3 in same dir,
libGLcore.so.1 to libGLcore.so.1.0.7174, and so on.

# ldd ./fireworks.debug
        libGL.so.1 => /usr/lib/libGL.so.1 (0x006d4000)
        libGLU.so.1 => /usr/X11R6/lib/libGLU.so.1 (0x005bc000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x00bd4000)
        libXxf86vm.so.1 => /usr/X11R6/lib/libXxf86vm.so.1 (0x00cad000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x07c05000)
        libm.so.6 => /lib/tls/libm.so.6 (0x00ba9000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x0099d000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00d3c000)
        libc.so.6 => /lib/tls/libc.so.6 (0x00a7d000)
        libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0x021b8000)
        libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0x005b8000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x00c9d000)
        libdl.so.2 => /lib/libdl.so.2 (0x00bce000)
        /lib/ld-linux.so.2 (0x00a63000)


I'm not some linux hotshot so I'm not sure, but if you have all the files, maybe all you're missing is a link.
I guess it could be worth checking out.
Hope it helps.


Dreamora(Posted 2005) [#13]
I needed 4 clicks on Xandros

1 for GCC
3 for the GL libraries ;)


if Linspire does have a similar "installation - update" tools as most commercial distros, you should be able to isntall gcc and libmesa from there as well without much pain :)


SkyCube(Posted 2005) [#14]
hmm, I will try to compile from the terminal like you did, Alden. Maybe then I can find the missing dependencies... I know I am missing xxf86vm. Does anyone know where I can get this lib to manually compile it? It doesn't seem to be available from Linspire's Click N' Run Warehouse (CNR). Once again , thanks for your help everyone.


Robert(Posted 2005) [#15]
Hi SkyCube

I think you have the necessary libraries, it is just that they are probably in the wrong place.

Try the following:

1. Open up a console (Easiest method: Go to [KDE Menu] > Run, type in "konsole" and click OK)

2. Type in "ld -lGLU -L/usr/X11R6/lib" (without the quotes) and let me know what output you get .


SkyCube(Posted 2005) [#16]
Hi Robert.

I tried the command you said and I got this:

ld: cannot find -lGLU


Perturbatio(Posted 2005) [#17]
Do you have libMesaGL* installed?

you can check what GL rpms you have on most distros with:
urpmi -qa | grep -i gl



Alden(Posted 2005) [#18]
You can find xxf86vm in "X11 Development Library" at cnr warehouse.


SkyCube(Posted 2005) [#19]
After having checked in my /usr/lib and /usr/X11R6/lib I noticed I don't have the following:

libGL.so.1
libGLcore.so.1
libdl.so.2

I didn't check the whole list provided by Alden, but I thinkI don't have libnvidia as I am using an ATI video card. Can you tell me which packages include these files?

Linspire is based on Debian, so I'm not sure if the urpmi command will work though I haven't tried it.

I think it could also be a link problem. BlitzMax seems to search for g++, but in Linspire it is named G++-0.95, so I had to create a static link "g++".


BlitzSupport(Posted 2005) [#20]
First of all...

Boy, running Blitz on Linux has been a real pain for me. The windows version worked just fine.


Welcome to Linux!

OK, just been through much the same thing myself (being pretty clueless in Linux), on Ubuntu Linux 5.04. Here's what I installed via the Synaptic Package Manager (according to the history output), bearing in mind it installs any dependencies required -- this was a case of install, try to run, then try something else from people's hints here!

OK, needed g++, so selected that, and Synaptic picked the following packages...
Installed the following packages:
g++ (4:3.3.5-1)
g++-3.3 (1:3.3.5-8ubuntu2)
gcc (4:3.3.5-1)
gcc-3.3 (1:3.3.5-8ubuntu2)
libstdc++5-3.3-dev (1:3.3.5-8ubuntu2)

... nope. Tried selecting xlibmesa-gl-dev:

Installed the following packages:
libx11-dev (6.8.2-10)
libxext-dev (6.8.2-10)
libxi-dev (6.8.2-10)
libxkbfile-dev (6.8.2-10)
x-dev (6.8.2-10)
xlibmesa-gl-dev (6.8.2-10)

... nope. Mention of GLU, so tried xlibmesa-glu-dev:
Installed the following packages:
freeglut3-dev (2.2.0-8)
libglut3-dev (3.7-25)
xlibmesa-glu-dev (6.8.2-10)

... nope. Still wants xxf86vm:
Installed the following packages:
libxxf86vm-dev (6.8.2-10)

Success!

Incidentally, RockOut was the first hardware-accelerated 3D Linux program I've ever seen in several years of trying to get hardware 3D working! Ubuntu didn't quite get the driver fully working by default, but their help docs did.


skidracer(Posted 2005) [#21]
I've been meaning to do a clean install of Ubuntu32 to confirm the following script to get up and programming with BlitzMax:

sudo apt-get install libgl-dev
sudo apt-get install libglu-dev
sudo apt-get install libxxf86vm-dev
sudo apt-get install libx11-dev
sudo apt-get install g++

if you have nvidia then you need nvidia-dev I think it is which will give you the nvidia-settings applcation which got me setup with the first distro I have seen with GL shaders in action.


peltazoid(Posted 2005) [#22]
I'm also getting the ld cannot find -lGLU message.

in my /usr/X11R6/lib directory I have

libGL.so.1 -> libGL.so.1.2
libGLU.so.1 -> libGLU 1.3.502

but it will not compile anything.

I'm running mandrake (mandriva) download edition 10.2 any suggestions?


The Caffeine Kid(Posted 2005) [#23]
I'm not even getting any error messages, it just doesnt seem to do anything. :(

I've installed loads of packages, even managed to rebuild all the modules ok, but when you click compile it says ok but doesnt run anything, and there are no compiled versions or bmx folders in my project directory.

(ubuntu btw)


Punksmurf(Posted 2006) [#24]
I'm new to linux and I'm using Ubuntu. Also, I have some troubles getting things running.

At first, Blitz wouldn't even start, but it started working after installing libstdc++.so.5 or something like that. Then it began bugging me about the -lgl thingy, and I couln't find the mesa-thing from James' post. After searching a lot, it seems to be there but a slightly different name - instead of libmesa (or so) it was calles mesalib. Probably I have a newer Ubuntu-release, I don't know.

However, now it comes up with the following:



Now there seems to be some conflict, but I don't know how to solve that. Removing the .so.5 thing will make Blitz stop working and removing the .so.6 thing will make Synaptic remove almost all applications.

Who can guide me in trough new and exiting world filled with evil anchronyms?

edit:

What the heck, there is a nice topic (http://www.blitzbasic.com/Community/posts.php?topic=50644) about installing BlitzMax under Ubunu. Now why didn't the search point that out? Anyway, I'm rebuilding my modules now - that seems to be neccesairy. Hopefully it'll work.

edit:

Aye... it did!