Page 1 of 1

Building for iOS error for the latest version from git.

Posted: 21 May 2013 15:27
by adilet
If try to build armv7 or simulator version of git there is an error:
2013-05-21 19:06:15.447 xcodebuild[96045:1207] Git fetch output:
2013-05-21 19:06:15.475 xcodebuild[96045:1207] Git reset output: HEAD is now at 6029372 Release 0.6
Undefined symbols for architecture i386:
"_CFNetworkCopySystemProxySettings", referenced from:
_vlc_getProxyUrl in libMobileVLCKit.a(netconf.o)
"_kCFNetworkProxiesHTTPPort", referenced from:
_vlc_getProxyUrl in libMobileVLCKit.a(netconf.o)
"_kCFNetworkProxiesHTTPProxy", referenced from:
_vlc_getProxyUrl in libMobileVLCKit.a(netconf.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

GenerateDSYMFile build/Release-iphonesimulator/VLC.app.dSYM build/Release-iphonesimulator/VLC.app/VLC
cd /Users/adiletabylov/projects/XCode/ios
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/adiletabylov/.rvm/gems/ruby-1.9.3-p327/bin:/Users/adiletabylov/.rvm/gems/ruby-1.9.3-p327@global/bin:/Users/adiletabylov/.rvm/rubies/ruby-1.9.3-p327/bin:/Users/adiletabylov/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/usr/local/ant/bin:/Users/adiletabylov/.ec2/bin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/adiletabylov/projects/XCode/ios/build/Release-iphonesimulator/VLC.app/VLC -o /Users/adiletabylov/projects/XCode/ios/build/Release-iphonesimulator/VLC.app.dSYM
error: unable to open executable '/Users/adiletabylov/projects/XCode/ios/build/Release-iphonesimulator/VLC.app/VLC'

Touch build/Release-iphonesimulator/VLC.app
cd /Users/adiletabylov/projects/XCode/ios
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/adiletabylov/.rvm/gems/ruby-1.9.3-p327/bin:/Users/adiletabylov/.rvm/gems/ruby-1.9.3-p327@global/bin:/Users/adiletabylov/.rvm/rubies/ruby-1.9.3-p327/bin:/Users/adiletabylov/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/opt/local/bin:/usr/local/git/bin:/usr/local/ant/bin:/Users/adiletabylov/.ec2/bin"
/usr/bin/touch -c /Users/adiletabylov/projects/XCode/ios/build/Release-iphonesimulator/VLC.app


** BUILD FAILED **


The following build commands failed:
Ld build/Release-iphonesimulator/VLC.app/VLC normal i386
GenerateDSYMFile build/Release-iphonesimulator/VLC.app.dSYM build/Release-iphonesimulator/VLC.app/VLC
(2 failures)
This happens because CFNetwork.framework is not linked in to MobileVLC.xcodeproject
To fix it open MobileVLC.xcodeproject in XCode and add CFNetwork.framework.
Hope this helps.

Re: Building for iOS error for the latest version from git.

Posted: 22 May 2013 17:32
by d36201419
HI~
I try to build VLC from git too, but I got some error.
What's your steps to get source code?
After you get the source code, did you change any code on buildMobileVLC.sh or build.sh?
Thanks your help!

Re: Building for iOS error for the latest version from git.

Posted: 24 May 2013 12:35
by adilet
hey
source code is from git
and this thread helps me viewtopic.php?f=12&t=108691

Re: Building for iOS error for the latest version from git.

Posted: 14 Jul 2013 19:09
by patio
i get the following error when trying to run the build.sh from extras/packages/ios


is it the correct shell to build libvlc for iOS ?

I saw that others are using buildmobilevlc.sh but I don't see it in latest version from git


Code: Select all

libgpg-error-1.12 prepared for make Revision: 12243ce (4644) Platform: arm-apple-darwin11 cd libgpg-error && make install Making install in m4 make[3]: Nothing to be done for `install-exec-am'. make[3]: Nothing to be done for `install-data-am'. Making install in src awk -f ./mkerrnos.awk ./errnos.in >code-to-errno.h awk -f ./mkerrcodes1.awk ./errnos.in >_mkerrcodes.h xcrun cc -E -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -arch armv7 -mcpu=cortex-a8 -miphoneos-version-min=5.1 -O3 -g -arch armv7 -mcpu=cortex-a8 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk -miphoneos-version-min=5.0 -I/Users/pg/Downloads/vlc/contrib/arm-apple-darwin11-armv7/include _mkerrcodes.h | grep GPG_ERR_ | \ awk -f ./mkerrcodes.awk >mkerrcodes.h rm _mkerrcodes.h cc -I. -I. -o mkerrcodes ./mkerrcodes.c In file included from ./mkerrcodes.c:26: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/stdio.h:67: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/_types.h:27: In file included from /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/sys/_types.h:33: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.1.sdk/usr/include/machine/_types.h:32:10: fatal error: 'i386/_types.h' file not found #include "i386/_types.h" ^ 1 error generated. make[2]: *** [mkerrcodes] Error 1 make[1]: *** [install-recursive] Error 1 make: *** [.gpg-error] Error 2 new-host-4:ios pg$