I am having the same problem as MrZoidberg,
Configuration: OSX 10.8.5, xCode 5, and following the instructions from
https://wiki.videolan.org/IOSCompile.
The build script issues begin with compiler warning on certain modules. E.g.
Code: Select all
checking which extension is used for runtime loadable modules... checking for GNU C Library... .so
In file included from parsetree.cpp:30:
In file included from rlparse.kh:27:
In file included from ./parsedata.h:36:
./parsetree.h:388:11: warning: field 'builtin' is uninitialized when used here [-Wuninitialized]
builtin(builtin), type(type), prev(this), next(this) { }
^
./parsetree.h:392:38: warning: field 'builtin' is uninitialized when used here [-Wuninitialized]
expression(0), term(term), builtin(builtin),
^
Then a large amount of warning options:
Code: Select all
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/liblzma/api -I../../src/liblzma/common -I../../src/liblzma/check -I../../src/liblzma/lz -I../../src/liblzma/rangecoder -I../../src/liblzma/lzma -I../../src/liblzma/delta -I../../src/liblzma/simple -I../../src/common -DTUKLIB_SYMBOL_PREFIX=lzma_ -D_THREAD_SAFE -fvisibility=hidden -Wall -Wextra -Wformat=2 -Winit-self -Wmissing-include-dirs -Wstrict-aliasing -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wlogical-op -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls -g -O2 -MT liblzma_la-stream_flags_encoder.lo -MD -MP -MF .deps/liblzma_la-stream_flags_encoder.Tpo -c common/stream_flags_encoder.c -fno-common -DPIC -o .libs/liblzma_la-stream_flags_encoder.o
warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]
warning: unknown warning option '-Wlogical-op'; did you mean '-Wlong-long'? [-Wunknown-warning-option]
./csipgoto.h:67:7: note: hidden overloaded virtual function 'CSharpIpGotoCodeGen::GOTO_HEADER' declared here
void GOTO_HEADER( RedStateAp *state );
^
In file included from gendata.cpp:46:
./cdsplit.h:38:7: warning: 'SplitCodeGen::GOTO_HEADER' hides overloaded virtual function [-Woverloaded-virtual]
void GOTO_HEADER( RedStateAp *state, bool stateInPartition );
^
./cdipgoto.h:66:7: note: hidden overloaded virtual function 'IpGotoCodeGen::GOTO_HEADER' declared here
void GOTO_HEADER( RedStateAp *state );
There is a lot of these errors and warnings. then starts listing symbols not found:
Code: Select all
/usr/bin/ranlib: file: libcmcurl.a(content_encoding.c.o) has no symbols
/usr/bin/ranlib: file: libcmcurl.a(gtls.c.o) has no symbols
/usr/bin/ranlib: file: libcmcurl.a(hostares.c.o) has no symbols
/usr/bin/ranlib: file: libcmcurl.a(hostasyn.c.o) has no symbols
/usr/bin/ranlib: file: libcmcurl.a(hostip6.c.o) has no symbols
/usr/bin/ranlib: file: libcmcurl.a(hostthre.c.o) has no symbols
Then there's loads of clang errors, i don't know if static analysis matters, but here's an example of the messages:
Code: Select all
libtool: compile: xcrun clang -pedantic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -arch i386 -miphoneos-version-min=5.1 -O3 -g -arch i386 -miphoneos-version-min=5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -arch i386 -miphoneos-version-min=5.1 -O3 -g -I/Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/i686-apple-darwin11-i386/include -I/Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/objs -I./builds/unix -I/Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/include -c -Wall -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -arch i386 -miphoneos-version-min=5.1 -O3 -g -arch i386 -miphoneos-version-min=5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -arch i386 -miphoneos-version-min=5.1 -O3 -g -I/Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/i686-apple-darwin11-i386/include -g -DDARWIN_NO_CARBON -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DFT_CONFIG_OPTION_USE_BZIP2 "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY "-DFT_CONFIG_MODULES_H=<ftmodule.h>" -I/Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/src/sfnt /Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/src/sfnt/sfnt.c -fno-common -DPIC -o /Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/objs/sfnt.o
In file included from /Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/src/sfnt/sfnt.c:23:
/Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/src/sfnt/ttload.c:552:9: warning: using extended field designator is an extension
[-Wextended-offsetof]
FT_FRAME_LONG ( Created[0] ),
^ ~~~
/Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/include/freetype/internal/ftstream.h:120:34: note: expanded from macro 'FT_FRAME_LONG'
#define FT_FRAME_LONG( f ) FT_FRAME_FIELD( ft_frame_long_be, f )
^
/Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/include/freetype/internal/ftstream.h:112:13: note: expanded from macro 'FT_FRAME_FIELD'
FT_FIELD_OFFSET( field ) \
^
/Users/karl/Downloads/vlc_ios/ios/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/include/freetype/internal/ftstream.h:106:24: note: expanded from macro
'FT_FIELD_OFFSET'
(FT_UShort)( offsetof( FT_STRUCTURE, f ) )
^
These keep going on for a while, but I'm not going to keep listing them, the next round is make seeing source files as directories:
Code: Select all
applications/codec/Makefile.am:62: warning: source file '../common/opj_getopt.c' is in a subdirectory,
applications/codec/Makefile.am:62: but option 'subdir-objects' is disabled
applications/codec/Makefile.am:23: warning: source file '../common/color.c' is in a subdirectory,
applications/codec/Makefile.am:23: but option 'subdir-objects' is disabled
applications/codec/Makefile.am:23: warning: source file '../common/opj_getopt.c' is in a subdirectory,
applications/codec/Makefile.am:23: but option 'subdir-objects' is disabled
applications/mj2/Makefile.am:3: warning: source file '../../libopenjpeg/bio.c' is in a subdirectory,
applications/mj2/Makefile.am:3: but option 'subdir-objects' is disabled
applications/mj2/Makefile.am:3: warning: source file '../../libopenjpeg/cio.c' is in a subdirectory,
applications/mj2/Makefile.am:3: but option 'subdir-objects' is disabled
Followed by a bunch more warnings in ./libavutil/...
Then got some strange errors with using hte strip command (i think unix switches are being used for osx):
Code: Select all
CC libavcodec/ws-snd1.o
YASM libavcodec/x86/ac3dsp.o
strip: unrecognized option: -wN
Usage: strip [-AnuSXx] [-] [-d filename] [-s filename] [-R filename] [-o output] file [...]
make[1]: [libavcodec/x86/ac3dsp.o] Error 1 (ignored)
CC libavcodec/x86/ac3dsp_init.o
CC libavcodec/x86/cavsdsp.o
CC libavcodec/x86/constants.o
YASM libavcodec/x86/dct32.o
strip: unrecognized option: -wN
Usage: strip [-AnuSXx] [-] [-d filename] [-s filename] [-R filename] [-o output] file [...]
make[1]: [libavcodec/x86/dct32.o] Error 1 (ignored)
CC libavcodec/x86/dct_init.o
YASM libavcodec/x86/deinterlace.o
strip: unrecognized option: -wN
Usage: strip [-AnuSXx] [-] [-d filename] [-s filename] [-R filename] [-o output] file [...]
make[1]: [libavcodec/x86/deinterlace.o] Error 1 (ignored)
YASM libavcodec/x86/dsputil.o
strip: unrecognized option: -wN
Usage: strip [-AnuSXx] [-] [-d filename] [-s filename] [-R filename] [-o output] file [...]
make[1]: [libavcodec/x86/dsputil.o] Error 1 (ignored)
CC libavcodec/x86/dsputil_init.o
CC libavcodec/x86/dsputil_mmx.o
CC libavcodec/x86/dsputil_x86.o
These keep going on for a while, but I'll stop listing the errors so I don't flood the post. The end result is that it goes through to bootstrap with the below final messages.
Code: Select all
[info] Bootstraping vlc finished
[info] >> --prefix=/Users/xyzxyz/Downloads/vlc_ios/ios/ImportedSources/vlc/install-ios-Simulator/i386 --host=i686-apple-darwin11
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
rm: conftest.dSYM: is a directory
configure: WARNING: No package 'dbus-1' found.
configure: WARNING: No package 'live555' found.
configure: WARNING: Library libdc1394-2 >= 2.1.0 needed for dc1394 was not found
configure: WARNING: Library libraw1394 >= 2.0.1 libavc1394 >= 0.5.3 needed for dv1394 was not found
configure: WARNING: Library opencv > 2.0 needed for opencv was not found
configure: WARNING: Library smbclient needed for smbclient was not found
configure: WARNING: Library libssh2 needed for sftp was not found
configure: WARNING: Blackmagic DeckLink SDI include files not found
configure: WARNING: Library gnome-vfs-2.0 needed for gnomevfs was not found
configure: WARNING: Library libvncclient >= 0.9.9 needed for libvnc was not found
configure: WARNING: Library freerdp >= 1.0.1 needed for libfreerdp was not found
configure: WARNING: No package 'libsidplay2' found (required for sid).
configure: WARNING: VideoDecodeAcceleration/VDADecoder.h not found
configure: WARNING: No package 'libpostproc' found.
configure: WARNING: Library twolame needed for twolame was not found
configure: WARNING: Library libdca >= 0.0.5 needed for dca was not found
configure: WARNING: Library libmpeg2 > 0.3.2 needed for libmpeg2 was not found
configure: error: Library ogg speex >= 1.0.5 needed for speex was not found
I have only listed all this in case there's something obvious in the workflow, am I missing pre-requisits for my machine? Is this buildscript for pre xcode 5.0. If someone put me in the right direction to get this working on xcode 5 with osx 10.8.5, I'll happily try and update the build script to contribute.
I'm very keen to get VLC going on iOS. It's the best by far.