gabriel / ffmpeg-iphone-build Goto Github PK
View Code? Open in Web Editor NEWBuild scripts for building ffmpeg on iPhone
Build scripts for building ffmpeg on iPhone
Hi,
I am using build-armv6 build to compile the x264 using gcc4.2. Unfortuantely when I run the below command
CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 ./configure --host=arm-apple-darwin --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk --prefix='dist' --extra-cflags='-arch armv6' --extra-ldflags='-arch armv6' --enable-pic --disable-asm
I get No working C compiler found.
Any help to compile x264 and link to ffmpeg is highly appreciated.
Thanks,
/D
Hi,
First thanks for our scripts ^^ it's the holly grail !!
I've got this error when I run build-x264-armv6 and build-x264-armv7
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -O3 -fno-fast-math -Wall -I. --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk -arch armv6 -falign-loops=16 -std=gnu99 -fPIC -s -fomit-frame-pointer -c -o encoder/me.o encoder/me.c
encoder/me.c: In function ‘x264_me_search_ref’:
encoder/me.c:249: warning: passing argument 1 of ‘x264_predictor_roundclip’ from incompatible pointer type
encoder/me.c:253: warning: cast to pointer from integer of different size
encoder/me.c:255: error: subscripted value is neither array nor pointer
encoder/me.c:256: error: subscripted value is neither array nor pointer
encoder/me.c:264: error: subscripted value is neither array nor pointer
encoder/me.c:265: error: subscripted value is neither array nor pointer
make: *** [encoder/me.o] Error 1
Installed: x264-armv6/dist
I think it's more a bug from x264 sources I check out. But it works for i386
Tiz
Hi, gabriel.
how do you do?
Can not be compiled libswsca.a.
I'm not sure but before I upgrade Xcode 3.2.5, I could.
$./build-armv7
Pulling r22403...
./configure --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 --as="$SCRIPT_DIR/gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2" --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk --prefix="dist" --enable-cross-compile --target-os=darwin --arch=arm --cpu=arm1176jzf-s --extra-cflags='-arch armv6' --extra-ldflags='-arch armv6' $CONFIGURE_OPTIONS
... snip ...
Checked out revision 22403.
Configure options: --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libx264 --extra-ldflags=-L/Users/fxf/Desktop/gabriel-ffmpeg-iphone-build-b961668/x264-armv6/dist/lib --extra-cflags=-I/Users/fxf/Desktop/gabriel-ffmpeg-iphone-build-b961668/x264-armv6/dist/include
.........................
libswscale/swscale_template.c: In function ‘swScale_C’:
libswscale/swscale_template.c:2603: error: ‘PIX_FMT_Y400A’ undeclared (first use in this function)
libswscale/swscale_template.c:2603: error: (Each undeclared identifier is reported only once
libswscale/swscale_template.c:2603: error: for each function it appears in.)
libswscale/swscale_template.c: In function ‘sws_init_swScale_C’:
libswscale/swscale_template.c:3004: error: ‘PIX_FMT_Y400A’ undeclared (first use in this function)
libswscale/swscale.c: In function ‘palToRgbWrapper’:
libswscale/swscale.c:1478: error: ‘PIX_FMT_Y400A’ undeclared (first use in this function)
libswscale/swscale.c: In function ‘planarCopyWrapper’:
libswscale/swscale.c:1709: warning: implicit declaration of function ‘av_bswap16’
libswscale/swscale.c: In function ‘ff_get_unscaled_swscale’:
libswscale/swscale.c:1794: error: ‘PIX_FMT_Y400A’ undeclared (first use in this function)
libswscale/swscale.c: In function ‘reset_ptr’:
libswscale/swscale.c:1867: error: ‘PIX_FMT_Y400A’ undeclared (first use in this function)
libswscale/swscale.c: In function ‘sws_scale’:
libswscale/swscale.c:1907: warning: passing argument 1 of ‘check_image_pointers’ from incompatible pointer type
libswscale/swscale.c:1911: warning: passing argument 1 of ‘check_image_pointers’ discards qualifiers from pointer target type
libswscale/swscale.c:1924: error: ‘PIX_FMT_Y400A’ undeclared (first use in this function)
make: *** [libswscale/swscale.o] Error 1
... snip ...
sory my poor English.
Thanks.
http://www.eugeniobaglieri.it/post/4849773416/compile-ffmpeg-for-ios-sdk-4-3
Look for this post. To work fine script may be changed.
Best Regards, Hariton Batkov
i compile x264 with build-x264-i386 setting
when my code run in x264_encoder_encode , the program will be crashed
the error information is
"Detected an attempt to call a symbol in system libraries
that is not present on the iPhone:__isfinited called from function
get_qscale in image ffmpeginiphone.
If you are encountering this problem running a simulator binary within gdb,
make sure you 'set start-with-shell off' first."
any body have any relative experience ??
thx
Hi, gabriel.
how do you do?
build-armv6/7 could compile, but today I tried it,I couldn't.
I'm not sure but before I upgrade Xcode 3.2.3, I could.
$./build-armv7
Pulling r22403...
... snip ...
Checked out revision 22403.
Configure options: --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libx264 --extra-ldflags=-L/Users/mac/documents/c/git/ffmpeg-iphone-build/x264-armv7/dist/lib --extra-cflags=-I/Users/mac/documents/c/git/ffmpeg-iphone-build/x264-armv7/dist/include
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 is unable to create an executable file.
C compiler test failed.
... snip ...
sory my poor English.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.