Stephan,

Have you made any progress on this? I tried your files and got similar behavior with respect to the osgViewer headers in the framework. Although I don't even get an api directory in

osgViewer.framework/headers/

Let me know if you have any news files to test. I'll continue to dig on this end.

Thanks

Martins


On 3/10/10 10:21 AM, Stephan Maximilian Huber wrote:
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

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

Reply via email to