[osg-users] [build] Could not build for iOS

Andrew Poltavets apoltavets at yahoo.com
Sun Jul 28 04:25:12 PDT 2019


Hi,

Could you please point me out how to build OpenSceneGraph for iOS?

Generally two thing I did not get:
1) Full stack of OpenSceneGraph seems to be not being compiled successfully:
got the following error:

> /Users/andrew/MyDev/osg-ios/osg/src/osgPlugins/curl/ReaderWriterCURL.cpp:25:10: fatal error: 'curl/curl.h' file not found
> #include <curl/curl.h>
>          ^~~~~~~~~~~~~
> 1 error generated.
> 
> ** BUILD FAILED **


I am using this preset before I configure it in CMake:

Code:
DYNAMIC_OPENTHREADS = FALSE
DYMAMIC_OPENSCENEGRAPH = FALSE
BUILD_OSG_APPLICATIONS = FALSE
OSG_WINDOWING_SYSTEM = "IOS"
APPLE = TRUE
OSG_BUILD_PLATFORM_IPHONE = TRUE
IPHONE_SDKVER = "12.1"
OPENGL_PROFILE = "GLES3"




2) Even assuming I got this compiled ok, how can I run OSG on simulator?
Now, having compiled two basic libs - libosg.a and libOpenThreads.a i can't run basic stuff on simulator - there is linker errors due to arch mismatch:


> Ld /Users/andrew/Library/Developer/Xcode/DerivedData/OSGProj-fbbfvlvldeljmkbfvnkkchwhqiyb/Build/Products/Debug-iphonesimulator/OSGProj.app/OSGProj normal x86_64 (in target: OSGProj)
>     cd /Users/andrew/MyDev/OSGProj
>     export IPHONEOS_DEPLOYMENT_TARGET=12.2


That's is due to simulator runs as x86_64 arch. How can I compile for simulator?

Thank you!

Cheers,
Andrew

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







More information about the osg-users mailing list