~/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 other libraries in conjunction with pkg-config you can use the alternative:
$ROX_CLIB --pkg-config --cflags ROX-CLib other-pkg
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
ROX_CLIB=`$APP_DIR/libdir ROX-CLib` export ROX_CLIB
if [ -z "$LD_LIBRARY_PATH" ]; then
LD_LIBRARY_PATH=`"$ROX_CLIB/AppRun" --runtime`
else
LD_LIBRARY_PATH=`"$ROX_CLIB/AppRun" --runtime`:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH
1.4.4