Page 1 of 1

vlckit doesn't compile for Simulator on OSX 10.9.4

Posted: 18 Sep 2014 07:55
by ulmstefan
I've checked out the git-repository on git://git.videolan.org/vlc-bindings/VLCKit.git
and followed the instructions on https://wiki.videolan.org/VLCKit/

The whole kit compiles perfectly for iOS devices, but not for the Simulator.
I have Xcode 6 GM installed and I try to compile for the simulator with iOS SDK 8.0:

./buildMobileVLCKit.sh -s
.
.
.
FreeType build system -- automatic system detection

The following settings are used:

platform unix
compiler xcrun clang
configuration directory ./builds/unix
configuration rules ./builds/unix/unix.mk
.
.
.
configure: WARNING: unrecognized options: --disable-dependency-tracking
checking build system type... x86_64-apple-darwin11
checking host system type... i386-apple-darwin11
checking for i386-apple-darwin11-gcc... xcrun clang
checking whether the C compiler works... no
configure: error: in `/Users/SU/Desktop/SVN/iOS/videophone/vlckit/MobileVLCKit/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/builds/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[1]: *** [setup] Error 77
make: *** [.freetype2] Error 2
[info] Building MobileVLCKit (Aggregate static plugins, Release)
[info] Building MobileVLCKit (MobileVLCKit, Release)
** BUILD FAILED **


The following build commands failed:
Libtool build/MobileVLCKit.build/Release-iphonesimulator/MobileVLCKit.build/Objects-normal/i386/libMobileVLCKit.a normal i386
Libtool build/MobileVLCKit.build/Release-iphonesimulator/MobileVLCKit.build/Objects-normal/x86_64/libMobileVLCKit.a normal x86_64
(2 failures)

I've done a lot of research but I didn't find any solution which worked for me.

Perhaps someone could help me?

Re: vlckit doesn't compile for Simulator on OSX 10.9.4

Posted: 18 Sep 2014 20:47
by insignificance
I am having the exact same issue building VLCKit on OSX 10.9.4, XCode 6 GM, and iOS 8.0. It successfully builds for iOS, but for the iOS Simulator, it fails at the same spot.

Contents of
/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/builds/unix/config.log:

Code: Select all

This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by FreeType configure 2.5.3, which was generated by GNU Autoconf 2.69. Invocation command line was $ ./configure --without-png --prefix=/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386 --datarootdir=/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/share --includedir=/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/include --libdir=/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/lib --build=x86_64-apple-darwin11 --host=i386-apple-darwin11 --target=i386-apple-darwin11 --program-prefix= --enable-static --disable-shared --disable-dependency-tracking --with-pic ## --------- ## ## Platform. ## ## --------- ## hostname = Matts-MacBook-Pro.local uname -m = x86_64 uname -r = 13.3.0 uname -s = Darwin uname -v = Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = Mach kernel version: Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 Kernel configured for up to 8 processors. 4 processors are physically available. 8 processors are logically available. Processor type: i486 (Intel 80486) Processors active: 0 1 2 3 4 5 6 7 Primary memory available: 16.00 gigabytes Default processor set: 328 tasks, 2257 threads, 8 processors Load average: 2.75, Mach factor: 5.23 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/bin PATH: /Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/extras/tools/build/bin PATH: /Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/extras/tools/build/bin PATH: /Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11/bin PATH: /usr/bin PATH: /bin PATH: /usr/sbin PATH: /sbin PATH: /usr/local/bin PATH: /usr/X11/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2530: checking build system type configure:2544: result: x86_64-apple-darwin11 configure:2564: checking host system type configure:2577: result: i386-apple-darwin11 configure:2609: checking for i386-apple-darwin11-gcc configure:2636: result: xcrun clang configure:2905: checking for C compiler version configure:2914: xcrun clang --version >&5 Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.3.0 Thread model: posix configure:2925: $? = 0 configure:2914: xcrun clang -v >&5 Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) Target: x86_64-apple-darwin13.3.0 Thread model: posix configure:2925: $? = 0 configure:2914: xcrun clang -V >&5 clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files configure:2925: $? = 1 configure:2914: xcrun clang -qversion >&5 clang: error: unknown argument: '-qversion' clang: error: no input files configure:2925: $? = 1 configure:2945: checking whether the C compiler works configure:2967: xcrun clang -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -arch i386 -miphoneos-version-min=5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -I/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/include -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -arch i386 -miphoneos-version-min=5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -I/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/include -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/lib -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -miphoneos-version-min=5.1 -arch i386 -miphoneos-version-min=5.1 -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/lib -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -miphoneos-version-min=5.1 -L/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/lib conftest.c >&5 ld: warning: directory not found for option '-L/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/lib' Undefined symbols for architecture i386: "start", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) configure:2971: $? = 1 configure:3009: result: no configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "FreeType" | #define PACKAGE_TARNAME "freetype" | #define PACKAGE_VERSION "2.5.3" | #define PACKAGE_STRING "FreeType 2.5.3" | #define PACKAGE_BUGREPORT "freetype@nongnu.org" | #define PACKAGE_URL "" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3014: error: in `/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/iPhoneSimulator-i386/freetype/builds/unix': configure:3016: error: C compiler cannot create executables See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-apple-darwin11 ac_cv_env_BZIP2_CFLAGS_set= ac_cv_env_BZIP2_CFLAGS_value= ac_cv_env_BZIP2_LIBS_set= ac_cv_env_BZIP2_LIBS_value= ac_cv_env_CC_set=set ac_cv_env_CC_value='xcrun clang' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -arch i386 -miphoneos-version-min=5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -I/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/include -g' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -arch i386 -miphoneos-version-min=5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -I/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/include' ac_cv_env_CPP_set=set ac_cv_env_CPP_value='xcrun cc -E' ac_cv_env_HARFBUZZ_CFLAGS_set= ac_cv_env_HARFBUZZ_CFLAGS_value= ac_cv_env_HARFBUZZ_LIBS_set= ac_cv_env_HARFBUZZ_LIBS_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value='-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/lib -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -miphoneos-version-min=5.1 -arch i386 -miphoneos-version-min=5.1 -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/lib -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -miphoneos-version-min=5.1 -L/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/lib' ac_cv_env_LIBPNG_CFLAGS_set= ac_cv_env_LIBPNG_CFLAGS_value= ac_cv_env_LIBPNG_LIBS_set= ac_cv_env_LIBPNG_LIBS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_PKG_CONFIG_LIBDIR_set=set ac_cv_env_PKG_CONFIG_LIBDIR_value=/usr/i386-apple-darwin11/lib/pkgconfig ac_cv_env_PKG_CONFIG_PATH_set=set ac_cv_env_PKG_CONFIG_PATH_value=/usr/share/pkgconfig:/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/lib/pkgconfig ac_cv_env_PKG_CONFIG_set= ac_cv_env_PKG_CONFIG_value= ac_cv_env_ZLIB_CFLAGS_set= ac_cv_env_ZLIB_CFLAGS_value= ac_cv_env_ZLIB_LIBS_set= ac_cv_env_ZLIB_LIBS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=x86_64-apple-darwin11 ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=i386-apple-darwin11 ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=i386-apple-darwin11 ac_cv_host=i386-apple-darwin11 ac_cv_prog_CC='xcrun clang' ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='xcrun ar' AS='' AWK='' BZIP2_CFLAGS='' BZIP2_LIBS='' CC='xcrun clang' CC_BUILD='' CFLAGS='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -arch i386 -miphoneos-version-min=5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -I/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/include -g' CPP='xcrun cc -E' CPPFLAGS='-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -arch i386 -miphoneos-version-min=5.1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -arch i386 -O3 -g -miphoneos-version-min=5.1 -I/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/include' DEFS='' DLLTOOL='' DSYMUTIL='' DUMPBIN='' ECHO_C='\c' ECHO_N='' ECHO_T='' EGREP='' EXEEXT='' EXEEXT_BUILD='' FGREP='' FTSYS_SRC='' GREP='' HARFBUZZ_CFLAGS='' HARFBUZZ_LIBS='' INSTALL_DATA='' INSTALL_PROGRAM='' INSTALL_SCRIPT='' LD='xcrun ld' LDFLAGS='-L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/lib -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -miphoneos-version-min=5.1 -arch i386 -miphoneos-version-min=5.1 -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/usr/lib -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk -miphoneos-version-min=5.1 -L/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/lib' LIBOBJS='' LIBPNG_CFLAGS='' LIBPNG_LIBS='' LIBS='' LIBSSTATIC_CONFIG='' LIBS_CONFIG='' LIBS_PRIVATE='' LIBTOOL='' LIPO='' LN_S='' LTLIBOBJS='' MANIFEST_TOOL='' NM='' NMEDIT='' OBJDUMP='' OBJEXT='' OTOOL64='' OTOOL='' PACKAGE_BUGREPORT='freetype@nongnu.org' PACKAGE_NAME='FreeType' PACKAGE_STRING='FreeType 2.5.3' PACKAGE_TARNAME='freetype' PACKAGE_URL='' PACKAGE_VERSION='2.5.3' PATH_SEPARATOR=':' PKG_CONFIG='' PKG_CONFIG_LIBDIR='/usr/i386-apple-darwin11/lib/pkgconfig' PKG_CONFIG_PATH='/usr/share/pkgconfig:/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/lib/pkgconfig' RANLIB='xcrun ranlib' REQUIRES_PRIVATE='' RMDIR='' SED='' SHELL='/bin/sh' STRIP='xcrun strip' XX_ANSIFLAGS='' XX_CFLAGS='' ZLIB_CFLAGS='' ZLIB_LIBS='' ac_ct_AR='' ac_ct_CC='' ac_ct_DUMPBIN='' bindir='${exec_prefix}/bin' build='x86_64-apple-darwin11' build_alias='x86_64-apple-darwin11' build_cpu='x86_64' build_libtool_libs='' build_os='darwin11' build_vendor='apple' datadir='${datarootdir}' datarootdir='/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' ft_version='17.2.11' ftmac_c='' hardcode_libdir_flag_spec='' host='i386-apple-darwin11' host_alias='i386-apple-darwin11' host_cpu='i386' host_os='darwin11' host_vendor='apple' htmldir='${docdir}' includedir='/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/include' infodir='${datarootdir}/info' libdir='/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/Users/insignificance/Code/VLCKit/MobileVLCKit/ImportedSources/vlc/contrib/i386-apple-darwin11-i386' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='i386-apple-darwin11' version_info='17:2:11' wl='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "FreeType" #define PACKAGE_TARNAME "freetype" #define PACKAGE_VERSION "2.5.3" #define PACKAGE_STRING "FreeType 2.5.3" #define PACKAGE_BUGREPORT "freetype@nongnu.org" #define PACKAGE_URL "" configure: exit 77

Re: vlckit doesn't compile for Simulator on OSX 10.9.4

Posted: 26 Sep 2014 02:43
by pvms78
Update extras/package/ios/build.sh file:

diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
index 3247859..772e3b5 100755
--- a/extras/package/ios/build.sh
+++ b/extras/package/ios/build.sh
@@ -3,8 +3,8 @@ set -e

PLATFORM=OS
VERBOSE=no
-SDK_VERSION=7.0
-SDK_MIN=5.1
+SDK_VERSION=8.0
+SDK_MIN=7.0
SIXTYFOURBIT_SDK_MIN=7.0
ARCH=armv7

Re: vlckit doesn't compile for Simulator on OSX 10.9.4

Posted: 26 Sep 2014 16:18
by insignificance
THANK YOU!

I had isolated the problem to the clang compilation command, but couldn't figure out why it would fail on an empty main() function. I wouldn't have suspected changing the miphoneos-version-min parameter would fix it.

For anyone else with this problem, I ended up frankensteining together the following patch (I'm very new to git):

File: /path/to/VLCKit/MobileVLCKit/patches/0021-extras-fix-sdk-versions-for-ios.patch

Code: Select all

From 755c5b223fbe2df5c23a7c1fa1988394b1c59873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org> Date: Thu, 25 Sep 2014 18:28:26 +0200 Subject: [PATCH 21/21] extras: fix SDK versions for iOS --- extras/package/ios/build.sh | 2 ++-- 1 file changed, 2 insertion(+), 2 deletion(-) diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh index 3247859..d4062f0 100755 --- a/extras/package/ios/build.sh +++ b/extras/package/ios/build.sh @@ -3,8 +3,8 @@ set -e PLATFORM=OS VERBOSE=no -SDK_VERSION=7.0 -SDK_MIN=5.1 +SDK_VERSION=8.0 +SDK_MIN=7.0 SIXTYFOURBIT_SDK_MIN=7.0 ARCH=armv7 --

Re: vlckit doesn't compile for Simulator on OSX 10.9.4

Posted: 29 Sep 2014 13:30
by ulmstefan
Thank you guys,

adding your patch I can build the framework totally, for iOs and Simulator!

Re: vlckit doesn't compile for Simulator on OSX 10.9.4

Posted: 28 Oct 2014 17:24
by sashahilton00
Unfortunately, I am having the same problem, though this fix is not working for me. The build.sh just reverts to it's previous state, and MobileVLCKit fails to build. My freetype log is the same as above. Any suggestions?

Re: vlckit doesn't compile for Simulator on OSX 10.9.4

Posted: 06 Nov 2014 17:43
by ulmstefan
I used the latest git source.
Did you try to add the patch into the patch folder, make clean and redo the ./buildMobileVLCKit.sh?