Comiling Open Inventor (on a Mac)

Comiling Open Inventor (on a Mac)

Post by dmiller15 » Fri, 13 Aug 2004 05:41:38


I've been struggling trying to get open inventor to compile on a Mac.
I've had to alter quite a few things in the script from Apples site
and SGIs open inventor code. I'm starting to get to the end of my
wits. What can be wrong?

make[1]: Nothing to be done for `all'.
/usr/bin/g++ -L//usr/lib -multiply_defined suppress -L/usr/X11R6/lib
-L/sw/lib -L/sw/lib/freetype2/lib -lm -L../../lib -L../../libSoXt
ppp.o -lm -lXt -lX11 -lGLU -lGL -liconv -ldl -lcc_dynamic
-lstdc++ -o ppp
ld: Undefined symbols:
_acosf
make[2]: *** [ppp] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
 
 
 

Comiling Open Inventor (on a Mac)

Post by Tony 'Nico » Fri, 13 Aug 2004 11:44:35

In article < XXXX@XXXXX.COM >,


: I've been struggling trying to get open inventor to compile on a Mac.
: I've had to alter quite a few things in the script from Apples site
: and SGIs open inventor code. I'm starting to get to the end of my
: wits. What can be wrong?
:
: make[1]: Nothing to be done for `all'.
: /usr/bin/g++ -L//usr/lib -multiply_defined suppress -L/usr/X11R6/lib
: -L/sw/lib -L/sw/lib/freetype2/lib -lm -L../../lib -L../../libSoXt
: ppp.o -lm -lXt -lX11 -lGLU -lGL -liconv -ldl -lcc_dynamic
: -lstdc++ -o ppp
: ld: Undefined symbols:
: _acosf
: make[2]: *** [ppp] Error 1
: make[1]: *** [all] Error 1
: make: *** [all] Error 1

From "man acosf" on X.3:

To use these functions you must add an additional flag to the link step
that produces the executable binary. Specify "-lmx".


Cheers - Tony 'Nicoya' Mantler :)

--
Tony 'Nicoya' Mantler -- Master of Code-fu -- XXXX@XXXXX.COM
-- http://www.yqcomputer.com/ ://www.ubb.ca/ --

 
 
 

Comiling Open Inventor (on a Mac)

Post by dmiller15 » Sat, 14 Aug 2004 02:45:53

That help alot, but now I'm getting multiple definition of tan2f,
which I don't know where it is coming from. Aggrevating, wish sgi
could make open inventor to compile for the mac out of the box.
 
 
 

Comiling Open Inventor (on a Mac)

Post by JCS » Sat, 14 Aug 2004 09:33:36


www.coin3d.org
 
 
 

Comiling Open Inventor (on a Mac)

Post by dmiller15 » Tue, 17 Aug 2004 20:32:25

> www.coin3d.org

I've thrown out that idea to my super, but he believes that open
inventor is the "true" code, it will be standard. He has pretty well
said that he only wants open inventor since coin is the open
implementation of inventor when it was closed source.

I do not hold the same view as my super, but I'm only the guy working
on the project, what say do I have? So I need to see what I can get
working.
 
 
 

Comiling Open Inventor (on a Mac)

Post by Tony 'Nico » Wed, 18 Aug 2004 02:35:50

In article < XXXX@XXXXX.COM >,


: That help alot, but now I'm getting multiple definition of tan2f,
: which I don't know where it is coming from. Aggrevating, wish sgi
: could make open inventor to compile for the mac out of the box.

You're probably linking both libm and libmx. Remove the -lm from your link line.


Cheers - Tony 'Nicoya' Mantler :)

--
Tony 'Nicoya' Mantler -- Master of Code-fu -- XXXX@XXXXX.COM
-- http://www.yqcomputer.com/ ://www.ubb.ca/ --
 
 
 

Comiling Open Inventor (on a Mac)

Post by dmiller15 » Thu, 19 Aug 2004 03:06:22

I do not link in lm. I've grepped for the files containing lm and came
acrossed none that I saw that linked in lm. Here is the output for
lmx:

inventor/lib/GNUmakefile: -lX11 -lmx \
inventor/libSoXt/GNUmakefile: -lXt -lXext -lXi -lX11 -lmx \
inventor/make/localrules.apple:LLDLIBS += -lmx -lXt -lX11 -lGLU -lGL
-liconv -ldl -lcc_dynamic -lstdc++
inventor/tools/ppp/GNUmakefile:LLDLIBS = -lmx


And This is my error:

/usr/bin/libtool -L//usr/lib -L../libimage -L../libFL/freetype
-dynamic -all_load -L/usr/X11R6/lib libInventor.a -limage -lFL
-lfreetype -lX11 -lmx -lGLU -lGL -lmx -lXt -lX11 -lGLU -lGL -liconv
-ldl -lcc_dynamic -lstdc++ -o libInventor.dylib
ld: for architecture ppc
ld: warning multiple definitions of symbol _atan2f
 
 
 

Comiling Open Inventor (on a Mac)

Post by cosmo » Thu, 19 Aug 2004 04:24:35


^^^^^^^^^^^

Looks like an error to me! :)

cheers.
 
 
 

Comiling Open Inventor (on a Mac)

Post by Lewis Saun » Thu, 19 Aug 2004 05:38:52


This might be a silly question, but is that a problem? Although there are
multiple definitions it could use the first one and work okay, and it says
"warning" rather than "error". It might be that the output file is actually
being created okay...
 
 
 

Comiling Open Inventor (on a Mac)

Post by JCS » Thu, 19 Aug 2004 13:48:07


Pity, since SGI's Open Inventor is no longer developed and has been dead for
some time.

I don't believe TGS Open Inventor is available for the Mac (they were an OI
licensee).

JCS
 
 
 

Comiling Open Inventor (on a Mac)

Post by dmiller15 » Thu, 19 Aug 2004 23:20:50

Here is the rest of my error (I'm getting alot of them):
ld: Undefined symbols:
_flCreateContext
_flCreateFont
_flDestroyFont
_flFreeOutline
_flGetCurrentContext
_flGetCurrentFont
_flGetOutline
_flMakeCurrentContext
_flMakeCurrentFont
_flSetHint
_flFreeBitmap
_flUniGetBitmap
_flUniGetOutline
_jpeg_CreateDecompress
_jpeg_destroy_decompress
_jpeg_finish_decompress
_jpeg_read_header
_jpeg_read_scanlines
_jpeg_start_decompress
_jpeg_std_error
_jpeg_stdio_src
_yylex
/usr/bin/libtool: internal link edit command failed
make[1]: *** [libInventor.dylib] Error 1
make: *** [all] Error 1

Its starting to get aggrevating, that is for sure.