~/lib
or make sure it is on your $LIBDIRPATH
. If you use Archive to extract it from the downloaded archive then make sure you rename it to ROX-CLib
.
Compile using ROX-CLib/AppRun --compile
or running ROX-CLib from the filer.
You will need
make
. /usr/bin
. Other OS's may require you use a different directory (/usr/bin/local
) or program name (gmake
). Set the environment variable MAKE to the correct value before compiling, e.g. $ MAKE=gmake ROX-CLib/AppRun --compile
Copy the libdir script from ROX-CLib/$PLATFORM/bin/libdir
into your app dir.
Add the output of
ROX-CLib --cflagsto your compile line, e.g.
ROX_CLIB="`$APP_DIR/libdir ROX-CLib`/AppRun"
gcc `$ROX_CLIB --cflags` -c main.c
You should include the main file:
#include <rox/rox.h>and any of the others you need.
Add the output of
ROX-CLib --cflags ROX-CLib --libsto your link line, e.g.
ROX_CLIB="`$APP_DIR/libdir ROX-CLib`/AppRun"
gcc `$ROX_CLIB --cflags` -o main main.o `$ROX_CLIB --libs`
If you are using autoconf and building a ROX program then:
ROX_CLIB(2, 0, 0)
aclocal -I .
ROX_CLIB = @ROX_CLIB_PATH@/AppRunand to CFLAGS add:
`${ROX_CLIB} --cflags`
and to LDFLAGS add: `${ROX_CLIB} --libs`
APP_DIR=`dirname $0` APP_DIR=`cd $APP_DIR;pwd`; export APP_DIR if [ -z "$LD_LIBRARY_PATH" ]; then LD_LIBRARY_PATH=`$APP_DIR/libdir ROX-CLib --runtime` else LD_LIBRARY_PATH=`$APP_DIR/libdir ROX-CLib --runtime`:$LD_LIBRARY_PATH fi export LD_LIBRARY_PATH
ROX_CLIB="`$APP_DIR/libdir --0install www.kerofin.demon.co.uk ROX-CLib`/AppRun"