set(CMAKE_CXX_FLAGS "$ -Wno-overloaded-virtual -Wno-conversion") set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LIBRARY "libstdc ") set(CMAKE_XCODE_ATTRIBUTE_CLANG_CXX_LANGUAGE_STANDARD "c 98") # set standard lib, clang defaults to c 0x I use OSG 3.2.x checked out from their subversion repository and make the one change that the maintainers of OSG should do: The resolution is to recompile and reinstall OSG with proper compiler flags. (Macports behaviour can probably be changed to use libstdc but why complicate things?) MacPorts ( ) uses the same defaults as Apple's compilers and that is reason enough to go with libc . One must decide which C runtime library to use: Apple's libc , or GCC's libstdc . The linker expects libc usage in simgear whereas OSG has introduced libstdc . Subsequently, when compiling simgear the same switches are not utliized by the simgear developers, which I think is a good thing, and compilation fails. The behaviour of clang can be changed with switches and this is done by the OpenSceneGraph maintainers! The OSG maintainers request clang to adhere to c 98 and use stdilbc runtime rather than the defaults (c 11 and libc ). Starting with Mac OS X 10.9 (Mavericks) Apple changed clang C runtime library to libc . No one has responded to this so I'll share my findings today on the subject. I also traced the error to the link command in sgbuild/simgear/canvas/elements/CMakeFiles/test-simgear_canvas_elements-canvas_element.dir/link.txt[/i, but this command includes linking to libosgParticle.dylib (which seems to be the source of the missing symbols). Sometimes wget would have to restart a library in the middle a dozen times.Įdit: I also ran cmake forcing it to use the gcc in Macports (rather than /usr/bin/c ), which made it consistent with the compiler used to build Boost and OSG. I needed to use wget to get the libraries, using its ability to continue an aborted download. All files, zips or not, seem to truncate as the connection is broken. OSG: both yesterday's from Jenkins, or OpenSceneGraph from Macports - same result as shown aboveĪlso, Jenkins is giving a lot of problems. "osg::computeWorldToLocal(std::_1::vector > const
0 Comments
Leave a Reply. |