SDL_mixer.h, ld cannot find -lSDL_mixer, nvidia-glx

Trying to build your own version of Vega Strike and having problems? Unix users, paste your config.log here (stderr output alone is not helpful).
Post Reply
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

SDL_mixer.h, ld cannot find -lSDL_mixer, nvidia-glx

Post by boeser.wolff »

when compiling vegastrike_0_3_9 i got

"SDL_mixer.h not found" configure does obviously not check wheter SDL_mixer is there...
after installing libsdl-mixer-dev and getting a /usr/include/SDL/sdl_mixer.h,

/usr/sbin/ld complains that -lSDL_mixer is not there.... SDL is working fine... a link /usr/lib/libSDL_mixer.so -> /usr/lib/libSDL_mixer-1.2.so.0 or libSDL_mixer-1.2.so.0.2.3 solved that one

and one last: when installing nvidia-glx...deb, build from nvidia-glx-src, GLU/glut cannot be found, the nvidia-glx-package provides the following files:

/usr/lib/libGL.so.1.0.4349
/usr/lib/libGLcore.so.1.0.4349
/usr/share/lintian/overrides/nvidia-glx
/usr/share/doc/nvidia-glx/README.gz
/usr/share/doc/nvidia-glx/README.DE.gz
/usr/share/doc/nvidia-glx/README.Debian
/usr/share/doc/nvidia-glx/copyright
/usr/share/doc/nvidia-glx/examples/
/usr/share/doc/nvidia-glx/examples/XF86Config.sample.gz
/usr/share/doc/nvidia-glx/NVIDIA_Changelog.gz
/usr/share/doc/nvidia-glx/changelog.Debian.gz
/usr/X11R6/lib/modules/drivers/nvidia_drv.o
/usr/X11R6/lib/modules/extensions/libglx.so.1.0.4349
/usr/lib/libGLcore.so.1 -> libGLcore.so.1.0.4349
/usr/lib/libGL.so.1 -> libGL.so.1.0.4349
/usr/X11R6/lib/modules/extensions/libglx.so -> libglx.so.1.0.4349
/usr/X11R6/lib/libXvMCNVIDIA_dynamic.so.1 -> libXvMCNVIDIA.so.1.0.4349
/usr/X11R6/lib/libXvMCNVIDIA.so.1 -> libXvMCNVIDIA.so.1.0.4349

looking at the links created, it does not change a link belonging to libGLU, libglut, etc... how can i configure vegastrike WITHOUT removing nvidia-glx?
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

get glut and glut-dev packages
this should not remove your nvidia-glx
if it ideos then build the glut-3.7 from source

as for SDL_mixer

you only need SDL_mixer for the soundserver
if you don't care about music just make -k
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

Post by boeser.wolff »

i got libglut3-dev (3.7.20) and libglut (3.7.20).. there are no conflicts between those two and nvidia-glx...
it just looks like this when nvidia-glx is installed and i dont have any explanation for this:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for ranlib... ranlib
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether time.h and sys/time.h may both be included... yes
checking for inline... inline
checking for size_t... yes
checking for getcwd... yes
checking for gettimeofday... yes
checking for strdup... yes
checking for select... yes
checking for socket... yes
checking for strstr... yes
checking for finite... yes
checking for isnan... yes
checking for _finite... no
checking for _isnan... no
checking ieeefp.h usability... no
checking ieeefp.h presence... no
checking for ieeefp.h... no
checking for pid_t... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for getpagesize... yes
checking for working mmap... yes
checking for working memcmp... yes
Enabling user-specified flags:
checking for Win32 platform... no
checking for MacOSX platform... no
checking for python... python 2.2.3+
/usr/lib/libpython2.2.so yes
checking for sdl-config... /usr/bin/sdl-config
checking for SDL - version >= 1.0.1... yes
checking for SDL_JoystickOpen... yes
Using SDL Windowing System
checking for Mix_OpenAudio in -lSDL_mixer... yes
checking SDL/SDL_net.h usability... yes
checking SDL/SDL_net.h presence... yes
checking for SDL/SDL_net.h... yes
Configuring with SDL Networking.
checking for GL library... yes
checking for glXGetProcAddressARB... yes
checking for GLU library... no
checking for GLU library (with pthreads)... no
checking for MesaGLU library... no
checking for MesaGLU library (with pthreads)... no
checking for openglu32 library... no
checking for openglu32 library (with pthreads)... no
*** Hmm, you don't seem to have OpenGLU libraries installed in the standard
*** location (/usr/lib). I'll check in /usr/X11R6/lib, since
*** many distributions (incorrectly) put OpenGLU libs there.
checking for GLU library... no
checking for GLU library (with pthreads)... no
checking for MesaGLU library... no
checking for MesaGLU library (with pthreads)... no
checking for openglu32 library... no
checking for openglu32 library (with pthreads)... no

and without nvidia-glx configure runs without any complains
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

make sure there's a libGLU.so.1 and libGLU.so in the same directory as your libGL.so and libGL.so.1

then try it

I thought I allowed them to be in different places tho--but maybe someone messed it or something
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

Post by boeser.wolff »

they are all where they belong: /usr/lib:

lrwxrwxrwx 1 root root /usr/lib/libGL.a -> ../X11R6/lib/libGL.a
lrwxrwxrwx 1 root root /usr/lib/libGL.so -> libGL.so.1.2
lrwxrwxrwx 1 root root /usr/lib/libGL.so.1 -> libGL.so.1.0.4349
-rw-r--r-- 1 root root /usr/lib/libGL.so.1.0.4349
lrwxrwxrwx 1 root root /usr/lib/libGLU.a -> ../X11R6/lib/libGLU.a
lrwxrwxrwx 1 root root /usr/lib/libGLU.so -> libGLU.so.1.3
lrwxrwxrwx 1 root root /usr/lib/libGLU.so.1 -> libGLU.so.1.3
lrwxrwxrwx 1 root root /usr/lib/libGLU.so.1.3 -> ../X11R6/lib/libGLU.so.1.3
lrwxrwxrwx 1 root root /usr/lib/libGLcore.so.1 -> libGLcore.so.1.0.4349
-rw-r--r-- 1 root root 4869220 /usr/lib/libGLcore.so.1.0.4349
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

well then paste your config.log like illustrated in the forum-- the configure checkist hardly gives any info at all
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

Post by boeser.wolff »

ok, config.log is here: boeserwolff.privat.t-online.de/config.log

the problem is: (4 times in config.log)

configure:7909: gcc -o conftest conftest.c -lutil -L/usr/lib -lSDL -lpthread -lSDL_mixer -lGL -lGLU >&5
/usr/lib/libGLU.so: undefined reference to `glPixelStorei'
/usr/lib/libGLU.so: undefined reference to `glEvalPoint2'
/usr/lib/libGLU.so: undefined reference to `glMultMatrixd'
/usr/lib/libGLU.so: undefined reference to `glPopAttrib'
/usr/lib/libGLU.so: undefined reference to `glTexImage2D'
/usr/lib/libGLU.so: undefined reference to `glMapGrid2f'
/usr/lib/libGLU.so: undefined reference to `glTexImage3D'
/usr/lib/libGLU.so: undefined reference to `glMapGrid1f'
/usr/lib/libGLU.so: undefined reference to `glColor3f'
/usr/lib/libGLU.so: undefined reference to `glMapGrid2d'
/usr/lib/libGLU.so: undefined reference to `glEvalCoord1f'
/usr/lib/libGLU.so: undefined reference to `glEvalMesh2'
/usr/lib/libGLU.so: undefined reference to `glVertex3f'
/usr/lib/libGLU.so: undefined reference to `glNormal3fv'
/usr/lib/libGLU.so: undefined reference to `glTexImage1D'
/usr/lib/libGLU.so: undefined reference to `glMultMatrixf'
/usr/lib/libGLU.so: undefined reference to `glGetTexLevelParameteriv'
/usr/lib/libGLU.so: undefined reference to `glDisable'
/usr/lib/libGLU.so: undefined reference to `glVertex3fv'
/usr/lib/libGLU.so: undefined reference to `glBegin'
/usr/lib/libGLU.so: undefined reference to `glMap1f'
/usr/lib/libGLU.so: undefined reference to `glEvalPoint1'
/usr/lib/libGLU.so: undefined reference to `glGetFloatv'
/usr/lib/libGLU.so: undefined reference to `glVertex2f'
/usr/lib/libGLU.so: undefined reference to `glTexCoord2f'
/usr/lib/libGLU.so: undefined reference to `glGetIntegerv'
/usr/lib/libGLU.so: undefined reference to `glPushAttrib'
/usr/lib/libGLU.so: undefined reference to `glTranslated'
/usr/lib/libGLU.so: undefined reference to `glOrtho'
/usr/lib/libGLU.so: undefined reference to `glGetString'
/usr/lib/libGLU.so: undefined reference to `glEnable'
/usr/lib/libGLU.so: undefined reference to `glNormal3f'
/usr/lib/libGLU.so: undefined reference to `glPolygonMode'
/usr/lib/libGLU.so: undefined reference to `glMap2f'
/usr/lib/libGLU.so: undefined reference to `glScalef'
/usr/lib/libGLU.so: undefined reference to `glVertex2fv'
/usr/lib/libGLU.so: undefined reference to `glTranslatef'
/usr/lib/libGLU.so: undefined reference to `glEvalCoord2f'
/usr/lib/libGLU.so: undefined reference to `glEnd'
/usr/lib/libGLU.so: undefined reference to `glEvalMesh1'

but any I experience no problems wih other GL applications - and reinstalling nvidia-glx after configure does not lead to any problems...[/url]
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

Post by boeser.wolff »

i think i found a solution for this myself, will try if gl applications still work... i've taken a look at the symlinks in /usr/lib with and without nvidia-glx installed:

[without nvidia-glx]
/usr/lib/libGL.a -> ../X11R6/lib/libGL.a
/usr/lib/libGL.so -> /usr/X11R6/lib/libGL.so
/usr/lib/libGL.so.1 -> libGL.so.1.2
/usr/lib/libGL.so.1.2 -> ../X11R6/lib/libGL.so.1.2
/usr/lib/libGLU.a -> ../X11R6/lib/libGLU.a
/usr/lib/libGLU.so -> /usr/X11R6/lib/libGLU.so.1.3
/usr/lib/libGLU.so.1 -> /usr/X11R6/lib/libGLU.so.1.3
/usr/lib/libGLU.so.1.3 -> ../X11R6/lib/libGLU.so.1.3
/usr/lib/libGLcore.so -> /usr/lib/libGLcore.so.1.0.4349
----------------------------

[with nvidia-glx]
/usr/lib/libGL.a -> ../X11R6/lib/libGL.a
/usr/lib/libGL.so -> /usr/X11R6/lib/libGL.so
/usr/lib/libGL.so.1 -> libGL.so.1.0.4349
/usr/lib/libGL.so.1.0.4349
/usr/lib/libGLU.a -> ../X11R6/lib/libGLU.a
/usr/lib/libGLU.so -> /usr/X11R6/lib/libGLU.so.1.3
/usr/lib/libGLU.so.1 -> /usr/X11R6/lib/libGLU.so.1.3
/usr/lib/libGLU.so.1.3 -> ../X11R6/lib/libGLU.so.1.3
/usr/lib/libGLcore.so -> /usr/lib/libGLcore.so.1.0.4349
/usr/lib/libGLcore.so.1 -> libGLcore.so.1.0.4349
/usr/lib/libGLcore.so.1.0.4349

ill try re-linkig libGL* so it looks like no nvidia-glx.... hope this works
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

Post by boeser.wolff »

no, this somehow did not work... :?
etheral walker
Elite
Elite
Posts: 1516
Joined: Sat May 10, 2003 5:26 pm
Location: into the depths

Post by etheral walker »

have you got some libgl***.h in /usr/include or /usr/locol/include ?

have you checked your ld.so.conf? (might miss something like /usr/local/lib or other)
Have you tried the nm command on your libgl***.so.***?
I see dead polygons....
I am Elster

Post by I am Elster »

mmhhh have you copied the NVIDIA-GLXxxxx/usr/include/GL stuff to /usr/include/GL? The Install Skript is not installing the files in usr/include/GL.

See you

Henning Wackernagel
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

Post by boeser.wolff »

libgl*.h are in /usr/include/GL - seems to be no problem with that
ld.so.conf contains /usr/lib, /usr/X11R6/lib, /usr/X11R6/lib/modules/extensions
nm tells me that there are NO symbols in:
libGLU.so
libGLU.so.1
libGLU.so.1.3
libGLcore.so
libGLcore.so.1
libGLcore.so.1.0.4349

im not wondering too much about the first two - these are links... but why does nvidia's glcore have no symbols in it?

anyways: compiling with no nvidia-'drivers' installed works fine, but i cant do anything else until it finishes - dont have any X until i reinstall nvidia-glx
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

Post by boeser.wolff »

it seems my problem solved itself:
i just compiled nvidia-glx and -kernel from nvidia's source 1.0-4496, i previously had -43something

vegastrike now compiles fine even with that nvidia-stuff installed.... if anyone finds out what has been wrong with the -43xxx source, please tell me
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

Post by boeser.wolff »

i got sick of nvidia's drivers:
i debootstrapped a chroot environment and now compile there without any nvidia stuff
the new drivers give me haevy rendering problems and vegastrike does not run with them 'glx visual not found'
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

glx visual not found means you're running an xserver without GLX support.
This isn't just a rendering problem--it's the nonexistance of your rendering hardware.

As for fixing this--make sure you're running the nivida (not nv ) driver
also check to make sure that glx is one of the things loaded in your XF86Config-4
also make sure that glcore (or glxcore) are not being loaded--nvidia drivers conflict with that I do think.

good luck

you'll see in the /var/log/X*0.log that glx is loaded (or else why nto)
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

Post by boeser.wolff »

from /etc/X11/XFree86Config:
...
Load "glx"
...
Section "Device"
Identifier "Gf4mx440"
Driver "nvidia"
VideoRam 65535
BusID "AGP:1:0:0"
# Insert Clocks lines here if appropriate
EndSection
...

i usually try to run vegastrike on the xserver i work with, i only start another one for debugging sessions... (which also loads the nvidia drivers)

i believe this is a compiling problem, but configure and make run through without error
hellcatv
Developer
Developer
Posts: 3980
Joined: Fri Jan 03, 2003 4:53 am
Location: Stanford, CA
Contact:

Post by hellcatv »

unless you statically link to libGL.a it wouldn't be a compiling problem

and then libGL.a wouldn't complain about glx visual

try running tuxracer for instance--it wont' work because there's no glx visual
paste your /var/log/XFree86*0*log
that'll show where your problem loading glx visual is


no glx visual found just means that the driver is NOT loaded
Vega Strike Lead Developer
http://vegastrike.sourceforge.net/
boeser.wolff
Hunter
Hunter
Posts: 93
Joined: Tue Jul 29, 2003 8:05 am
Contact:

Post by boeser.wolff »

tuxracer works fine - i wish there would be some more tracks and multiplayer games.....

im sure this is no problem related to my x-servers configuration, i think something went wrong compiling vegastrike

but that doesnt matter right now, as i was using 0.3.9-sources and an experimental nvidia-driver (1.0-44xy) i had trouble with
Post Reply