libGLU.a missing on FreeBSD

It’s a GL Utility static library that’s not provided neither by the freeglut, nor the libglut ports. Yet it’s required to build boinc_example and other boinc-related graphics.

One possible solution is using MesaGL. (It’s available in packages on Linuxes, by the way.)

Download MesaLib from SourceForge. Extract to your favourite source directory.

From here, compiling linux-static works well, but then hangs during make install (I don’t save the exact line on which it does, sorry. But it was the stage where it checks all the directories in order to copy the files.) You can copy the static libraries form the lib dir manually.

An alternative would be to provide an option to run make freebsd-static.

What I did is:

==================freebsd-static.diff====================
1c1,2
< # Configuration for generic Linux, making static libs
---
> # Configuration for generic FreeBSD, making static libs
> # Written by cy on 2008-04-23.
3c4
<>
---
> include $(TOP)/configs/freebsd
5c6
< config_name =" linux-static">
---
> CONFIG_NAME = freebsd-static
=====================================================

Then:

cd configs
cp linux-static freebsd-static
patch freebsd-static ../freebsd-static.diff
cd ..

Then edit Makefile and add freebsd-static to Rules section.

That’s it.

make freebsd-static
sudo make install

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: