From owner-freebsd-questions@FreeBSD.ORG Mon Feb 11 00:16:57 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A2BC16A418 for ; Mon, 11 Feb 2008 00:16:57 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from smtp1.bethere.co.uk (smtp1.betherenow.co.uk [87.194.0.68]) by mx1.freebsd.org (Postfix) with ESMTP id 04B6413C45A for ; Mon, 11 Feb 2008 00:16:56 +0000 (UTC) (envelope-from cwhiteh@onetel.com) Received: from [192.168.1.71] (78-86-169-223.zone2.bethere.co.uk [78.86.169.223]) by smtp1.bethere.co.uk (Postfix) with SMTP id DA63A9804F; Mon, 11 Feb 2008 00:16:55 +0000 (GMT) Message-ID: <47AF93F7.2010504@onetel.com> Date: Mon, 11 Feb 2008 00:16:55 +0000 From: Chris Whitehouse User-Agent: Thunderbird 2.0.0.9 (X11/20071228) MIME-Version: 1.0 To: perryh@pluto.rain.com References: <47AE46E5.1020205@onetel.com> <47ae68d2.uU6BjaSTour1Ned4%perryh@pluto.rain.com> In-Reply-To: <47ae68d2.uU6BjaSTour1Ned4%perryh@pluto.rain.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: projectm questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Feb 2008 00:16:57 -0000 perryh@pluto.rain.com wrote: >> 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. > I'll check that out thanks Chris