nanogui: Compiling sample program.
Subject:
Compiling sample program.
From:
####@####.####
Date:
4 Jan 2005 15:48:32 +0000
Message-Id: <OF8A0127AB.D7F2F201-ONC1256F7F.00555DE8-C1256F7F.0056CB3B@philips.com>
Dear,
I'm trying to use Microwindows using X11 on linux. (version 0.90)
I've switched the LINK_APP_TO_SERVER=Y on.
All the demos work fine but I'm not able to compile a sample program.
I first tried to -lnano-X option as in the tutorial, but that did not
work. (can't find GrOpen etc..)
I did a search on the mailing list and found a bash file below.
However I get lots of undefined references. Am I missing more libraries ?
Is there anywere a example Makefile I could use ?
Regards,
Roger
APP='play'
DEBUG='YES'
LINK2SERVER='YES'
DEFINES=
DEFINES=${DEFINES}' -DEMULATE'
INCS=
INCS=${INCS}' -I/usr/include/microwin'
SRCS=
SRCS=${SRCS}' play.c'
LIBS=
LIBS=${LIBS}' -lnano-X'
if [ $LINK2SERVER = YES ]; then
LIBS=${LIBS}' -lmwengine -lmwdrivers -lmwfonts -lttf -L/usr/X11R6/lib
-lX11'
fi
if [ $DEBUG = YES ]; then
gcc ${SRCS} ${DEFINES} -Wall -g ${INCS} -o ${APP} ${LIBS}
else
gcc ${SRCS} ${DEFINES} -Wall ${INCS} -o ${APP} ${LIBS}
fi