nanogui: Build problem


Previous by date: 15 Oct 2001 08:58:13 -0000 Re: Mouse problems, Sunil Phatak
Next by date: 15 Oct 2001 08:58:13 -0000 Re: build problem, Greg Haerr
Previous in thread: 15 Oct 2001 08:58:13 -0000 Re: build problem, Gary James
Next in thread: 15 Oct 2001 08:58:13 -0000 Re: build problem, Greg Haerr

Subject: RE: [nanogui] build problem
From: "??? Harper Jia" ####@####.####
Date: 15 Oct 2001 08:58:13 -0000
Message-Id: <2C111A6965E01E4AB9DBCCF75D0F0AF91AE9AB@kes01.kinposh.com.cn>

Hi,Gary:
	Thank you for your answer,I tried according to your reply.But my app
can't get through.

 I compiled with command"gcc  l.c -o l -lmwengine -lmwdrivers -lmwfonts
-L/usr/X11R6/lib -lX11"

Error mssages are
l.c:49:1: warning: no newline at end of file
/tmp/ccaXJeYR.o: In function `main':
/tmp/ccaXJeYR.o(.text+0x7): undefined reference to `GrNewGC'
/tmp/ccaXJeYR.o(.text+0x1c): undefined reference to `GrSetGCUseBackground'
/tmp/ccaXJeYR.o(.text+0x32): undefined reference to `GrSetGCForeground'
/tmp/ccaXJeYR.o(.text+0x56): undefined reference to `GrNewWindowEx'
/tmp/ccaXJeYR.o(.text+0x6c): undefined reference to `GrMapWindow'
/tmp/ccaXJeYR.o(.text+0x7c): undefined reference to `GrMainLoop'
/tmp/ccaXJeYR.o: In function `event_handler':
/tmp/ccaXJeYR.o(.text+0xc1): undefined reference to `GrText'
/tmp/ccaXJeYR.o(.text+0xcd): undefined reference to `GrClose'
collect2: ld returned 1 exit status

What's problem?Lack more libs?

Thanks.

-----Original Message-----
From: Gary James ####@####.####
Sent: Saturday, October 13, 2001 11:40 AM
To: ¸ë§»ªi Harper Jia
Cc: ####@####.####
Subject: Re: [nanogui] build problem


Hi Harper,

When you built our application in the client/server model you prpbably used
"-lnano-X" when you linked. Now that you are linking the server into your
application you need to link in a couple extra libraries. Try using
"-lmwengine -lmwdrivers -lmwfonts -L/usr/X11R6/lib -lX11" or "-lmwengine
-lmwdrivers -lmwfonts -lttf -L/usr/X11R6/lib -lX11" if you are using
TrueType fonts.


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



On Fri, 12 Oct 2001 03:18:49 ¸ë§»ªi Harper Jia wrote:
> Hi:
> 
> I originally run my application successfully under microwindow on
> X-windows
> with running nano-X& firstly,
> 
> Then I changed the config option into LINK_APP_TO_SERVER=Y,
> run three commands
> make clean,make,make install
> 
> Some demos in microwindow can run sucessfully without running nano-X&
> firstly, 
> but I can't  build  my application successfully under microwindow on
> X-windows,
> 
> Some error messages are:
> srvmain.o(.text+0xb7): undefined reference to `GdGetNextTimeout'
> srvmain.o(.text+0x199): undefined reference to `GdTimeout'
> srvmain.o(.text+0x1d3): undefined reference to `GdError'
> /usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libnano-X.a(srvmain.o):
> In
> function `GsInitialize':
> srvmain.o(.text+0x206): undefined reference to `GdError'
> srvmain.o(.text+0x251): undefined reference to `GdOpenKeyboard'
> srvmain.o(.text+0x26e): undefined reference to `GdError'
> srvmain.o(.text+0x275): undefined reference to `GdOpenScreen'
> srvmain.o(.text+0x288): undefined reference to `GdError'
> 
> ..............
> 
> How can I do? What's wrong with it? 
> 
> 			Thanks 
> 	
> Harper
> 									2001.
> 10.12
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
> 
> 


Previous by date: 15 Oct 2001 08:58:13 -0000 Re: Mouse problems, Sunil Phatak
Next by date: 15 Oct 2001 08:58:13 -0000 Re: build problem, Greg Haerr
Previous in thread: 15 Oct 2001 08:58:13 -0000 Re: build problem, Gary James
Next in thread: 15 Oct 2001 08:58:13 -0000 Re: build problem, Greg Haerr


Powered by ezmlm-browse 0.20.