Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Feb 2008 19:00:34 -0800
From:      perryh@pluto.rain.com
To:        cwhiteh@onetel.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: projectm questions
Message-ID:  <47ae68d2.uU6BjaSTour1Ned4%perryh@pluto.rain.com>
In-Reply-To: <47AE46E5.1020205@onetel.com>
References:  <47AE46E5.1020205@onetel.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47ae68d2.uU6BjaSTour1Ned4%perryh>