HomeHome ArchiveArchive

osgEarth for Ubuntu

osgviewer sample call:

 OSG_FILE_PATH=/usr/share/osgearth osgviewer --window 50 50 900 700 /usr/share/osgearth/maps/srtm.earth

Press ‘h’ for help. See also OSG Wiki

osgearth_simple sample call:

OSG_FILE_PATH=/usr/share/osgearth osgearth_simple --window 50 50 900 700 /usr/share/osgearth/maps/geopole.earth

Press ‘1’-‘5’ for predefined viewpoints. Drag mouse with left+right click for tilt.

Building heartbeat on Solaris 10

Building heartbeat on Solaris is always a pain. This time it took 4 hours for heartbeat 2.1.3 on x86 Solaris 10.

Needed packages (from Sunfreeware):

autoconf-2.65-sol10-x86-local
automake-1.11-sol10-x86-local
bison-2.4.1-sol10-x86-local
coreutils-8.1-sol10-x86-local
db-4.2.52.NC-sol10-intel-local
flex-2.5.35-sol10-x86-local
gcc-3.3.2-sol10-intel-local
glib-2.20.4-sol10-x86-local
gmp-4.2.1-sol10-x86-local
libgcc-3.4.6-sol10-x86-local
libiconv-1.11-sol10-x86-local
libintl-3.4.0-sol10-x86-local
libnet-1.1.2.1-sol10-x86-local
libsigsegv-2.6-sol10-x86-local
libtool-2.2.6b-sol10-x86-local
m4-1.4.12-sol10-x86-local
make-3.81-sol10-x86-local
pkgconfig-0.23-sol10-x86-local

Create file /usr/local/bin/gnome-config:

#!/bin/sh
echo "-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -L/usr/local/lib -lglib-2.0"

chmod +x /usr/local/bin/gnome-config

Fix gcc headers:

cd /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools/
./mkheaders 

Fix hardcoded paths:

ln -s /bin/perl /usr/local/bin/perl
ln -s /usr/local/bin/true /usr/local/bin/python

Patch lib/clplumbing/cl_reboot.c according to this thread.

Build package:

export LD_LIBRARY_PATH=/usr/local/lib
./ConfigureMe package --disable-crm  --disable-lrm --disable-dopd

Install it:

cd pkg/packages/
pkgadd -d . LXHAhb

Screencast for PostRails

PostRails is a PostgreSQL database browser and application server. The project was started in the Breakpoint coding session in the beginning of July 2009. The source was published in August on Github. And now, a Screencast should finally explain what PostRails does!