User forums > Help
OpenGl fails to build
JRM:
Hello
I just tried to build the example project for OpenGl on my FC4 linux box.
here's the message;
--- Code: ----------------- Build: Debug in GLtest ---------------
Linking console executable: bin/Debug/GLtest
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
--- End code ---
i don't know where -lX11 is generated. i looked in build options/linker but found no eveidence of it.
Naturally there is no lX11 directory only the X11 , so how does one fix this?
darthdespotism:
Versuch mal ein
--- Code: ---ls -l /usr/lib | grep libX11*
--- End code ---
auf der Konsole, bei mir liefert das folgendes Ergebniss:
--- Code: ---darthdespotism@akazieLX:~$ ls -l /usr/lib | grep libX11*
-rw-r--r-- 1 root root 19748382 2007-04-04 10:59 libX11.a
lrwxrwxrwx 1 root root 15 2007-05-01 11:47 libX11.so -> libX11.so.6.2.0
lrwxrwxrwx 1 root root 15 2007-04-30 23:03 libX11.so.6 -> libX11.so.6.2.0
-rw-r--r-- 1 root root 986540 2007-04-04 10:59 libX11.so.6.2.0
--- End code ---
JRM:
well, I don't speak German, but I ran the command and came up EMPTY in that /usr/lib directory.
Then I did this:
--- Code: ---[root@localhost jim]# locate libX11
/usr/X11R6/lib/libX11.a
/usr/X11R6/lib/libX11.so
/usr/X11R6/lib/libX11.so.6
/usr/X11R6/lib/libX11.so.6.2
/usr/i486-linuxaout/lib/libX11.so.6
/usr/i486-linuxaout/lib/libX11.so.3
/usr/i486-linuxaout/lib/libX11.so.6.0
/usr/i486-linuxaout/lib/libX11.so.3.1.0
--- End code ---
I belive the /usr/X11R6/lib/ is the standard path for FC-4
Will it work if I put this in the linker directory search?
TDragon:
darthdespotism: English only, please.
JRM: Yes, that is exactly what you need to do.
darthdespotism:
--- Quote from: TDragon on July 07, 2007, 09:34:05 pm ---darthdespotism: English only, please.
--- End quote ---
I always try to remember, sry.
It's hard when you mostly post in german boards ;)
Navigation
[0] Message Index
[#] Next page
Go to full version