[Clam-devel] Fwd: clam
Detlef Reichelt
detlef at die-mafia.de
Thu Mar 29 09:35:44 PDT 2007
Hi David,
David García Garzón schrieb:
> Weird. It seems that linking with opengl segfaults. Try to compile manually
> the configure program. Create this file:
...
done, weird, it works:
detlef-pc:~$ cat a.c
#ifdef WIN32
#include <windows.h>
#endif
#include <GL/gl.h>
int main( int argc, char** argv )
{
glBegin(GL_LINES);
glVertex2f(0.0,0.0);
glVertex2f(1.0,0.0);
glEnd();
return 0;
}
detlef-pc:~$ gcc -o a.o -c -g -O2 -fomit-frame-pointer -Wall
-DCLAM_FLOAT -DUSE_PTHREADS=1 -DUSE_XERCES_TRUE -DCLAM_USE_XML
-DUSE_LADSPA=1 -DUSE_FFTW=1 -DUSE_SNDFILE=1 -DUSE_OGGVORBIS=1
-DUSE_MAD=1 -DUSE_ID3=1 -DUSE_ALSA=1 -DUSE_JACK=1 -DUSE_PORTAUDIO=1
-DWITH_MAD=1 -DWITH_VORBIS=1 -I/usr/lib/qt3/include -I/usr/local/include a.c
detlef-pc:~$ gcc -o program a.o -L/usr/lib/qt3/lib64 -L/usr/local/lib
-L/opt/lib -lpthread -lxerces-c -lsfftw -lsrfftw -lsndfile -logg
-lvorbisenc -lvorbis -lvorbisfile -lmad -lz -lid3 -lasound -ljack
-lportaudio -lportaudio -lGL
detlef-pc:~$ ls -al
....
-rw-r--r-- 1 abuild abuild 179 Mar 29 16:07 a.c
-rw-r--r-- 1 abuild abuild 4360 Mar 29 16:08 a.o
-rwxr-xr-x 1 abuild abuild 12134 Mar 29 16:08 program*
Only if i use scons, i get an error... :(
Detlef
More information about the clam-devel
mailing list