Hi Stephan, Robert and anyone else interested in the IPhone port of OSG Finally got round to downloading the git hub version of the IPhone port. Nice one for setting that up guys.
I've had some success getting CMake support for IPhone in OSG and surprisingly the changes are very few, but essentially i have generated and compiled all the OSG libs for IPhone using CMkae. I only have a few minor issues remaining in order for the process to be completely automated, which are as follows. OSG needs to NOT be 'Compiled for Thumb', at the moment this is automatically set by IPhone projects and you have to manually uncheck the box on everything you want to compile. I dare say there is a pre-processor definition that does the same thing as ticking the box (if anyone knows it, could save me some digging). The FIND_PACKAGE(OpenGL) command doesn't find the OpenGLES frameworks (I wouldn't expect it to I guess). At the moment, as things are statically linked it isn't too much of an issue as you only have to manually add it to your actual application. osgDB FileUtils needs to be compiled as an ObjectiveC file, this has to be manually done through XCode (again if anyone knows how or if you can do this through CMake, would be a massive help) I've made the changes to the osgViewer CMake file to add the IPhone Viewer stuff, which seems to have worked. But I can only generate IPhone libs at the moment so have been unable to add the IPhone viewer application I also need to review the changes to the ImageIO plugin, if it is different (which I know at least the location of the libs used will be) should we have two cpp files in the plugin folder (one with _iphone at the end) then use CMake to add the relevant one. Rather then have another plugin? As the IPhone sdk is a platform within a platform OSG will require a switch somewhere to say I specifically want an IPhone project. i've done a basic version for now, but think it's something the CMake experts should be involved with. Also you have to manually set which version of the IPhone SDK you want in the CMakeLists file (once it's found XCode allows you to switch to other versions) I'm going to do all of this from the start again and write down any manual steps required then send the changes and instructions to you Stephan for review if your interested? Cheers Tom
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

