Author Topic: OpenGl fails to build  (Read 5750 times)

Offline JRM

  • Single posting newcomer
  • *
  • Posts: 8
OpenGl fails to build
« on: July 07, 2007, 08:58:28 pm »
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
 

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?

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: OpenGl fails to build
« Reply #1 on: July 07, 2007, 09:03:50 pm »
Versuch mal ein
Code
ls -l /usr/lib | grep libX11*
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

Offline JRM

  • Single posting newcomer
  • *
  • Posts: 8
Re: OpenGl fails to build
« Reply #2 on: July 07, 2007, 09:29:00 pm »
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

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?

Offline TDragon

  • Lives here!
  • ****
  • Posts: 943
    • TDM-GCC
Re: OpenGl fails to build
« Reply #3 on: July 07, 2007, 09:34:05 pm »
darthdespotism: English only, please.

JRM: Yes, that is exactly what you need to do.
https://jmeubank.github.io/tdm-gcc/ - TDM-GCC compiler suite for Windows (GCC 9.2.0 2020-03-08, 32/64-bit, no extra DLLs)

Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: OpenGl fails to build
« Reply #4 on: July 07, 2007, 09:40:24 pm »
darthdespotism: English only, please.

I always try to remember, sry.

It's hard when you mostly post in german boards ;)

Offline JRM

  • Single posting newcomer
  • *
  • Posts: 8
Re: OpenGl fails to build
« Reply #5 on: July 07, 2007, 10:42:57 pm »
OK ! that's got it!

I put it under linker libraries in 'build options".
I was quite specific in specifying  /usr/X11R6/lib/libX11.so.6.2
Is this allright or too specific?

Thanks for your help.
If you're up for a challange, maybe you can help me get the QT4 wizard to operate under Linux?
Allot of it is also filname differences and directory structure, but after mesing with this that and the other, for a
couple of days, I gave up. At this point part of the issue may be things that I did to it.


Offline darthdespotism

  • Almost regular
  • **
  • Posts: 163
    • Coder's Nemesis
Re: OpenGl fails to build
« Reply #6 on: July 07, 2007, 11:01:29 pm »
I think the way TDragon thought of it was using -L/usr/X11R6/lib/ additionally to the -lX11