Hi,

>From a previous post regarding unresolved externals, I decided to mimic as 
>close as possible how one of the examples were built from the 
>openscenegraph.xcode project. In this case, I tried two methods. 

First, I built the Xcode project from scratch, including the various 
frameworks, and macro defs, etc. In the second, instead of the osglogo app, I 
started with the osg template. I made sure that the frameworks were referenced 
to the OpenSceneGraph 2.8.3 carbon 32 bit release frameworks.

In Either cases, everything compiles correctly but I still get this error:

<snip>
Undefined symbols:
  "OpenThreads::Atomic::operator--()", referenced from:
      osg::Referenced::unref() constin main.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
<snip>

The generated link line, building for 32bit i386, for the 2nd template test 
contains the OpenThreads framework (and it is in the same dir as the other osg 
Frameworks), as shown below:

Ld 
build/Development/osgapp_template_test.app/Contents/MacOS/osgapp_template_test 
normal i386
cd /Users/tmorris/osgapp_template_test
/Developer/usr/bin/g++-4.2 -arch i386 
-L/Users/tmorris/osgapp_template_test/build/Development 
-F/Users/tmorris/osgapp_template_test/build/Development 
-F/Users/tmorris/Library/Frameworks -filelist 
/Users/tmorris/osgapp_template_test/build/osgapp_template_test.build/Development/osgapp_template_test.build/Objects-normal/i386/osgapp_template_test.LinkFileList
 -framework OpenThreads -framework Carbon -framework OpenGL -framework osg 
-framework osgDB -framework osgFX -framework osgGA -framework osgIntrospection 
-framework osgManipulator -framework osgParticle -framework osgSim -framework 
osgTerrain -framework osgText -framework osgUtil -framework osgViewer -o 
/Users/tmorris/osgapp_template_test/build/Development/osgapp_template_test.app/Contents/MacOS/osgapp_template_test
<snip>

The osglogo.cpp code produces the same result, and therefore I don't repeat it. 
I know the frameworks and plugins built correctly because all the example and 
executable apps compiled and bundled successfully. Has anyone come across a 
similar problem like this?  I've stared and plated with various linker and 
compile flags and I'm stumped. 

Thank you!

Cheers,
Ted

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=35559#35559





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to