Hi Stephan,

The XCode build fails for me in osgunittests when running
"runFileNameUtilsTest(osg::ArgumentParser&)" because ld: symbol(s) not
found. Let me investigate further...

Cheers.







2010/3/10 Jordi Torres <[email protected]>

> Hi Stephan,
>
> I am trying your XCode/CMake mods. It is now compiling, and very
> sloooow.... but I have realize that in your osgViewer/CmakeLists.txt there
> is a weird thing.
> Line 107:
>
> SET(LIB_EXTRA_LIBS ${COCOA_LIBRARY} ${LIB_EXTRA_LIBS})
>
> Shouldn't it be SET(LIB_EXTRA_LIBS ${CARBON_LIBRARY} ${LIB_EXTRA_LIBS}) ??
>
> 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
>



-- 
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

Reply via email to