nanogui: how to integrate application and nano-X server ?


Previous by date: 24 Oct 2001 02:40:37 -0000 Re: how to integrate application and nano-X server ?, li hui
Next by date: 24 Oct 2001 02:40:37 -0000 Re: how to use framebuffer on nano-X?, Manoj Sharma
Previous in thread: 24 Oct 2001 02:40:37 -0000 Re: how to integrate application and nano-X server ?, li hui
Next in thread:

Subject: Re: [nanogui] how to integrate application and nano-X server ?
From: Gary James ####@####.####
Date: 24 Oct 2001 02:40:37 -0000
Message-Id: <20011023224637.A850@pc.twcny.rr.com>

Hi li,

The following bash script is a pretty low tech way that I build simple
programs with only a couple source files. When I want to switch between
linking with the server and running client/server, I change the line in
config that we have been talking about, then do:
  make clean
  make
  su -
  make install
  exit

In the following script I set LINK2SERVER to either 'YES' or 'NO', to match
the way I built Microwindows. I set DEBUG to either 'YES' or 'NO' for debug
symbols and it all does the trick or me. 
Change APP to the name you want for your executable, change the SRCS to
include all of your source files and you should be on your way.

#!/bin/bash

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

DEFINES=
DEFINES=${DEFINES}' -DEMULATE'

INCS=
INCS=${INCS}' -I/usr/include/microwin'

SRCS=
SRCS=${SRCS}' play.c'
SRCS=${SRCS}' more_stuff.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/





On Tue, 23 Oct 2001 22:18:42 li hui wrote:
> sorry , I didn't find the articles that you said.
> please give me  some definite advice about how to
> integterate nano-x server and application.
> 
> I set LINK_APP_INTO_SERVER=Y and make clean, make;then
> I compile my program it will display error message
> below:
> undefined reference to 'GrOpen'
> undefined reference to 'GrClose'
> ....................
> 
> and I lookup nano-x lib with nm command, it display
> U: GrOpen
> U: GrClose
> U: Gr......
> ...........
> 
>   
> 
> __________________________________________________
> Do You Yahoo!?
> Make a great connection at Yahoo! Personals.
> http://personals.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> 


Previous by date: 24 Oct 2001 02:40:37 -0000 Re: how to integrate application and nano-X server ?, li hui
Next by date: 24 Oct 2001 02:40:37 -0000 Re: how to use framebuffer on nano-X?, Manoj Sharma
Previous in thread: 24 Oct 2001 02:40:37 -0000 Re: how to integrate application and nano-X server ?, li hui
Next in thread:


Powered by ezmlm-browse 0.20.