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 "<malloc.h> has been replaced by <stdlib.h>"
*** Error code 1

I replaced #include <malloc.h> with #include <stdlib.h> 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:

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
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?

freebsd-questions@freebsd.org mailing list
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to