Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    appliction add ffmpeglib?

    App Development
    2
    7
    234
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • W
      wangqinfeng last edited by

      How to add reference in application ffmpeglib?
      怎么在应用里添加ffmpeg库?

      AppLee 1 Reply Last reply Reply Quote 0
      • AppLee
        AppLee @wangqinfeng last edited by

        @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

        1 Reply Last reply Reply Quote 0
        • W
          wangqinfeng last edited by

          ![0_1582890460083_2.png](Uploading 100%) error.png

          Did I get it wrong?
          是不是我哪里理解错了?

          W 1 Reply Last reply Reply Quote 0
          • W
            wangqinfeng @wangqinfeng last edited by

            @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

            AppLee 1 Reply Last reply Reply Quote 0
            • AppLee
              AppLee @wangqinfeng last edited by

              @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.json

              How do you build your click ?

              1 Reply Last reply Reply Quote 0
              • W
                wangqinfeng last edited by

                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-ffprobe

                bash:>make -j 8

                vim CMakLIst.txt:
                bbb.png

                bash:> clickable clean build click-build launch logs

                1 Reply Last reply Reply Quote 0
                • W
                  wangqinfeng last edited by

                  Finally, it can be used! build ffmpeg_lib to ubports!

                  1 Reply Last reply Reply Quote 1
                  • First post
                    Last post