p2 / Redland-ObjC

Objective-C wrapper for the Redland RDF libraries
Other
20 stars 11 forks source link

Building Redland C libraries in Xcode 5 fails in "Configuring build-iOS-armv7/libxml2-2.7.8" #7

Closed tiptop-labs closed 10 years ago

tiptop-labs commented 10 years ago

I am running into two problems when following instructions towards install Redland-ObjC as submodule into my iOS app project (one trivial and one blocking):

  1. The project's path in the file system contained spaces. Apparently that won't do because of autoconf restrictions. It may be worthwhile mentioning this in the instructions.
  2. When I build Redland C libraries (either inside Xcode or by cross-compile.py on command line) this fails in the Configuring build-iOS-armv7/libxml2-2.7.8 step. Judging from config.log a script apparently makes wrong assumptions about the location of the cross compiler:
configure:2992: checking for arm-apple-darwin-gcc
configure:3019: result: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc

Perhaps this needs updating for Xcode 5 (xcrun --sdk might help).

Here's what I use: OS X 10.9, Xcode 5.0.2 with command line tools (FWIK), pkg-config from brew.

tiptop-labs commented 10 years ago

Just noticed that 1. equals issue #4.

p2 commented 10 years ago

libxml is driving me crazy, see me last two commits: after I added a step to compile libxml along with Redland in commit https://github.com/p2/Redland-ObjC/commit/8e0004840650d439dc8913b26afa61cb71e4be1b I again removed it in the last commit (https://github.com/p2/Redland-ObjC/commit/7d56c496191ca9a9634a203f9eaba584d44edd78).

Can you try checking out https://github.com/p2/Redland-ObjC/commit/8e0004840650d439dc8913b26afa61cb71e4be1b and see if that one compiles for you?

tiptop-labs commented 10 years ago

Thanks for you quick response. There was apparently (also) a glitch on my side. I had an older version of Redland-ObjC as part of my git repository. When switching to a submodule during the upgrade I ran into a warning git directory for ... is found locally with remote(s) which I had resolved incorrectly, but in the end rm -fr .git/modules/Redland-ObjC (before adding the submodule) did the trick :)

p2 commented 10 years ago

Good to hear, thanks!