Recent Changes - Search:

Main.SideBar (edit)

PmWiki

InstallingOnFreeBSD

Warning: this page is horribly outdated. It was written for Boson 0.10/CVS, the current version is 0.12 or subversion.

Compiling boson 0.10 on FreeBSD 5:

In general this is possible, follow all the instructions below, but you can skip the linking of the autotools and the Makefile.cvs thing (Makefile.cvs of boson 0.10 does NOT work without modifying admin/cvs.sh).

Start right at the configure part - modifying configure is the same for 0.10 and CVS head.

Compiling boson CVS on FreeBSD 5:

Follow the steps on http://boson.sourceforge.net/download.php to download boson from CVS.

Follow the instructions up to and including linking the admin directory from the "code" and "data" subdirectories.

Now make sure that you have all dependencies installed. See http://boson.sourceforge.net/info.php for details.

Regarding lib3ds: after installing it (/usr/ports/graphics/lib3ds) you need to modify the headers because they are buggy. As root, go to /usr/local/include/lib3ds and open each header file and look for the extern C { ... }; parantheses, remove the ; from the closing paranthese. This problem will be fixed by the lib3ds developers.

You should also make sure that you have up-to-date versions of automake and autoconf, autoconf259 and automake19 should work fine. As these binaries are only available as "autoconf259", etc. and not as "autoconf" you should create symbolic links in your ~/bin directory:
cd ~
mkdir ./bin
cd bin
ln -s /usr/local/bin/aclocal19 aclocal
ln -s /usr/local/bin/autoconf259 autoconf
ln -s /usr/local/bin/autoheader259 autoheader
ln -s /usr/local/bin/autom4te259 autom4te
ln -s /usr/local/bin/automake19 automake
rehash

The final rehash command reparses the all paths included in $PATH to find all available binaries. In this case the created links are now available. This is required if you use csh or tcsh as your shell.

Finally, you need to set some LDFLAGS as the pthread library is not automatically used:

for csh or tcsh:
setenv LDFLAGS "-L/usr/lib -lpthread"
for bash or similar:
export LDFLAGS="-L/usr/lib -lpthread"
After that go back to where you have checked out boson.

Do the following steps in both the "code" and the "data" subdirectories!

Now, instead of executing make -f Makefile.cvs you need to use gmake -f Makefile.cvs. "gmake" is the GNU make tool which is a bit different from the BSD version of make. That's why gmake and make are seperately available on BSD systems. You should always use "gmake" instead of "make" for all builds that use the GNU autotools (that is, whenever you have a "configure" script).

If you are in the code directory you need to modify the configure script to fix the not-working OpenGL detection. Execute the following:

sed -e 's/bo_have_gl=\"no\"/bo_have_gl=\"yes\"/g' < configure |
sed -e 's/bo_have_glu=\"no\"/bo_have_glu=\"yes\"/g' >
configure.new

[remove the line breaks when you execute it!!]

After that you have a new configure script called configure.new that detects OpenGL no matter what. You can view the differences between "configure" and "configure.new" by:
diff configure configure.new

To use the new configure script just type:
chmod u+x ./configure.new
cp configure.new configure

The previous step created a "configure" script, which should now be executed:
./configure --with-extra-includes=/usr/local/include --with-extra-libs=/usr/local/lib

Additionally you can use a custom prefix with a
--prefix=/custom/install/dir
option for the configure script. Make sure you use the same prefix for the boson "data" and "code" subdirectories.

Then execute "gmake" and "gmake install" in both subdirectories.

If any problem remains, contact the developers. See http://boson.sourceforge.net/contact.php for details.

3rd January 2005,
raphael-langerhorst at gmx dot at.

Edit - History - Print - Recent Changes - Search
Page last modified on May 26, 2006, at 20:55