Who wants to play the "compile celestia-1.3.0 game"

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
semi-fly
Posts: 786
Joined: Fri Feb 21, 2003 6:29 am
Location: Ypsitucky, MI
Contact:

Who wants to play the "compile celestia-1.3.0 game"

Unread postby semi-fly » Thu Oct 23, 2003 5:39 am

OK, I've managed to compile celesia all the way to the end, but I'm getting one of these stupid "unresolved text" error again. Grrrr.

ld32: ERROR 33 : Unresolved text symbol "glXGetProcAddressARB(unsigned char const*)" -- 1st referenced by ../celengine/libcelengine.a(glext.o).
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld32: INFO 152: Output file removed because of error.
collect2: ld returned 2 exit status
gmake[4]: *** [celestia] Error 1
gmake[4]: Leaving directory `/usr/people/semi/code/games/celestia-1.3.0/src/celestia'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory `/usr/people/semi/code/games/celestia-1.3.0/src/celestia'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/people/semi/code/games/celestia-1.3.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/people/semi/code/games/celestia-1.3.0'


I've tried just about every enviroment compile flags, and I'm pretty sure that "glXGetProcAddressARB(unsigned char const*)" is a standard GL function, so, any ideas?
configure complete, now type 'make' and pray.

User avatar
squeen
Moderator
Moderator
Posts: 2931
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Thu Oct 23, 2003 7:04 am

It's in /usr/include/GL/glx.h as:

extern void (* glXGetProcAddressARB (const GLubyte *procName))( void );

so just make sure -lGLU -lGL are on the link command line BEFORE ./celengine/libcelengine.a.

Good luck you IRIX porting maniac!
Last edited by squeen on Fri Oct 24, 2003 4:03 am, edited 1 time in total.

vegac
Posts: 737
Joined: Thu Jan 23, 2003 12:34 pm
Contact:

Unread postby vegac » Thu Oct 23, 2003 8:40 am

Make sure the -lGL and -lGLU come AFTER the .o files in the command line...
It works left-to-right so it will see the .o's and then the libs and pick out the functions from them that it needs, on the other hand if the libs are listed first it will give you errors about how a library is included that's not referenced and will then complaina about functions (in that library) that are missing.

User avatar
squeen
Moderator
Moderator
Posts: 2931
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Thu Oct 23, 2003 9:24 am

Oh crap! (/me forcing fingers to type A-F-T-E-R)

User avatar
semi-fly
Posts: 786
Joined: Fri Feb 21, 2003 6:29 am
Location: Ypsitucky, MI
Contact:

Unread postby semi-fly » Thu Oct 23, 2003 11:15 am

Thanks everyone! I'll give this is shot soon as I get home from class! =)
configure complete, now type 'make' and pray.

User avatar
squeen
Moderator
Moderator
Posts: 2931
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Tue Nov 04, 2003 6:19 am

I gave it a quick go and found I needed to build a newer version of Qt, n'est pa?

User avatar
semi-fly
Posts: 786
Joined: Fri Feb 21, 2003 6:29 am
Location: Ypsitucky, MI
Contact:

Unread postby semi-fly » Fri Nov 07, 2003 6:27 pm

squeen wrote:I gave it a quick go and found I needed to build a newer version of Qt, n'est pa?


I disabled Qt and enabled GTK. =)
configure complete, now type 'make' and pray.

User avatar
squeen
Moderator
Moderator
Posts: 2931
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Mon Nov 17, 2003 5:25 am

Here's where I am now:

Code: Select all

setenv CC gcc
setenv CFLAGS '-mips3 -O0'
setenv CPPFLAGS '-I/usr/include -I/usr/freeware/include -I/usr/local/include'
setenv LDFLAGS '-L/usr/lib32 -L/usr/local/lib -L/usr/freeware/lib32'

./configure --prefix=/usr/local --with-gtk

gives me the following error:

Code: Select all

gtkmain.cpp: In function `void setupCheckItem(GtkItemFactory*, int, void (*)(),
   CheckFunc*)':
gtkmain.cpp:2036: error: `rindex' undeclared (first use this function)
gtkmain.cpp:2036: error: (Each undeclared identifier is reported only once for
   each function it appears in.)

Since it's a !^%&* C++ app, I havn't a clue as to why it can't find a standard C <strings.h> function. Any help?

User avatar
semi-fly
Posts: 786
Joined: Fri Feb 21, 2003 6:29 am
Location: Ypsitucky, MI
Contact:

Unread postby semi-fly » Mon Nov 17, 2003 6:21 am

squeen wrote:Here's where I am now:

Code: Select all

setenv CC gcc
setenv CFLAGS '-mips3 -O0'
setenv CPPFLAGS '-I/usr/include -I/usr/freeware/include -I/usr/local/include'
setenv LDFLAGS '-L/usr/lib32 -L/usr/local/lib -L/usr/freeware/lib32'

./configure --prefix=/usr/local --with-gtk

gives me the following error:

Code: Select all

gtkmain.cpp: In function `void setupCheckItem(GtkItemFactory*, int, void (*)(),
   CheckFunc*)':
gtkmain.cpp:2036: error: `rindex' undeclared (first use this function)
gtkmain.cpp:2036: error: (Each undeclared identifier is reported only once for
   each function it appears in.)

Since it's a !^%&* C++ app, I havn't a clue as to why it can't find a standard C <strings.h> function. Any help?


Yep, need to include 'strings.h' in the ./src/celestia/gtkmain.cpp file. Unless you've already done that, in which case I don't have a clue, but that worked for me. :)
configure complete, now type 'make' and pray.

User avatar
squeen
Moderator
Moderator
Posts: 2931
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Mon Nov 17, 2003 9:10 am

OK, that did the trick (I forgot the trailing s in <strings.h>)

Next, I had a bunch of libpng errors to I decided to try and link to the newer version I have from the Written Word in /opt/TWWfws/libpng12. I then set

Code: Select all

setenv CPPFLAGS '-I/opt/TWWfsw/libpng12/include -I/usr/include -I/usr/freeware/include -I/usr/local/include'
setenv LDFLAGS '-L/opt/TWWfsw/libpng12/lib -L/usr/lib32 -L/usr/local/lib -L/usr/freeware/lib32'setenv LD_LIBRARYN32_PATH /opt/TWWfsw/libpng12/lib:/usr/local/lib:/usr/freeware/lib32:/usr/lib32


I compiled the executable (first resolving one linking sntax error in the src/celestia/Makefile).
All is not well however since celestia core dumped when I executed it. :(

User avatar
semi-fly
Posts: 786
Joined: Fri Feb 21, 2003 6:29 am
Location: Ypsitucky, MI
Contact:

Unread postby semi-fly » Mon Nov 17, 2003 9:16 am

squeen wrote:I compiled the executable (first resolving one linking sntax error in the src/celestia/Makefile).




:? Can you please tell me what the syntax error is in the src/celesta/Makefile so I can fix it? That's all I have left and it should compile for me, although we'll see if it actually runs.

:)
configure complete, now type 'make' and pray.

User avatar
squeen
Moderator
Moderator
Posts: 2931
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Mon Nov 17, 2003 10:45 am

src/celestia/Makefile line 827

was:

Code: Select all

   (cd ../..; ln -s src/celestia/celestia)


should be:

Code: Select all

   (cd ../..; ln -s src/celestia/celestia .)

User avatar
nvukovlj
Posts: 356
Joined: Mon Jun 09, 2003 8:27 am
Location: London, UK
Contact:

Unread postby nvukovlj » Tue Nov 18, 2003 5:27 am

squeen wrote:OK, that did the trick (I forgot the trailing s in <strings.h>)

Next, I had a bunch of libpng errors to I decided to try and link to the newer version I have from the Written Word in /opt/TWWfws/libpng12. I then set

I compiled the executable (first resolving one linking sntax error in the src/celestia/Makefile).
All is not well however since celestia core dumped when I executed it. :(


Just a suggestion:

ldd your binary and see if it is finding the correct libpng, and not the freeware one...

User avatar
squeen
Moderator
Moderator
Posts: 2931
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Tue Nov 18, 2003 9:57 am

An execellent suggestion nvukovlj, but unfortunately not the culprit I get:

Code: Select all

ldd celestia
        libpng.so.3  =>  /opt/TWWfsw/libpng12/lib/libpng.so.3   
        libjpeg.so  =>   /usr/freeware/lib32/libjpeg.so
        libGLU.so  =>    /usr/lib32/libGLU.so   
        libXmu.so  =>    /usr/lib32/libXmu.so   
        libz.so.3  =>    /opt/TWWfsw/zlib11/lib/libz.so.3
        ...


I also wondered how setting the environment variables would help is distiguish between multiple library and header copies. (I wish someone could explain to me how versioning of the dynamically shared libraaries works!).

Another interesting note is when I use dbx on the core file I get:

Code: Select all

dbx version 7.3.4 (89708_Mar27 patchSG0004885) Mar 27 2003 14:33:10
Elf 32 File Header in core file does not match executable/dso /usr/freeware/lib32/libaudiofile.so (elf header e_entry mismatch) (use of the core file may be misleading!)
Elf 32 File Header in core file does not match executable/dso /opt/TWWfsw/zlib11/lib/libz.so (elf header e_entry mismatch) (use of the core file may be misleading!)
Core from signal SIGABRT: Abort (see abort(3c))


Thanks for the help anyways.

User avatar
squeen
Moderator
Moderator
Posts: 2931
Joined: Fri May 09, 2003 6:10 am
Location: Maryland, USA

Unread postby squeen » Thu Nov 20, 2003 9:49 am

Hey semi-fly....any luck?

(Let me know when you want to play the compile Crossfire game).


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 1 guest