nanogui: TinyGL0.4 linking issues


Previous by date: 10 May 2006 07:09:08 +0100 GsRead failed, Junior
Next by date: 10 May 2006 07:09:08 +0100 Re: Alpha channel whit nano-x 0.91, Greg Haerr
Previous in thread: 10 May 2006 07:09:08 +0100 TinyGL0.4 linking issues, Atul Kulkarni
Next in thread:

Subject: Re: [nanogui] TinyGL0.4 linking issues
From: "Greg Haerr" ####@####.####
Date: 10 May 2006 07:09:08 +0100
Message-Id: <16bd01c673f8$2b7e77f0$6401a8c0@winXP>

:    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.

First - you want to use the TinyGL that's ported to the native
nano-X, not the version that requires X11.  The NXLIB library
isn't likely advanced enough to support TinyGL's graphics
needs.  This should fix problems you're having like the below:

 x11.o(.text+0xec):/home/atul/7100ref/testapps/opengl_test/x11.c:59:
: undefined reference to `_glXChooseVisual'


: 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?


No, not if you're running LINK_APP_INTO_SERVER.  However,
I don't recommend debugging TinyGL and your new OS
port at the same time.  The link errors like the following:

: /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'

are related to you're using an older, non-CVS version of nano-X,
where we didn't support some rarely-used API calls in the
LINK_APP_INTO_SERVER case.  

By running standard client/server, and running on Linux framebuffer
(or X11) to debug, you'll only be linking TinyGL as a client app,
rather than to the server itself, which may cause more complications.

Most of your other errors are related to including NXLIB
and X11 for your TinyGL build.

Regards,

Greg






: 
: 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+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/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.
: 
: ************************************************************************ 
: 
: 
: ---------------------------------------------------------------------
: To unsubscribe, e-mail: ####@####.####
: For additional commands, e-mail: ####@####.####
: 
: 
: 

Previous by date: 10 May 2006 07:09:08 +0100 GsRead failed, Junior
Next by date: 10 May 2006 07:09:08 +0100 Re: Alpha channel whit nano-x 0.91, Greg Haerr
Previous in thread: 10 May 2006 07:09:08 +0100 TinyGL0.4 linking issues, Atul Kulkarni
Next in thread:


Powered by ezmlm-browse 0.20.