简体   繁体   English

ffmpeg库编译.so文件(libavutil.so,libavcore.so,libavcodec.so等)

[英]ffmpeg library compile for .so files (libavutil.so, libavcore.so, libavcodec.so etc)

I want to use ffmpeg library in my Android Application. 我想在我的Android应用程序中使用ffmpeg库。 I have downloaded the source from here 我从这里下载了源代码

And I followed the steps INSTALL.md file to build the library. 然后我按照INSTALL.md文件的步骤来构建库。 (Compilation Environment is OSX) Unfortunately I'm getting only the .a files (like libavutil.a, libavcore.a, libavcodec.a etc). (编译环境是OSX)不幸的是我只得到.a文件(如libavutil.a,libavcore.a,libavcodec.a等)。

How can I compile the library to produce the .so files. 如何编译库以生成.so文件。 Is there any configuration option to change? 是否有任何配置选项可以更改?

I have compiled the source in Linux machine and successfully got the .so files. 我已经在Linux机器上编译了源代码并成功获得了.so文件。

While compiling you need to specify the configuration option: 编译时需要指定配置选项:

./configure --enable-shared --disable-static

This will give only the shared library files (.so files). 这将只提供共享库文件(.so文件)。

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

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