cxt / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

Cannot Enable Bit Code for IOS 9 #267

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Compile latest WebP Source Code for IOS
2.Create an Xcode project and import webp (Using Xcode 7 and IOS 9)
3.Turn on Bitcode and compile

What is the expected output? What do you see instead?
Project should compile and execute on mobile device, but it shows error message 
ld: '/Users/GitHub/3rdParty/Webp/WebP.framework/WebP(libwebpdecode_la-webp.o)' 
does not contain bitcode. You must rebuild it with bitcode enabled (Xcode 
setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable 
bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

What version of the product are you using? On what operating system?
Xcode Version 7.0.1, Mac OS 10.11

Original issue reported on code.google.com by dvale...@gmail.com on 7 Oct 2015 at 5:42

GoogleCodeExporter commented 8 years ago
Thanks for the report, I thought this might come up after seeing something 
similar in libvpx:

https://chromium-review.googlesource.com/#/c/302236/

Adding '-fembed-bitcode' to the CFLAGS in iosbuild.sh should be enough.

Original comment by jz...@google.com on 7 Oct 2015 at 7:02

GoogleCodeExporter commented 8 years ago
https://chromium-review.googlesource.com/#/c/304625/ works for me in a test 
link with the examples. Give it a try if you get a chance.

Original comment by jz...@google.com on 8 Oct 2015 at 1:21

GoogleCodeExporter commented 8 years ago
Oy works correctly now, can we update this on the iosbuild.sh script? 

Original comment by dvale...@gmail.com on 8 Oct 2015 at 9:23

GoogleCodeExporter commented 8 years ago
Thanks for testing!
I submitted this, it will be available in the next release.

Original comment by jz...@google.com on 9 Oct 2015 at 2:43