kxmovie
kxmovie copied to clipboard
OSX 10.10 IOS SDK 8.1 rake fail
- OSX 10.10 no /usr/local/bin , just manual cp gas-preprocessor.pl to /usr/bin and chmod 777
- change Rakefile
SDK_VERSION ='8.1' Change GCC_PATH from XCode.app to Xcode.app
after rake , still no files in universal folder and no output in kxmovie folder Can someone help me or just send me the output files. Thank you.
Original Rakefile:
SDK_VERSION='7.1'
XCODE_PATH='/Applications/Xcode.app/Contents/Developer/Platforms' GCC_PATH='/Applications/XCode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' LIB_PATH='/usr/lib/system' GASPREP_DEST_PATH='/usr/local/bin'
change to:
SDK_VERSION='8.1'
XCODE_PATH='/Applications/Xcode.app/Contents/Developer/Platforms' GCC_PATH='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' LIB_PATH='/usr/lib/system' GASPREP_DEST_PATH='/usr/bin'
It just can't create the universal build:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libavutil/libavutil.a(atomic.o) has no symbols Executing cd FFmpeg; [ -f -.d ] && rm -- -.d; make clean Executing cd FFmpeg; xcrun -sdk iphoneos lipo -create -arch armv7 armv7/libavcodec.a -arch armv7 armv7s/libavcodec.a -arch arm64 arm64/libavcodec.a -arch i386 i386/libavcodec.a -output universal/libavcodec.a Executing cd FFmpeg; xcrun -sdk iphoneos lipo -create -arch armv7 armv7/libavformat.a -arch armv7 armv7s/libavformat.a -arch arm64 arm64/libavformat.a -arch i386 i386/libavformat.a -output universal/libavformat.a Executing cd FFmpeg; xcrun -sdk iphoneos lipo -create -arch armv7 armv7/libavutil.a -arch armv7 armv7s/libavutil.a -arch arm64 arm64/libavutil.a -arch i386 i386/libavutil.a -output universal/libavutil.a Executing cd FFmpeg; xcrun -sdk iphoneos lipo -create -arch armv7 armv7/libswscale.a -arch armv7 armv7s/libswscale.a -arch arm64 arm64/libswscale.a -arch i386 i386/libswscale.a -output universal/libswscale.a Executing cd FFmpeg; xcrun -sdk iphoneos lipo -create -arch armv7 armv7/libswresample.a -arch armv7 armv7s/libswresample.a -arch arm64 arm64/libswresample.a -arch i386 i386/libswresample.a -output universal/libswresample.a
GASPREP_DEST_PATH='/usr/bin'
I use 'usr/local/bin' and it works fine. Why would u change this?
And based on the rake file , the output folder contains all the .a file it mentioned and three header files
"desc "Copy to output folder"
task :copy_movie do
dest = ensureDir 'output'
FileUtils.move Pathname.new('tmp/build/libkxmovie.a'), dest
FileUtils.copy Pathname.new('libs/FFmpeg/libavcodec.a'), dest
FileUtils.copy Pathname.new('libs/FFmpeg/libavformat.a'), dest
FileUtils.copy Pathname.new('libs/FFmpeg/libavutil.a'), dest
FileUtils.copy Pathname.new('libs/FFmpeg/libswscale.a'), dest
FileUtils.copy Pathname.new('libs/FFmpeg/libswresample.a'), dest
FileUtils.copy Pathname.new('kxmovie/KxMovieViewController.h'), dest
FileUtils.copy Pathname.new('kxmovie/KxAudioManager.h'), dest
FileUtils.copy Pathname.new('kxmovie/KxMovieDecoder.h'), dest
FileUtils.copy_entry Pathname.new('kxmovie/kxmovie.bundle'), dest + 'kxmovie.bundle'
end "
So I haven't got output folder neither .But I just manually take the files from the demo project and drop them to my project, and now it works perfect. Hopefully this would help u
Just got the same issue like above: Using OSX 10.10, Xcode 6.1. changed the Rakefile to: SDK_VERSION='8.1'
XCODE_PATH='/Applications/Xcode.app/Contents/Developer/Platforms' GCC_PATH='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang' LIB_PATH='/usr/lib/system' GASPREP_DEST_PATH='/usr/local/bin'
copied the gas-preprocessor/gas-preprocessor.pl to /usr/local/bin chmod 777 /usr/local/bin/gas-preprocessor.pl
the problem is that I get no symbols errors, and the .a files in the kxmovie/libs/FFMpeg can only be used on the iPhone itself, but not for the simulater (using x86_64 architecture). When I build the sample project for simulator i get the error messages below.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libavutil/libavutil.a(atomic.o) has no symbols /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: libavutil/libavutil.a(atomic.o) has no symbols Executing cd FFmpeg; [ -f -.d ] && rm -- -.d; make clean Executing cd FFmpeg; xcrun -sdk iphoneos lipo -create -arch armv7 armv7/libavcodec.a -arch armv7 armv7s/libavcodec.a -arch arm64 arm64/libavcodec.a -arch i386 i386/libavcodec.a -output universal/libavcodec.a Executing cd FFmpeg; xcrun -sdk iphoneos lipo -create -arch armv7 armv7/libavformat.a -arch armv7 armv7s/libavformat.a -arch arm64 arm64/libavformat.a -arch i386 i386/libavformat.a -output universal/libavformat.a Executing cd FFmpeg; xcrun -sdk iphoneos lipo -create -arch armv7 armv7/libavutil.a -arch armv7 armv7s/libavutil.a -arch arm64 arm64/libavutil.a -arch i386 i386/libavutil.a -output universal/libavutil.a Executing cd FFmpeg; xcrun -sdk iphoneos lipo -create -arch armv7 armv7/libswscale.a -arch armv7 armv7s/libswscale.a -arch arm64 arm64/libswscale.a -arch i386 i386/libswscale.a -output universal/libswscale.a Executing cd FFmpeg; xcrun -sdk iphoneos lipo -create -arch armv7 armv7/libswresample.a -arch armv7 armv7s/libswresample.a -arch arm64 arm64/libswresample.a -arch i386 i386/libswresample.a -output universal/libswresample.a
Errors in XCode: (...) ld: warning: ignoring file /Users/tmitschke/Development/Xcode4/GitHub/kxmovie_new/kxmovie/libs/FFmpeg/libavformat.a, missing required architecture x86_64 in file /Users/tmitschke/Development/Xcode4/GitHub/kxmovie_new/kxmovie/libs/FFmpeg/libavformat.a (4 slices) ld: warning: ignoring file /Users/tmitschke/Development/Xcode4/GitHub/kxmovie_new/kxmovie/libs/FFmpeg/libavutil.a, missing required architecture x86_64 in file /Users/tmitschke/Development/Xcode4/GitHub/kxmovie_new/kxmovie/libs/FFmpeg/libavutil.a (4 slices) ld: warning: ignoring file /Users/tmitschke/Development/Xcode4/GitHub/kxmovie_new/kxmovie/libs/FFmpeg/libswresample.a, missing required architecture x86_64 in file /Users/tmitschke/Development/Xcode4/GitHub/kxmovie_new/kxmovie/libs/FFmpeg/libswresample.a (4 slices) ld: warning: ignoring file /Users/tmitschke/Development/Xcode4/GitHub/kxmovie_new/kxmovie/libs/FFmpeg/libswscale.a, missing required architecture x86_64 in file /Users/tmitschke/Development/Xcode4/GitHub/kxmovie_new/kxmovie/libs/FFmpeg/libswscale.a (4 slices) ld: warning: ignoring file /Users/tmitschke/Development/Xcode4/GitHub/kxmovie_new/kxmovie/libs/FFmpeg/libavcodec.a, missing required architecture x86_64 in file /Users/tmitschke/Development/Xcode4/GitHub/kxmovie_new/kxmovie/libs/FFmpeg/libavcodec.a (4 slices) (...)
Maybe I'm missing a thing..?!? Can someone help me out? Thank you.
EDIT: The KxMovieExample builds fine in simulator on a iPhone 5(7.1) as well on a iPhone 5(8.1) but it will fail on iPhone 5s and above. On my physical iPhone 5s(IOS8.1) it also builds fine.
Just found a solution: I used the Rakefile and the gas-preprocessor.pl from https://github.com/aleufms/kxmovie to compile as I described above. Now the iphone simultator (x86_64) also runs without problems.
Followed this and got it to work. Note, don't build from the aleufms repository as it just builds forever. Checkout this repo, copy the files from the other repo, then build.
Hi,
Yes it does build the same files, but for different arch:
armv7 armv7s arm64 i386 x86 I386 x64
So you see the files five times running down your screen...
Br, Sg
Sent from mobile device
Am 22.01.2015 um 12:19 schrieb richardlevy [email protected]:
Thanks for the solutions. Am building now from that repository - does it always take ages? It looks like it's just going round and round the same files?
— Reply to this email directly or view it on GitHub.
Hi, after "rake", I got five .a lib file as below: FileUtils.copy Pathname.new('libs/FFmpeg/libavcodec.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libavformat.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libavutil.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libswscale.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libswresample.a'), dest
did not get files as below: FileUtils.move Pathname.new('tmp/build/libkxmovie.a'), dest FileUtils.copy Pathname.new('kxmovie/KxMovieViewController.h'), dest FileUtils.copy Pathname.new('kxmovie/KxAudioManager.h'), dest FileUtils.copy Pathname.new('kxmovie/KxMovieDecoder.h'), dest FileUtils.copy_entry Pathname.new('kxmovie/kxmovie.bundle'), dest + 'kxmovie.bundle'
Besides, the project -kxmovie has an error: 'libavformat/avformat.h' file not found is "rake" not success ?
Hi, @noyau09 Have you checked the demo project? It builds the libkxmove.a in the 'product' folder.
Hi, @f33chobits yes, as configured, libkxmove.a should be in folder "tmp/build/libkxmovie.a". However,after rake , there is only the old libkxmove.a file which was cloned from the project, did not generate a new version.
thank u
发自我的 iPhone
在 2015年1月23日,上午1:55,Supagusti [email protected] 写道:
Hi,
Yes it does build the same files, but for different arch:
armv7 armv7s arm64 i386 x86 I386 x64
So you see the files five times running down your screen...
Br, Sg
Sent from mobile device
Am 22.01.2015 um 12:19 schrieb richardlevy [email protected]:
Thanks for the solutions. Am building now from that repository - does it always take ages? It looks like it's just going round and round the same files?
— Reply to this email directly or view it on GitHub.
— Reply to this email directly or view it on GitHub.
i resolved
发自我的 iPhone
在 2015年3月5日,下午8:22,noyau09 [email protected] 写道:
Hi, after "rake", I got five .a lib file as below: FileUtils.copy Pathname.new('libs/FFmpeg/libavcodec.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libavformat.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libavutil.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libswscale.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libswresample.a'), dest
did not get files as below: FileUtils.move Pathname.new('tmp/build/libkxmovie.a'), dest FileUtils.copy Pathname.new('kxmovie/KxMovieViewController.h'), dest FileUtils.copy Pathname.new('kxmovie/KxAudioManager.h'), dest FileUtils.copy Pathname.new('kxmovie/KxMovieDecoder.h'), dest FileUtils.copy_entry Pathname.new('kxmovie/kxmovie.bundle'), dest + 'kxmovie.bundle'
Besides, the project -kxmovie has an error: 'libavformat/avformat.h' file not found is "rake" not success ?
— Reply to this email directly or view it on GitHub.
if you use xcode6.3,please use SDK_VERSION='8.3'
@loveq369 Thank u
Hi, after "rake", I got five .a lib file as below: FileUtils.copy Pathname.new('libs/FFmpeg/libavcodec.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libavformat.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libavutil.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libswscale.a'), dest FileUtils.copy Pathname.new('libs/FFmpeg/libswresample.a'), dest
did not get files as below: FileUtils.move Pathname.new('tmp/build/libkxmovie.a'), dest FileUtils.copy Pathname.new('kxmovie/KxMovieViewController.h'), dest FileUtils.copy Pathname.new('kxmovie/KxAudioManager.h'), dest FileUtils.copy Pathname.new('kxmovie/KxMovieDecoder.h'), dest FileUtils.copy_entry Pathname.new('kxmovie/kxmovie.bundle'), dest + 'kxmovie.bundle'
Rake runs only build_ffmpeg
task by default. You need to run rake build_all
or rake build_movie
to get libkxmovie.a.
if you use xcode6.4,please use SDK_VERSION='8.4', you will find it work