Runnning Croquet using linuxlator (linux_base-fc4: based on Fedora Core 4) on FreeBSD

Current FreeBSD linuxlator default has changed from emulators/linux_base-8 (based on RedHat 8) to emulators/linux_base-fc4 (based on Fedora Core 4).

This is how to run Croquet under linux_base-fc4.

Install ports

You must install ports below.

ports directory version of testing Why?
emulators/linux_base-fc4 linux_base-fc-4_6 for linux emulation environment
x11/linux-xorg-libs linux-xorg-libs-6.8.2_5 X11 related library
graphics/linux_dri linux_dri-6.5 OpenGL library
audio/linux-openal linux-openal-0.0.9.0.4.20060204.c.f4OpenAL sound library (3D sound)

Some additional ports have installed because of dependencies.

> cd /usr/ports/emulators/linux_base-fc4/
> sudo make install
> cd /usr/ports/x11/linux-xorg-libs
> sudo make install
> cd /usr/ports/graphics/linux_dri
> sudo make install
> cd /usr/ports/audio/linux-openal
> sudo make install

Setting up Linuxlator

Load linux kernel module.

> sudo kldload linux.ko

If you want to load every boot time, please add line below at /etc/rc.conf.

linux_enable="YES"

Install additional rpm

Currently, e2fsprog rpm is installed by linux_base-fc-4_8.

You must install e2fsprog for libuuid. It's at 4/i386/os/Fedora/RPMS/ of fedora Download mirrors.

> fetch http://ftp.kddilabs.jp/Linux/packages/fedora/core/4/i386/os/Fedora/RPMS/
 # Please use appropriate mirror
> sudo rpm --ignoreos --root=/compat/linux -ivh e2fsprogs-1.37-4.i386.rpm

Get and extract Croquet SDK

Get Croquet SDK at http://www.opencroquet.org/ and extract it.

> unzip universal.zip

I refer Croquet_SDK_1.0_beta/ as top of extracted directory.

Some libraries like libdrm, miss load FreeBSD version. So you must create symbolic link.

> sudo mkdir -p /compat/linux/usr/local/lib
> cd /compat/linux/usr/local/lib
> sudo ln -s ../../../usr/lib/libdrm.so.2

Croquet read some libraries by self, so create symbolic links again.

> cd Croquet_SDK_1.0_beta/bin/i686-pc-linux-gnu/
> ln -s /compat/linux/usr/X11R6/lib/libGL.so.1 libGL.so
> ln -s /compat/linux/usr/lib/libopenal.so.1 libopenal.so

Now run Croquet

> cd Croquet_SDK_1.0_beta/
> bin/i686-pc-linux-gnu/squeak -plugins bin/i686-pc-linux-gnu Croquet1.0.10.image
Last modified: 2006-09-10
Post-it: New Post-it (help)

Text color: [_][_][_][_]

Background: [_][_][_][_][_][_]

Draw Line:

x: y: