Hi Massimo,

Am 10.06.11 17:05, schrieb [email protected]:

> About the ReaderWriterImageIO_IOS, it seems that the ImageIO framework is
> not found or some path is wrong... can I try to modify the CMakeLists.txt
> in the imageio plugin in order to specify where is the framework and to
> force to compile it?
> 
> I tried to put the ImageIO framework in to the Resource group of the
> OpenSceneGraph Xcode project, but the compilation fails again.
> 
> I should specify that I'm compiling for iOS simulator, with OpenGL ES 1
> enabled, iPhone SDK 4.3.

I updated trunk, created a fresh xcode-project files for the simulator
via cmake and build successfully the imageio-plugin. There's no need for
referencing the imageio-framework, as the plugin is linked statically -
that means, you'll have to add the imageio-framework to your app which
is using the imageio-plugin.

for completeness sake, here's my cmake-command:

cd OSG_ROOT
mkdir osg_build
cd osg_build
cmake -G Xcode \
-D OSG_BUILD_PLATFORM_IPHONE_SIMULATOR:BOOL=ON \
-D BUILD_OSG_APPLICATIONS:BOOL=OFF \
-D OSG_BUILD_FRAMEWORKS:BOOL=OFF \
-D OSG_WINDOWING_SYSTEM:STRING=IOS \
-D CMAKE_OSX_ARCHITECTURES:STRING=i386 \
-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 \
..

Then I opened the xcode project and set the SDK to iphonesimulator and
the architecture to i386. (You can set these vars via cmake, but I was
impatient)

then I compiled the ios-plugin, and it worked out of the box. I am using
the 4.3 SDK and Xcode 3.2.x

cheers,
Stephan


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to