![]() By the way, all the directories you need above need to be manually built in advance and permissions are set. If you are lucky, you can see the result. Set executable permissions to the sh file and execute the sh file, and then rest for a few minutes. cross-prefix=$TOOLCHAIN/bin/arm-linux-androideabi- \ PREFIX=/root/workspace/ffmpeg_shared_compile/dxjia_ffmpeg_install/arm/ TOOLCHAIN=/home/djia/android/android-ndk-r10/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 I also post one here, and by the way, post its github project address This directory is the output directory of so compiled by ffmpeg, there will be an include and lib folder generated here, which is what we will use in the android apk later. PREFIX=/root/workspace/ffmpeg_shared_compile/dxjia_ffmpeg_install Specify the compiled installation directory TOOLCHAIN=/home/djia/android/android-ndk-r10/toolchains/arm-Linux-androideabi-4.9/prebuilt/linux-x86_64ĥ. For example, if your phone is android-15 version, then choose a version lower than 15. The path of the ndk platform specified here must be lower than the version used by your target machine. SYSROOT=$NDK/platforms/android-16/arch-arm/ Specify a temporary directory, it can be any path, but it must exist, ffmpeg compiling it I was stuck here for a while, thank you for the detailed explanation on github, plagiarized here: Many files written in *.sh on the Internet are available, but if you don't know the meaning of several variables in it, it is easy to report the wrong card here. The key is that many instructions on the Internet are not very detailed in fact, it is a configure parameter (as for the meaning of the parameter, see it by yourself-help), and there are many ffmpeg parameters There can be different configurations according to the different requirements of individuals. This step is stuck with countless heroes. There is no need to make any other changes here. SLIB_INSTALL_NAME='$(SLIBNAME_WITH_MAJOR)' SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)' SLIB_INSTALL_LINKS='$(SLIBNAME_WITH_MAJOR)$(SLIBNAME)' SLIB_INSTALL_NAME='$(SLIBNAME_WITH_VERSION)' SLIBNAME_WITH_MAJOR='$(SLIBNAME).$(LIBMAJOR)' And unzip it to your accustomed location (I still unzip it in the / root directory here) and slightly modify his configuration file, the reason is to make the compiled so library suitable for Android. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |