Hi Stephan, Robert, I have compiled the frameworks with Unix makefiles,and with generated XCode project. Despite compiling succesful, I have seen a problem (a part of the headers installation in osgViewer).
In the file ModuleInstall.cmake line 37: IF(!OSG_COMPILE_FRAMEWORKS) it doesn't work, so the frameworks are always installed. The correct way to write this in CMake is : IF (NOT OSG_COMPILE_FRAMEWORKS). I am compiling now with this modification, I will write to you again in a while. Cheers. 2010/3/10 Stephan Maximilian Huber <[email protected]> > Hi all, > > I am trying to add framework-support to the cmake-files, and I am > hitting a wall. I am not a cmake-expert so I'll ask the community for help. > > Attached you'll find my modified cmake-files (based on current trunk), > which adds compiling osg as frameworks, which can be embedded into > application bundles (this is the main reason for the existance of the > deprecated xcode-project) > > To compile frameworks with cmake you'll have to: > > set OSG_COMPILE_FRAMEWORKS to TRUE > modify OSG_COMPILE_FRAMEWORKS_INSTALL_NAME_DIR if needed > set the CMAKE_INSTALL_PREFIX to something reasonable, I use a folder on > my desktop as destination. > > Click Configure, click generate, open the xcode project, click build, > select the "install"-target, click build again. So you'll find in > CMAKE_INSTALL_PREFIX a bunch of folders, in lib you'll find the > frameworks, ready to be embedded into your app. > > You'll get valid frameworks ONLY if you run the install-target. Without > that, the install_name_dirs are bound to the local storage of the > frameworks, and will not work on other computers, or other destinations. > > And here's the big BUT: > > I have problems to move the api-headers of osgViewer into their right > places (osgViewer.framework/headers/api/(Carbon|Cocoa)/*) > > They end all in osgViewer.framework/headers/ > > There is a special property for this called MACOSX_PACKAGE_LOCATION, > which should move the corresponding files to the special place in the > framework-bundle, but it doesn't work for the api-headerfiles. Perhaps > someone can look at the source in src/osgViewer/CMakeLists.txt and check > my approach. cmake copies two cpp-files into that place instead of the > header-files. > > So please, please test the packaged cmake-files and perhaps there is > someone out there who can help with the issues with the > osgviewer-header-files! > > thanks in advance, > > Stephan > > > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > -- Jordi Torres Fabra gvSIG 3D blog http://gvsig3d.blogspot.com Instituto de Automática e Informática Industrial http://www.ai2.upv.es
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

