[redland-dev] Redland Objective-C for OSX / IOS
James Amsden
jimamsden at gmail.com
Tue Jan 1 11:51:04 EST 2013
I couldn't get the sample RedlandDemo at https://github.com/p2/RedlandDemo to compile or build. I'm running OS X 10.8.2, and had already downloaded, configured, built and installed raptor2-2.0.8, rasqal-0.9.29 and redland-1.016. When I attempt to build the sample iOS app, I get things like this in the log:
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib'
ld: warning: ld: warning: ignoring file /usr/local/lib/libraptor2.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (armv7): /usr/local/lib/libraptor2.dylibignoring file /opt/local/lib/libcurl.dylib, file was built for unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x 0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being linked (armv7): /opt/local/lib/libcurl.dylib
For the warnings:
In the Xcode iPhoneOS.platform/Developer/usr/, I have bin, libexec, share and llvm-gcc-4.2, but no lib.
/usr/local/lib/libraptor2.dynlib is what I built and installed for raptor2 using the instructions at http://librdf.org/raptor/
But this results in undefined symbols for armv7:
Undefined symbols for architecture armv7:
"_xmlAddChildList", referenced from:
_raptor_libxml_getEntity in libraptor2.a(raptor_libxml.o)
"_xmlCleanupParser", referenced from:
_raptor_libxml_finish in libraptor2.a(raptor_libxml.o)
...
and the build fails.
Also, compiling CHViewController.m: can't find Redland-ObjC.h. Its in the Redland.xcodeprog sub-project, but the RedlandDemo project doesn't see it. Is the search path setup properly to use the Redland.xcodeproj subproject?
Any ideas?
More information about the redland-dev
mailing list