projectm questions
perryh at pluto.rain.com
perryh at pluto.rain.com
Sun Feb 10 03:13:09 UTC 2008
> Linking CXX shared library libprojectM.so
> /usr/bin/ld: cannot find -lGLEW
> *** Error code 1
> ...
> After a bit of poking around I found
> ln -s /usr/local/lib/libGLEW.a /usr/lib/libGLEW.a
> fixed it. I also had to do
> ln -s /usr/local/lib/libftgl.a /usr/lib/libftgl.a
> ln -s /usr/local/lib/libfreetype.a /usr/lib/libfreetype.a
>
> Well that's alright for a fix but
> Question 2: what do I have to do to get that to work automatically?
Lose the symlinks, and instead figure out how to add
-L/usr/local/lib
to the link command line so that the linker looks for
libs there as well as in /usr/lib.
You might find the FreeBSD porter's handbook helpful.
More information about the freebsd-questions
mailing list