From Stephan Huber, "attached you'll find some enhancements for the iphone-part of the readme."
This commit is contained in:
parent
c8350e0428
commit
a74289614d
26
README.txt
26
README.txt
@ -155,7 +155,8 @@ animations.
|
|||||||
* Check that CMAKE_OSX_ARCHITECTURE is i386 for the simulator or armv6;armv7 for the device
|
* Check that CMAKE_OSX_ARCHITECTURE is i386 for the simulator or armv6;armv7 for the device
|
||||||
* Disable DYNAMIC_OPENSCENEGRAPH, DYNAMIC_OPENTHREADS
|
* Disable DYNAMIC_OPENSCENEGRAPH, DYNAMIC_OPENTHREADS
|
||||||
This will give us the static build we need for iPhone.
|
This will give us the static build we need for iPhone.
|
||||||
* Disable OSG_GL1_AVAILABLE, OSG_GL2_AVAILABLE, OSG_GL3_AVAILABLE, OSG_GLU_AVAILABLE
|
* Disable OSG_GL1_AVAILABLE, OSG_GL2_AVAILABLE, OSG_GL3_AVAILABLE,
|
||||||
|
OSG_GL_DISPLAYLISTS_AVAILABLE, OSG_GL_VERTEX_FUNCS_AVAILABLE
|
||||||
* Enable OSG_GLES1_AVAILABLE *OR* OSG_GLES2_AVAILABLE
|
* Enable OSG_GLES1_AVAILABLE *OR* OSG_GLES2_AVAILABLE
|
||||||
* Ensure OSG_WINDOWING_SYSTEM is set to IOS
|
* Ensure OSG_WINDOWING_SYSTEM is set to IOS
|
||||||
* Change FREETYPE include and library paths to an iPhone version
|
* Change FREETYPE include and library paths to an iPhone version
|
||||||
@ -167,6 +168,29 @@ animations.
|
|||||||
* Under Sources -> osgDB, select FileUtils.cpp and open the 'Get Info' panel, change File Type
|
* Under Sources -> osgDB, select FileUtils.cpp and open the 'Get Info' panel, change File Type
|
||||||
to source.cpp.objcpp
|
to source.cpp.objcpp
|
||||||
|
|
||||||
|
Here's an example for the command-line:
|
||||||
|
$ cmake -G Xcode \
|
||||||
|
-D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \
|
||||||
|
-D CMAKE_CXX_FLAGS:STRING="-ftree-vectorize -fvisibility-inlines-hidden -mno-thumb -arch armv6 -pipe -no-cpp-precomp -miphoneos-version-min=3.1 -mno-thumb" \
|
||||||
|
-D BUILD_OSG_APPLICATIONS:BOOL=OFF \
|
||||||
|
-D OSG_BUILD_FRAMEWORKS:BOOL=OFF \
|
||||||
|
-D OSG_WINDOWING_SYSTEM:STRING=IOS \
|
||||||
|
-D OSG_BUILD_PLATFORM_IPHONE:BOOL=ON \
|
||||||
|
-D CMAKE_OSX_ARCHITECTURES:STRING="armv6;armv7" \
|
||||||
|
-D CMAKE_OSX_SYSROOT:STRING=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk \
|
||||||
|
-D OSG_GL1_AVAILABLE:BOOL=OFF \
|
||||||
|
-D OSG_GL2_AVAILABLE:BOOL=OFF \
|
||||||
|
-D OSG_GLES1_AVAILABLE:BOOL=ON \
|
||||||
|
-D OSG_GL_DISPLAYLISTS_AVAILABLE:BOOL=OFF \
|
||||||
|
-D OSG_GL_FIXED_FUNCTION_AVAILABLE:BOOL=ON \
|
||||||
|
-D OSG_GL_LIBRARY_STATIC:BOOL=OFF \
|
||||||
|
-D OSG_GL_MATRICES_AVAILABLE:BOOL=ON \
|
||||||
|
-D OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE:BOOL=ON \
|
||||||
|
-D OSG_GL_VERTEX_FUNCS_AVAILABLE:BOOL=OFF \
|
||||||
|
-D DYNAMIC_OPENSCENEGRAPH:BOOL=OFF \
|
||||||
|
-D DYNAMIC_OPENTHREADS:BOOL=OFF .
|
||||||
|
|
||||||
|
|
||||||
Known issues:
|
Known issues:
|
||||||
* When Linking final app against ive plugin, you need to add -lz to
|
* When Linking final app against ive plugin, you need to add -lz to
|
||||||
the 'Other linker flags' list.
|
the 'Other linker flags' list.
|
||||||
|
Loading…
Reference in New Issue
Block a user