From owner-freebsd-questions@FreeBSD.ORG Sun Feb 10 03:13:09 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 2DBC016A419 for ; Sun, 10 Feb 2008 03:13:09 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [199.26.172.34]) by mx1.freebsd.org (Postfix) with ESMTP id 0F39013C442 for ; Sun, 10 Feb 2008 03:13:08 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id m1A3D8C5013580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 9 Feb 2008 19:13:08 -0800 (PST) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id m1A3D7B5013579; Sat, 9 Feb 2008 19:13:07 -0800 (PST) Received: from fbsd61 by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA15574; Sat, 9 Feb 08 19:05:04 PST Date: Sat, 09 Feb 2008 19:00:34 -0800 From: perryh@pluto.rain.com To: cwhiteh@onetel.com Message-Id: <47ae68d2.uU6BjaSTour1Ned4%perryh@pluto.rain.com> References: <47AE46E5.1020205@onetel.com> In-Reply-To: <47AE46E5.1020205@onetel.com> User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Sun, 10 Feb 2008 03:13:09 -0000 > 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.