Hi,
I found the following Macro after some research:
macro(ADD_FRAMEWORK fwname appname)
find_library(FRAMEWORK_${fwname}
NAMES ${fwname}
PATHS ${CMAKE_OSX_SYSROOT}/System/Library
PATH_SUFFIXES Frameworks
NO_DEFAULT_PATH)
if( ${FRAMEWORK_${fwname}} STREQUAL FRAMEWORK_${fwname}-NOTFOUND)
MESSAGE(ERROR ": Framework ${fwname} not found")
else()
TARGET_LINK_LIBRARIES(${appname} ${FRAMEWORK_${fwname}})
MESSAGE(STATUS "Framework ${fwname} found at
${FRAMEWORK_${fwname}}")
endif()
endmacro(ADD_FRAMEWORK)
after the TARGET_LINK_LIBRARIES (sic!)
add_framework(Foundation Application)
add_framework(Security Application)
hth
Sebastian
Hi, Sebastian.
I would like to have a look at that CMake file :)
Thanks.
2014-03-19 4:45 GMT+07:00 Sebastian Messerschmidt
<sebastian.messerschm...@gmx.de <mailto:sebastian.messerschm...@gmx.de>>:
Hi folks,
I found the problem and thus a solution.
The main issue was that I generated the project with CMake and
therefore the framework paths where missing.
I came up with a solution adding the frameworks programmatically
using a CMake-macro which made linking to libz and curl possible.
The iOSSimulator project is running as expected loading obj files
from a HTTP url.
Finally!
If anyone is interested I can contribute the CMake file (Sorry I
simpy hate using pre-baked Solution/XCode files etc.)
I'm sure I will be back with further questions ;-)
Thanks for the support, especially to Stephan.
cheers
Sebastian
Am 18.03.2014 10:12, schrieb Stephan Maximilian Huber:
HI Sebastian,
Am 18.03.2014 um 09:58 schrieb Sebastian Messerschmidt
<sebastian.messerschm...@gmx.de
<mailto:sebastian.messerschm...@gmx.de>>:
I'm still struggling with the issue. Could you (or someone
else) try to link the curl plugin in a iOS-Simulator project
and check if the linker complains?
As said before I'm not familiar with the MacOS/iOS platform, so
I don't know the tools to check the dependencies neither I know
which SSL library could be appropriate to link.
All I can say is that it's working for me. I don't use any
SSL-stuff with libcurl. I am just using the osgdb_curl plugin
and the libcurl.a Have a look at the Present3D-Control-app how
the linking etc is setup, maybe there are some differences.
I don't use SSL directly. I'm simply linking the curl.a delivered
at the github page you pointed me to, which gives me the linker
error.
Thanks for the hint, I'll check the Present3D app, maybe I can
locate the correct libraries there.
And please: Post the exact error-messages, the complete output
of the linking-stage.
Ok, I will try to.
cheers,
Stephan
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
<mailto:osg-users@lists.openscenegraph.org>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
<mailto:osg-users@lists.openscenegraph.org>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
<mailto:osg-users@lists.openscenegraph.org>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org