nanogui: Build problem


Previous by date: 16 Oct 2001 02:53:37 -0000 Re: build problem, Greg Haerr
Next by date: 16 Oct 2001 02:53:37 -0000 Microwindows compiling error, Raymond Wong
Previous in thread: 16 Oct 2001 02:53:37 -0000 Re: build problem, Greg Haerr
Next in thread:

Subject: Re: [nanogui] build problem
From: Gary James ####@####.####
Date: 16 Oct 2001 02:53:37 -0000
Message-Id: <20011015225910.A739@pc.twcny.rr.com>

On Mon, 15 Oct 2001 12:35:12 Greg Haerr wrote:
> : I compiled with command"gcc  l.c -o l -lmwengine -lmwdrivers -lmwfonts
> -L/usr/X11R6/lib -lX11"
> : What's problem?Lack more libs?
> 
> Yes, you need the Nano-X library of course: -lnano-X
> 
> Regards,
> 
> Greg


Yup, you caught me on a bad cut and paste. I have been using a little bash
script to build some smaller test programs that looks like below. As Greg
mentioned you need obviously the nano-X library.


#!/bin/bash

APP='play'
DEBUG='YES'
LINK2SERVER='NO'

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


-- 
Gary James
####@####.####
http://home.twcny.rr.com/embedded/


Previous by date: 16 Oct 2001 02:53:37 -0000 Re: build problem, Greg Haerr
Next by date: 16 Oct 2001 02:53:37 -0000 Microwindows compiling error, Raymond Wong
Previous in thread: 16 Oct 2001 02:53:37 -0000 Re: build problem, Greg Haerr
Next in thread:


Powered by ezmlm-browse 0.20.