Page 1 of 1

VLC compile error for armv7s of iphone5

Posted: 20 Sep 2012 17:50
by boyd.yang
Hello,
Have you complied the VLC for armv7s?
I changed the iphoneos to 6.0, arch to armv7s.
I got below erros:

checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether xcrun clang accepts -g... yes
checking for xcrun clang option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of xcrun clang... none
checking how to run the C preprocessor... xcrun cc -E
configure: error: in `/Users/xxxx/VLC/MobileVLC/ImportedSources/vlc/contrib/iPhoneOS/a52dec':
configure: error: C preprocessor "xcrun cc -E" fails sanity check
See `config.log' for more details
make: *** [.a52] Error 1

Do you know why?

Re: VLC compile error for armv7s of iphone5

Posted: 20 Sep 2012 18:07
by Jean-Baptiste Kempf
Did you look at config.log like suggested?

Re: VLC compile error for armv7s of iphone5

Posted: 22 Sep 2012 05:45
by boyd.yang
Yes, fixed it:

configure:4108: xcrun cc -E -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -arch armv7s -mcpu=cortex-a8 -miphoneos-version-min=5.0 -arch armv7 -mcpu=cortex-a8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -miphoneos-version-min=5.0 -I/Users/xxx/VLC/MobileVLC/ImportedSources/vlc/contrib/arm-apple-darwin11/include conftest.c
clang: error: cannot use 'cpp-output' output with multiple -arch options

Modify vlc/contrib/src/main.mak

ifeq ($(ARCH), arm)
EXTRA_CFLAGS += -arch armv7s -mcpu=cortex-a8
EXTRA_LDFLAGS += -arch armv7s
else