appliction add ffmpeglib?
-
How to add reference in application ffmpeglib?
怎么在应用里添加ffmpeg库? -
@wangqinfeng
You want to build an app using ffmpeglib, is that right ?
If so, are you using clickable ?With clickable, you can provide the
dependencies-target
to use an external lib :
http://clickable.bhdouglass.com/en/latest/clickable-json.html#dependencies-target -
![0_1582890460083_2.png](Uploading 100%)
Did I get it wrong?
是不是我哪里理解错了? -
@AppLee Hello! I have an application based on FFMPEG. I want to compile it to uborts and rely on ffmpeg lib. I can't root to install ffmpeg lib
-
@wangqinfeng
You cannot add the lib to the system, it's locked for safety reasons.
(Well you can but shouldn't)You need to embed the dependencies you're using within your click package.
If you're using clickable, it takes care of it for you using the params I gave you in the clickable.jsonHow do you build your click ?
-
build ffmpeg_lib
bash>:docker run -v home/xxxx/netplay:/home/xxxx/netplay -w home/xxxx/netplay/libs/ffmpeg_source -u 1000 -e HOME=/tmp -i -t clickable/ubuntu-sdk:16.04-armhf
bash:>
./configure --target-os=linux --arch=arm64 --disable-asm --disable-x86asm --enable-cross-compile --cc=/usr/bin/arm-linux-gnueabihf-gcc --prefix=/home/xxxx/netplay/libs/ffmpeg_source/build --disable-ffmpeg --disable-ffplay --disable-ffprobebash:>make -j 8
vim CMakLIst.txt:
bash:> clickable clean build click-build launch logs
-
Finally, it can be used! build ffmpeg_lib to ubports!