• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 579 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 28 Feb 2020, 07:48

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

      A 1 Reply Last reply 28 Feb 2020, 08:40 Reply Quote 0
      • A Offline
        AppLee @wangqinfeng
        last edited by 28 Feb 2020, 08:40

        @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 28 Feb 2020, 11:49

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

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

          W 1 Reply Last reply 28 Feb 2020, 14:08 Reply Quote 0
          • W Offline
            wangqinfeng @wangqinfeng
            last edited by 28 Feb 2020, 14:08

            @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

            A 1 Reply Last reply 28 Feb 2020, 14:54 Reply Quote 0
            • A Offline
              AppLee @wangqinfeng
              last edited by 28 Feb 2020, 14:54

              @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 3 Mar 2020, 11:44

                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 15 Mar 2020, 06:54

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

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