I spent some time this weekend compiling Liquidsoap on FreeBSD. The process involved some head-scratching and trying a few things but I was able to compile it and thought that I would share my results here.
In order to get configure to go through cleanly I had to use this configure command: CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" CPPFLAGS="-I/ usr/local/include" ./configure To compile with OSS support I needed to create /usr/src/include/linux and copy the following sound include files there: cp /usr/src/sys/dev/sound/pcm/sound.h /usr/src/include/linux/sound.h cp /usr/src/sys/sys/soundcard.h /usr/src/include/linux/soundcard.h With the LDFLAGS on the command line I was able to make it go through the configure process successfully, however make would continually fail. To fix the issues with make I had to symlink the following libraries from /usr/local/lib to /usr/lib ln -sf /usr/local/lib/libmp3lame.so /usr/lib/libmp3lame.so ln -s /usr/local/lib/libmad.so /usr/lib/libmad.so ln -sf /usr/local/lib/libogg.so /usr/lib/libogg.so ln -sf /usr/local/lib/libvorbisenc.so /usr/lib/libvorbisenc.so ln -sf /usr/local/lib/libvorbisfile.so /usr/lib/libvorbisfile.so ln -sf /usr/local/lib/libshout.so /usr/lib/libshout.so ln -sf /usr/local/lib/libfaac.so /usr/lib/libfaac.so ln -sf /usr/local/lib/libfaad.so /usr/lib/libfaad.so ln -sf /usr/local/lib/libsamplerate.so /usr/lib/libsamplerate.so ln -sf /usr/local/lib/libtag.so /usr/lib/libtag.so ln -sf /usr/local/lib/libtag_c.so /usr/lib/libtag_c.so This fixed the problems of finding codecs and such, however despite specifically compiling using gmake it would try and use the FreeBSD make instead. This forced me to temporarily rename the BSD version and symlink gmake: mv /usr/bin/make /usr/bin/make.good ln -sf /usr/local/bin/gmake /usr/bin/make make And lastly in order for 'make install' to work I had to add a user and group named liquidsoap using adduser: adduser make install Upon completion of the compile process I restored make: rm /usr/bin/make mv /usr/bin/make.good /usr/bin/make This produced a working /usr/local/bin/liquidsoap binary that worked with OSS audio input. For some reason though I had to remove the /usr/local/lib/liquidsoap/ 0.9.0/utils.liq file as the program would just hang there with it in place. I hope that these instructions might be useful to others wishing to use Liquidsoap on FreeBSD. Perhaps the development team could consider adding checks for libraries under /usr/local/lib and gmake in future releases? Regards, Andrew ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
