简体   繁体   English

.So文件,用于NDK的FFMPEG

[英].So file for FFMPEG from NDK

I am not able to make .So file for FFMPEG from NDK . 我无法从NDK为FFMPEG创建.So文件。 I Just Download a zip file from GitHub https://github.com/appunite/AndroidFFmpeg Then i used CYGWIN for using NDK commends for making .so file from jni folder in ffmpeg library then on Cygwin i am giving path of ffmpeg up to jni folder then $ ndk build after some process error message came 我只是从GitHub下载一个zip文件https://github.com/appunite/AndroidFFmpeg然后我使用CYGWIN来使用NDK推荐从ffmpeg库中jni文件夹中制作.so文件,然后在Cygwin上我给出了ffmpeg的路径,直到jni文件夹,然后$ ndk构建后出现一些过程错误消息

  C:\Users\ADMIN\Downloads\AndroidFFmpeg-master\AndroidFFmpeg-master\FFmpegLibrary
 \jni>ndk-build
 Android NDK: ERROR:C:/Users/ADMIN/Downloads/AndroidFFmpeg-master/AndroidFFmpeg-m
  aster/FFmpegLibrary//jni/Android.mk:ffmpeg-prebuilt: LOCAL_SRC_FILES points to a
  missing file
  Android NDK: Check that C:/Users/ADMIN/Downloads/AndroidFFmpeg-master/AndroidFFm
  peg-master/FFmpegLibrary//jni/ffmpeg-build/armeabi-v7a/libffmpeg.so exists  or t
  hat its path is correct
  D:/NDK/androidndk/build/core/prebuilt-library.mk:45: *** Android NDK: Aborting
 .  Stop.

Any type of help is Appricated. 任何类型的帮助都是适用的。

You should use this fork from AppUnite's AndroidFFmpeg. 您应该使用AppUnite的AndroidFFmpeg中的此fork Much clearer build instruction. 更清晰的构建说明。 I've successfully built FFmpeg v3.0.2 using NDK 11c. 我已经使用NDK 11c成功构建了FFmpeg v3.0.2。

Another piece of advice, do the build on Ubuntu, it will save you a lot of brain cells. 另一个建议是,在Ubuntu上进行构建,它将为您节省大量的大脑细胞。 After you've successfully built it on Ubuntu you can copy the whole thing and use it on Windows. 在Ubuntu上成功构建它之后,您可以复制整个内容并在Windows上使用它。

See my Gist for some errors you may encounter. 有关可能遇到的一些错误,请参见我的要点

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM