lasted two days , and finally gave it to compile a success ! Now Liwo Te the configured file to download. We hope to save some time .
FFmpeg latest 1.2 version , If your version is not the same, please make the appropriate changes to the configuration file !
build environment : Ubuntu-11.10, android-ndk-r6-crystax-2
1. creating folders : ffmpeg, the downloaded file to extract ffmpeg under Linux under
tar xzvf ffmpeg-1.2.1.tar.gz
2.cd to ffmpeg directory , execute the command :
mv ffmpeg-1.2.1 jni
3.cd jni, create config.sh, Android.mk, av.mk
4. respectively, into each library directory, create Android.mk
5. commented each library directory Makefile first line : include $ (SUBDIR).. / config.mak
6. return jni directory, open config.sh, modify PREBUILT and PLATFORM to your own directory, run :
. / config.sh
7. complete, open config.h, search : av_restrict, replace this line of code :
#ifdef av_restrict
#undef av_restrict
#_endif
#define av_restrict
8. opens libavutil / parseutils.h, replace the # include
9. perform ndk-build, wait half an hour or so, you can ffmpeg / libs found below generate good so files , a total of 10 documents, which libffmpeg . so only 2K, the file is actually useless, just help us generate additional libraries Bale.
OK in that case your user has access to the path/file in question. Are you running this application in a Linux environment? If so, I'm thinking it could be something to do with the path String.
回复删除