VLC compile error for armv7s of iphone5

macOS specific usage questions
boyd.yang
New Cone
New Cone
Posts: 6
Joined: 20 Sep 2012 17:47

VLC compile error for armv7s of iphone5

Postby boyd.yang » 20 Sep 2012 17:50

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?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC compile error for armv7s of iphone5

Postby Jean-Baptiste Kempf » 20 Sep 2012 18:07

Did you look at config.log like suggested?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

boyd.yang
New Cone
New Cone
Posts: 6
Joined: 20 Sep 2012 17:47

Re: VLC compile error for armv7s of iphone5

Postby boyd.yang » 22 Sep 2012 05:45

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


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests