[osg-users] 2.8 OpenThreads linker errors on Mac 10.5

Christian Noon osgforum at tevs.eu
Mon Mar 9 08:02:39 PDT 2009


Stephan,

Sorry this took me so long to get posted, I've been out of the country for the last couple weeks. Anyways, here's a shortened version of my build log, I removed a bunch of the warnings coming from wx. If you want to see the full log, I'll repost.


Building target “ASDS-v2.0” of project “ASDS-v2.0” with configuration “Debug”


Checking Dependencies

Ld /Users/Christian/Documents/Programming/ASDS/asdsClient/build/Debug/ASDS-v2.0.app/Contents/MacOS/ASDS-v2.0 normal i386
    mkdir /Users/Christian/Documents/Programming/ASDS/asdsClient/build/Debug/ASDS-v2.0.app/Contents/MacOS
    cd /Users/Christian/Documents/Programming/ASDS/asdsClient
    /Developer/usr/bin/g++-4.0 -arch i386 -L/Users/Christian/Documents/Programming/ASDS/asdsClient/build/Debug -L/Users/Christian/Documents/Programming/ASDS/asdsClient -L/usr/lib/samba/charset -L/usr/lib/samba/pdb -L/usr/lib/samba/idmap -L/usr/lib/samba/vfs -L/usr/lib/samba/auth -L/usr/lib/java -L/usr/lib/dtrace -L/usr/lib/system -L/usr/lib/samba -L/usr/lib/gcc/i686-apple-darwin9/4.0.1 -L/usr/lib/gcc/i686-apple-darwin9/4.2.1 -L/usr/lib/gcc/powerpc-apple-darwin9/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin9/4.2.1 -L/usr/lib/sqlite3 -L/Users/Christian/Documents/Programming/ASDS/asdsClient/../../../Library/DevAPIs/wxMac-2.8.9/build-mac/lib -L/Users/Christian/Documents/Programming/ASDS/asdsClient/../../../../Library/DevAPIs/wxMac-2.8.9/build-mac/lib -L/Users/Christian/Documents/Programming/ASDS/asdsClient/../../../../Library/DevAPIs/wxMac-2.8.9/build-mac/lib -F/Users/Christian/Documents/Programming/ASDS/asdsClient/build/Debug -F/Users/Christian/Library/Frameworks -filelist /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDS-v2.0.LinkFileList -lz -lpthread -liconv -framework OpenThreads -framework osg -framework osgDB -framework osgGA -framework osgIntrospection -framework osgManipulator -framework osgText -framework osgUtil -framework osgViewer -framework AGL -framework Carbon -framework IOKit -framework OpenGL -framework QuickTime -framework System -framework WebKit -framework AppKit -lwx_base_carbond-2.8 -lwx_base_carbond_net-2.8 -lwx_base_carbond_xml-2.8 -lwx_macd_adv-2.8 -lwx_macd_aui-2.8 -lwx_macd_core-2.8 -lwx_macd_gl-2.8 -lwx_macd_html-2.8 -lwx_macd_qa-2.8 -lwx_macd_richtext-2.8 -lwx_macd_xrc-2.8 -lwxjpegd-2.8 -lwxpngd-2.8 -lwxtiffd-2.8 -o /Users/Christian/Documents/Programming/ASDS/asdsClient/build/Debug/ASDS-v2.0.app/Contents/MacOS/ASDS-v2.0
ld warning: wxMBConv::wxMBConv()has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/stringConversions.o
ld warning: wxStringData::IsEmpty() const has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringData::Lock()      has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringData::Unlock()      has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringData::IsValid() const has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringBase::GetStringData() const  has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringBase::Init()      has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringBase::wxStringBase()has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringBase::wxStringBase(char const*)has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringBase::length() const has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringBase::empty() const has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringBase::wxStringBase(wxStringBase const&)has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxStringBase::c_str() const has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/FileManager.o
ld warning: wxStringBase::~wxStringBase()has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxString::wxString()has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxString::wxString(wxString const&)has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxString::wxString(char const*)has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_macd_core-2.8.a(corelib_window.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o

I removed a bunch of warnings here....

ld warning: wxArrayString::push_back(wxString const&) has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_base_carbond-2.8.a(baselib_textfile.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSFrame.o
ld warning: wxThreadHelperThread::~wxThreadHelperThread()has different visibility (default) in /Users/Christian/Library/DevAPIs/wxMac-2.8.9/build-mac/lib/libwx_base_carbond-2.8.a(baselib_textfile.o) and (hidden) in /Users/Christian/Documents/Programming/ASDS/asdsClient/build/ASDS-v2.0.build/Debug/ASDS-v2.0.build/Objects-normal/i386/ASDSApp.o
Undefined symbols:
  "OpenThreads::Atomic::operator--()", referenced from:
      osg::Referenced::unref() constin ASDSFrame.o
      osg::Referenced::unref() constin FileManager.o
      osg::Referenced::unref() constin ASDSOSGCanvas.o
      osg::Referenced::unref() constin ASDSScene.o
      osg::Referenced::unref() constin ASDSTree.o
      osg::Referenced::unref() constin ASDSGraphicalPicker.o
      osg::Referenced::unref() constin ASDSTreeItemData.o
      osg::Referenced::unref() constin ASDSDraggerHandler.o
      osg::Referenced::unref() constin ASDSPart.o
      osg::Referenced::unref() constin Translate3DAxisPlaneDragger.o
      osg::Referenced::unref() constin Translate3DDragger.o
      osg::Referenced::unref() constin Translate3DPlaneDragger.o
      osg::Referenced::unref() constin ASDSStateSavingPanel.o
      osg::Referenced::unref() constin Rotate3DCylinderDragger.o
  "OpenThreads::Atomic::operator++()", referenced from:
      osg::Referenced::ref() constin FileManager.o
      osg::Referenced::ref() constin ASDSOSGCanvas.o
      osg::Referenced::ref() constin ASDSScene.o
      osg::Referenced::ref() constin ASDSTree.o
      osg::Referenced::ref() constin ASDSGraphicalPicker.o
      osg::Referenced::ref() constin ASDSTreeItemData.o
      osg::Referenced::ref() constin ASDSDraggerHandler.o
      osg::Referenced::ref() constin ASDSPart.o
      osg::Referenced::ref() constin Translate3DAxisPlaneDragger.o
      osg::Referenced::ref() constin Translate3DDragger.o
      osg::Referenced::ref() constin Translate3DPlaneDragger.o
      osg::Referenced::ref() constin ASDSStateSavingPanel.o
      osg::Referenced::ref() constin Rotate3DCylinderDragger.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

Thanks for your help as always,

Christian

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








More information about the osg-users mailing list