I encountered the following problem when compiling Inventor 2.1.5-10 on
my new MacBook OS X (10.5.2 (Leopard)):
/usr/bin/g++
-L/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_inventor/work/destroot//opt/local/lib
-L../../../lib -L../../../libSoXt -bind_at_load -multiply_defined
suppress -L/usr/X11R6/lib -L/opt/local/lib componentTest.o
libInventorWidget.a -lInventor -lInventorXt -lGLw
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
-lXm -lXt -lX11 -lGLU -lGL -liconv -ldl -o componentTest
Undefined symbols:
"_glwMDrawingAreaWidgetClass", referenced from:
_glwMDrawingAreaWidgetClass$non_lazy_ptr in
libInventorWidget.a(MyTextureEd.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[4]: *** [componentTest] Error 1
make[3]: *** [all] Error 2
make[2]: *** [all] Error 1
make[1]: *** [all] Error 1
make: *** [all] Error 1
I used "sudo port install inventor" compile the package with the
following g++ compiler:
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5465~16/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=i686-apple-darwin9 --with-arch=apple --with-tune=generic
--host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5465)
Any help is highly appreciated.
Thanks,
Wolfgang
|