This is the openscenegraph make sources for iOS platform. The OpenSceneGraph git repo is : https://github.com/openscenegraph/OpenSceneGraph
-
Download this repo and unzip it.
-
go into the dir, and git clone the openscenegraph repo in this
-
Edit
run.sh
file, and redirect theexport THIRDPARTY_PATH
(Maybe you also need to edit
-DIPHONE_SDKVER="16.4"
with your local sdk version. You can runxcrun --sdk iphoneos --show-sdk-path
to get the version number.) -
copy
run.sh
intoOpenSceneGraph
directory, and run it.(While running on iOS devices, maybe you need to remove the link MacOSSDK in XCode build settings. )
Cross-Platform-guide
https://github.com/OGStudio/openscenegraph-cross-platform-guide
Cross-Platform-guide-application
https://github.com/OGStudio/openscenegraph-cross-platform-guide-application
OSG Cook book recipes repo
https://github.com/xarray/osgRecipes
Sample Data
https://github.com/openscenegraph/OpenSceneGraph-Data
OSG for iOS + uMundo :a plugin which can sync camera matrix between devices
https://github.com/tklab-tud/umundo
According to this issue openscenegraph/OpenSceneGraph#1063
Turn on CMake option BUILD_DOCUMENTATION
, and run make doc_openscenegraph
It also refer an online document : https://codedocs.xyz/openscenegraph/OpenSceneGraph
-
Proj
-
gdal
(gdal build guide for iOS : https://gis.stackexchange.com/questions/434514/build-gdal-3-x-for-ios)
-
OSG report
Error, no WindowSystemInterface available, cannot create windows.
Use
USE_GRAPICSWINDOW_IMPLEMENTATION(IOS)
under the#include <osgDB/Registry>
-
*.osgb
files could not read correctlyNeed
USE_OSGPLUGIN(osg2)
andUSE_SERIALIZER_WRAPPER_LIBRARY(osg)
to import the plugin library.And the
*.osg
files use theseUSE_OSGPLUGIN(osg)
andUSE_DOTOSGWRAPPER_LIBRARY(osg)
-
Add
USE_DOTOSGWRAPPER_LIBRARY(osg)
compile error.This statement will search
libosgdb_deprecated_osg.a
library. Make sure import it already. -
Other Compile failed
Add
OSG_LIBRARY_STATIC
to Preprocessor Macros may help.