UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    appliction add ffmpeglib?

    Scheduled Pinned Locked Moved App Development
    7 Posts 2 Posters 1.2k Views 1 Watching
    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 Offline
      wangqinfeng
      last edited by

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

      AppLeeA 1 Reply Last reply Reply Quote 0
      • AppLeeA Offline
        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 Offline
          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 Offline
            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

            AppLeeA 1 Reply Last reply Reply Quote 0
            • AppLeeA Offline
              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 Offline
                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 Offline
                  wangqinfeng
                  last edited by

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

                  1 Reply Last reply Reply Quote 1

                  Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                  Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                  With your input, this post could be even better 💗

                  Register Login
                  • First post
                    Last post