From owner-freebsd-questions@FreeBSD.ORG Tue Feb 12 20:27:16 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 045A616A468 for ; Tue, 12 Feb 2008 20:27:16 +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 96B5713C474 for ; Tue, 12 Feb 2008 20:27:15 +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 708FDB0071 for ; Tue, 12 Feb 2008 20:26:51 +0000 (GMT) Message-ID: <47B2010B.8060101@onetel.com> Date: Tue, 12 Feb 2008 20:26:51 +0000 From: Chris Whitehouse User-Agent: Thunderbird 2.0.0.9 (X11/20071228) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org References: <47AE46E5.1020205@onetel.com> In-Reply-To: <47AE46E5.1020205@onetel.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Tue, 12 Feb 2008 20:27:16 -0000 Chris Whitehouse wrote: > Hello > > Sorry for the long post, this is my first try at installing from source > and I'm not sure how much info I need to give. I'm trying to get > projectm (http://projectm.sourceforge.net/) working on FreeBSD. First > step is install libprojectm. The INSTALL file said install glew, ftgl > and cmake so I did them from ports. I then ran cmake which ran with no > errors so I ran make. I got: > > In file included from /home/chrisw/Desktop/libprojectM-1.01/MoodBar.cpp:22: > /usr/include/malloc.h:3:2: error: #error " has been replaced > by " > *** Error code 1 > > I replaced #include with #include in MoodBar.cpp > and that allowed make to continue. > > Question 1: did I break things? > > Next I got > Linking CXX shared library libprojectM.so > /usr/bin/ld: cannot find -lGLEW > *** Error code 1 > > Stop in /usr/home/chrisw/Desktop/libprojectM-1.01. > > 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? > > So the above fixes got libprojectm installed. Next job is install > projectm itself. README says read INSTALL. INSTALL says > Install libprojectM 1.0 and XMMS, then: > > cmake . -DCMAKE_BUILD_TYPE=RELEASE > make > make install > > You may need to type ccmake . and change the PREFIX if your system > prefers /usr instead of /usr/local. > > But there is also a file called README~. This has extensive instructions > which boil down to > ./configure > make > make install > > Question 3: Which instructions do I use? > > However README~ also says I need to firstly install SDL-1.3.0 or later. > Question 4: How do I install this in such a way that it doesn't > interfere with the installed sdl-1.2 but can be found by projectm in > /usr/local? > > Chris > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Got replies to Q2, thanks guys, any chance of pointers particularly on Q4 but also for reassurance on Q1? Thanks Chris