kxmovie icon indicating copy to clipboard operation
kxmovie copied to clipboard

OSX 10.10 IOS SDK 8.1 rake fail

Open xnastudio opened this issue 10 years ago • 16 comments

  1. OSX 10.10 no /usr/local/bin , just manual cp gas-preprocessor.pl to /usr/bin and chmod 777
  2. 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.

xnastudio avatar Oct 31 '14 03:10 xnastudio

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'

xnastudio avatar Oct 31 '14 04:10 xnastudio

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

xnastudio avatar Nov 01 '14 01:11 xnastudio

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

WenchaoD avatar Dec 12 '14 03:12 WenchaoD

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.

supagusti avatar Jan 14 '15 13:01 supagusti

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.

supagusti avatar Jan 14 '15 16:01 supagusti

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.

richardlevy avatar Jan 22 '15 11:01 richardlevy

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.

supagusti avatar Jan 22 '15 17:01 supagusti

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 ?

noyau09 avatar Mar 05 '15 12:03 noyau09

Hi, @noyau09 Have you checked the demo project? It builds the libkxmove.a in the 'product' folder.

WenchaoD avatar Mar 05 '15 14:03 WenchaoD

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.

noyau09 avatar Mar 06 '15 08:03 noyau09

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.

davieds avatar Mar 07 '15 07:03 davieds

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.

davieds avatar Mar 07 '15 07:03 davieds

if you use xcode6.3,please use SDK_VERSION='8.3'

loveq369 avatar Apr 16 '15 00:04 loveq369

@loveq369 Thank u

kentzhang-geek avatar Apr 16 '15 02:04 kentzhang-geek

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.

wangyandongnx avatar May 15 '15 02:05 wangyandongnx

if you use xcode6.4,please use SDK_VERSION='8.4', you will find it work

StevenGardnerGMJ avatar Aug 03 '15 03:08 StevenGardnerGMJ