i just installed mesa on Linux Mandrake 7.0 and just to assure myself that i got it running properly i downloaded the tutorial code from the
NeHe tutorial Lesson 1 (Unix version by Richard Campbell ) and tried compiling lesson1.c. Needless to say it doesn’t compile. This is what I
get:
i appear to be missing a library. can anyone help with some pointers where i have gone wrong. i am assuming of course that the tutorial code
is correct. BTW i ran the demos
Well, I don’t have my linux up and running now, but assuming the -l parameter is correct (trying to add an include-dir. to the path?) I guess that your `glut’ directory doesn’t exist.
Again, i can’t test anything cuz my linux and gcc are not installed right now.
You probably miss GLUT library (but normaly they comes with mesa)
Be sure to have also the development librarie (the .a file).
And don’t forger to run ldconfig as root when you install new library
-lgnagna is used to tell the linker to link against libgnagna.a library (or libgnagna.so)
-L/path/to/somewhere
Tell the linker to find libgnagna in /path/to/somewhere (and also in standart path like /lib /usr/lib and LD_LIBRARY_PATH variable)
/sbin/ldconfig references all dynamic loaded libs which are in /lib /usr/lib and all path listed in /etc/ld.so.conf (so put /usr/X11R6/lib and /usr/local/lib into)