Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 226 by
juha.nie...@gmail.com: Building libwebp for iOS with
latest Xcode is impossible
https://code.google.com/p/webp/issues/detail?id=226
I'm trying to build libwebp for iOS (using the provided iosbuild.sh
script), and with the latest Mac OS X / Xcode this seems to be practically
impossible.
Version info: libwebp 0.4.1, Mac OS X 10.9.5, Xcode 6.0.1 (clang version:
Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn).)
Firstly, when running the iosbuild.sh script, it gives an error
about 'autoreconf' not being found (Apple has dropped support). This can be
fixed by installing the autoconf package eg. with macports.
Next it gives an error about 'aclocal' not being found. Fixed by installing
automake.
Next it gives an error about some strange 'AC_PROG_LIBTOOL' macro being
undefined. Fixed by installing libtool.
Now it's able to create the necessary configure script files. However, when
running configure, it complains:
configure: error: C compiler cannot create executables
The exact error found in config.log is:
configure:3428: checking whether the C compiler works
configure:3450: gcc -arch i386 -pipe -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/
-O3 -DNDEBUG -miphoneos-version-min=5.0 -arch i386 -pipe -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/
-miphoneos-version-min=5.0 conftest.c >&5
Undefined symbols for architecture i386:
"start", referenced from:
implicit entry/start for main executable
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
(Note that with the latest Xcode, 'gcc' is just an alias for 'clang', but
making configure run clang directly doesn't change anything.)
This is where I got stuck, as I don't know how to fix that problem.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings