nanogui: TinyGL0.4 linking issues


Previous by date: 9 May 2006 06:48:30 +0100 Re: Alpha channel whit nano-x 0.91, Greg Haerr
Next by date: 9 May 2006 06:48:30 +0100 Alpha channel whit nano-x 0.91, Marco Rossi
Previous in thread:
Next in thread: 9 May 2006 06:48:30 +0100 Re: TinyGL0.4 linking issues, Greg Haerr

Subject: TinyGL0.4 linking issues
From: Atul Kulkarni ####@####.####
Date: 9 May 2006 06:48:30 +0100
Message-Id: <1147157440.25598.0.camel@localhost.localdomain>

Hi
   I have ported nxlib-0.44 and TinyGL 0.4 to os21 on ST40 along with
microwindows 0.91. Now I am bulding examples from TinyGL where I have
got linker errors. 
   I am using nanox lib with LINK_APP_INTO_SERVER set to 1.

Note: While porting nano-X I have not ported client.c file, since I need
only server (and also was having problems during porting this file). Is
it required to be ported?

Any suggestions are welcome. 
Thanks in advance.

Regards,
Atul K.

Linker output is shown below:

sh4g++ -L/home/atul/7100ref/lib -L/home/atul/7100ref/config/chip -
L/home/atul/7100ref/config/board -L/home/atul/7100ref/config/platform -
L.     test.o xmain.o x11.o glu.o -Wl,--start-group -lstapi_stpti4 -
lnano-X -ljpeg -lstgxobj -lnx11 -lTinyGL -Wl,--end-group -mboard=mb411p1
-mruntime=os21 -lm -g -o test.exe -L/home/atul/7100ref/testapps/flnx/lib
-specs=../../../files/board.mem   -mboard=stb7100ref_memory_map      -
lstapi_stpti4
xmain.o(.text+0x1cc0): In function `init':
/home/atul/7100ref/testapps/opengl_test/xmain.c:253: multiple definition
of `_init'
/home/atul/STM/ST40R3.1.1/bin/../lib/gcc/sh-superh-elf/3.4.3/crti.o
(.init+0x0):/view/stubbsa-
build/vob/sh5gcc.cmp/src/gcc/config/sh/crti.asm: first defined here
x11.o(.text+0x58): In function `tkSwapBuffers':
/home/atul/7100ref/testapps/opengl_test/x11.c:32: undefined reference to
`_glXSwapBuffers'
x11.o(.text+0xd8): In function `ui_loop':
/home/atul/7100ref/testapps/opengl_test/x11.c:59: undefined reference to
`_stderr'
x11.o(.text+0xec):/home/atul/7100ref/testapps/opengl_test/x11.c:59:
undefined reference to `_glXChooseVisual'
x11.o(.text+0x2e8):/home/atul/7100ref/testapps/opengl_test/x11.c:98:
undefined reference to `_glXCreateContext'
x11.o(.text+0x314):/home/atul/7100ref/testapps/opengl_test/x11.c:98:
undefined reference to `_glXMakeCurrent'
x11.o(.text+0x4a8):/home/atul/7100ref/testapps/opengl_test/x11.c:133:
undefined reference to `_glXWaitX'
/home/atul/7100ref/lib/libnx11.a(NextEvent.o)(.text+0x894): In function
`XEventsQueued':
/home/atul/My Downloads/downloads/nxlib-0.44/NextEvent.c:353: undefined
reference to `_GrQueueLength'
/home/atul/7100ref/lib/libnx11.a(NextEvent.o)(.text+0xa9c): In function
`_XIfEvent':
/home/atul/My Downloads/downloads/nxlib-0.44/NextEvent.c:457: undefined
reference to `_GrGetTypedEventPred'
/home/atul/7100ref/lib/libnx11.a(NextEvent.o)(.text+0xb94): In function
`XCheckWindowEvent':
/home/atul/My Downloads/downloads/nxlib-0.44/NextEvent.c:491: undefined
reference to `_GrGetTypedEvent'
/home/atul/7100ref/lib/libnx11.a(NextEvent.o)(.text+0xc08): In function
`XCheckMaskEvent':
/home/atul/My Downloads/downloads/nxlib-0.44/NextEvent.c:506: undefined
reference to `_GrGetTypedEvent'
/home/atul/7100ref/lib/libnx11.a(NextEvent.o)(.text+0xc94): In function
`XCheckTypedEvent':
/home/atul/My Downloads/downloads/nxlib-0.44/NextEvent.c:523: undefined
reference to `_GrGetTypedEvent'
/home/atul/7100ref/lib/libnx11.a(NextEvent.o)(.text+0xd28): In function
`XCheckTypedWindowEvent':
/home/atul/My Downloads/downloads/nxlib-0.44/NextEvent.c:539: undefined
reference to `_GrGetTypedEvent'
/home/atul/7100ref/lib/libnx11.a(NextEvent.o)(.text+0xde4): In function
`XWindowEvent':
/home/atul/My Downloads/downloads/nxlib-0.44/NextEvent.c:570: undefined
reference to `_GrGetTypedEvent'
/home/atul/7100ref/lib/libnx11.a(NextEvent.o)(.text+0xe5c):/home/atul/My
Downloads/downloads/nxlib-0.44/NextEvent.c:586: more undefined
references to `_GrGetTypedEvent' follow






***********************Confidentiality Notice***************************

 The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain confidential or privileged information. If you are not
the intended recipient, please notify the sender at Divinet or
####@####.####  immediately and destroy all copies of this
message and any attachments.

************************************************************************ 


Previous by date: 9 May 2006 06:48:30 +0100 Re: Alpha channel whit nano-x 0.91, Greg Haerr
Next by date: 9 May 2006 06:48:30 +0100 Alpha channel whit nano-x 0.91, Marco Rossi
Previous in thread:
Next in thread: 9 May 2006 06:48:30 +0100 Re: TinyGL0.4 linking issues, Greg Haerr


Powered by ezmlm-browse 0.20.