Hi Robert,
attached a revised CMakeLists.txt file for Android that avoids the problems with a ARM gcc bug that appears in the NDK. It only overrides the optimization level for one file. As it resides only in the cfg parser this should not have side effects on performance.
Cheers, Hartmut -- Hartmut Seichter, PhD (HKU), Dipl.-Ing. (BUW)
SET(TARGET_SRC CameraConfig.cpp Camera.cpp ConfigLexer.cpp ConfigParser.cpp ReaderWriterCFG.cpp RenderSurface.cpp VisualChooser.cpp ) SET(TARGET_H CameraConfig.h Camera.h ConfigParser.h RenderSurface.h VisualChooser.h ) # # Android NDK r6, r6b and r7 ship with a broken gcc (armeabi) # see also # - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40836 # - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37987 # if (ANDROID) set_source_files_properties(ConfigParser.cpp PROPERTY COMPILE_FLAGS "-O0") endif() # SET(TARGET_ADDED_LIBRARIES osgViewer) #### end var setup ### SETUP_PLUGIN(cfg)
_______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
