VLCKit for OS X build failed in 10.9.4
Posted: 03 Sep 2014 07:02
Hi,
I tried to build the VLCKit but it fails. I run the xcodebuild from the command line since build from Xcode isn't working.
I exported the PATH:
export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
export CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
export OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
And then
xcodebuild -project VLCKit.xcodeproj -verbose -target "Fetch libvlc"
xcodebuild -project VLCKit.xcodeproj -verbose -target "Setup VLC contribs" -configuration Release
xcodebuild -project VLCKit.xcodeproj -verbose -target "Run VLC configure" -configuration Release
The above three steps are all successful.
But it fails at the next step:
xcodebuild -project VLCKit.xcodeproj -verbose -target "Make VLC" -configuration Release
It stopped at
In file included from XX/vlc-unstable/modules/codec/jpeg.c:30:
In file included from XX/vlc-unstable/contrib/i686-apple-darwin9/include/jpeglib.h:27:
XX/vlc-unstable/contrib/i686-apple-darwin9/include/jmorecfg.h:263:16: error: expected '}'
typedef enum { FALSE = 0, TRUE = 1 } boolean;
^
#define FALSE 0
^
typedef enum { FALSE = 0, TRUE = 1 } boolean;
^
clang: warning: -O4 is equivalent to -O3
1 error generated.
make[4]: *** [codec/jpeg.lo] Error 1
clang: warning: -O4 is equivalent to -O3
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Showing first 200 notices only
Showing first 200 warnings only
** BUILD FAILED **
I tried to comment out those def, but it fails at another places:
grep: /usr/lib/libiconv.la: No such file or directory
CCLD libflac_plugin.la
sed: /usr/lib/libiconv.la: No such file or directory
libtool: link: `/usr/lib/libiconv.la' is not a valid libtool archive
make[4]: *** [libzvbi_plugin.la] Error 1
make[4]: *** Waiting for unfinished jobs....
ld: in XX/vlc-unstable/contrib/i686-apple-darwin9/lib/libogg.a(framing.o), could not parse object file XX/vlc-unstable/contrib/i686-apple-darwin9/lib/libogg.a(framing.o): 'Invalid record', using libLTO version 'LLVM version 3.4svn' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libflac_plugin.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Showing first 200 notices only
Showing first 200 warnings only
My OS X is 10.9.4. Any solutions? Thanks in advance.
I tried to build the VLCKit but it fails. I run the xcodebuild from the command line since build from Xcode isn't working.
I exported the PATH:
export CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
export CXX=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
export OBJC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
And then
xcodebuild -project VLCKit.xcodeproj -verbose -target "Fetch libvlc"
xcodebuild -project VLCKit.xcodeproj -verbose -target "Setup VLC contribs" -configuration Release
xcodebuild -project VLCKit.xcodeproj -verbose -target "Run VLC configure" -configuration Release
The above three steps are all successful.
But it fails at the next step:
xcodebuild -project VLCKit.xcodeproj -verbose -target "Make VLC" -configuration Release
It stopped at
In file included from XX/vlc-unstable/modules/codec/jpeg.c:30:
In file included from XX/vlc-unstable/contrib/i686-apple-darwin9/include/jpeglib.h:27:
XX/vlc-unstable/contrib/i686-apple-darwin9/include/jmorecfg.h:263:16: error: expected '}'
typedef enum { FALSE = 0, TRUE = 1 } boolean;
^
#define FALSE 0
^
typedef enum { FALSE = 0, TRUE = 1 } boolean;
^
clang: warning: -O4 is equivalent to -O3
1 error generated.
make[4]: *** [codec/jpeg.lo] Error 1
clang: warning: -O4 is equivalent to -O3
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Showing first 200 notices only
Showing first 200 warnings only
** BUILD FAILED **
I tried to comment out those def, but it fails at another places:
grep: /usr/lib/libiconv.la: No such file or directory
CCLD libflac_plugin.la
sed: /usr/lib/libiconv.la: No such file or directory
libtool: link: `/usr/lib/libiconv.la' is not a valid libtool archive
make[4]: *** [libzvbi_plugin.la] Error 1
make[4]: *** Waiting for unfinished jobs....
ld: in XX/vlc-unstable/contrib/i686-apple-darwin9/lib/libogg.a(framing.o), could not parse object file XX/vlc-unstable/contrib/i686-apple-darwin9/lib/libogg.a(framing.o): 'Invalid record', using libLTO version 'LLVM version 3.4svn' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libflac_plugin.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Showing first 200 notices only
Showing first 200 warnings only
My OS X is 10.9.4. Any solutions? Thanks in advance.