View previous topic :: View next topic |
Author |
Message |
Pasoa2000 n00b
Joined: 06 Jul 2002 Posts: 29
|
Posted: Mon Jul 08, 2002 5:44 pm Post subject: Gl.h |
|
|
When trying to emerge programs such as Tuxracer, or xscreensaver, the ebuild files as it can't find "GL/gl.h".
What am I missing?
I got my voodoo3 working by going to the dri sourceforge page and following instructions there. |
|
Back to top |
|
|
trythil Tux's lil' helper
Joined: 06 Jun 2002 Posts: 123 Location: RHIT, Terre Haute, IN, USA
|
Posted: Mon Jul 08, 2002 7:16 pm Post subject: |
|
|
gl.h (and other OpenGL header files) are required to build programs that make use of OpenGL. Just because your video card works doesn't necessarily mean that you have OpenGL -development- support installed.
If you're using DRI, you'll want the MesaGL libraries and header files. Emerge packages "mesa" and "mesa-glu". In my Portage tree it's masked, but that may be because I'm using the NVIDIA OpenGL libraries. |
|
Back to top |
|
|
Pasoa2000 n00b
Joined: 06 Jul 2002 Posts: 29
|
Posted: Mon Jul 08, 2002 9:04 pm Post subject: |
|
|
Ok....
tried emerging mesa 3.4
Got this as an error:
ibs/libMesaX11.al -lpthread -lc -Wl,-soname -Wl,libGL.so.1 -o .libs/libGL.so.1.2.030402
/usr/lib/libglide3.la: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[3]: *** [libGL.la] Error 1
make[3]: Leaving directory `/var/tmp/portage/mesa-3.4.2/work/Mesa-3.4.2/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/mesa-3.4.2/work/Mesa-3.4.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mesa-3.4.2/work/Mesa-3.4.2'
make: *** [all-recursive-am] Error 2
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_compile, Line 72, Exitcode 2
!!! (no error message)
!!! emerge aborting on /usr/portage/media-libs/mesa/mesa-3.4.2.ebuild .
trinity mesa #
So I did this....
trinity lib # ls libglide3.*
libglide3.a libglide3.la libglide3.so libglide3.so.3 libglide3.so.3.10.0
trinity lib # file libglide3.la
libglide3.la: ASCII English text
Anyone? |
|
Back to top |
|
|
trythil Tux's lil' helper
Joined: 06 Jun 2002 Posts: 123 Location: RHIT, Terre Haute, IN, USA
|
Posted: Mon Jul 08, 2002 9:36 pm Post subject: |
|
|
Files with extension .la usually denote Libtool instructions -- a set of parameters that tell libtool how to link a library.
Can you paste the -full- command that caused the emerge to die? From what I see there, it's not clear exactly what's going on. The most I can make out is that libGL is being built.
You may want to check that the version of libtool you're using is the same version that generated the libtool library files. For example:
Code: |
trythil@lothlann library $ libtool --version
ltmain.sh (GNU libtool) 1.4.1 (1.922.2.34 2001/09/03 01:22:13)
|
Code: |
trythil@lothlann library $ cat libcrescent.la | grep libtool
# libcrescent.la - a libtool library file
# Generated by ltmain.sh - GNU libtool 1.4.1 (1.922.2.34 2001/09/03 01:22:13)
|
|
|
Back to top |
|
|
|