Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Help for Audacity on GNU/Linux.
Forum rules
ImageThis forum is for Audacity on GNU/Linux.
Please state:
  • which version of Linux you are using,
  • the exact three-section version number of Audacity from Help menu > About Audacity,
  • whether you installed your distribution's release, PPA version, or compiled Audacity from source code.

Audacity 1.2.x and 1.3.x are obsolete and no longer supported. If you still have those versions, please upgrade (see https://www.audacityteam.org/download/).
The old forums for those versions are now closed, but you can still read the archives of the 1.2.x and 1.3.x forums.
smartflutist661
Posts: 16
Joined: Thu Jan 10, 2019 8:42 pm
Operating System: OS X 10.9 Mavericks

Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Post by smartflutist661 » Thu Jan 10, 2019 8:44 pm

I'm attempting to build Audacity

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Post by steve » Thu Jan 10, 2019 8:47 pm

What was your "configure" command?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Post by steve » Thu Jan 10, 2019 8:49 pm

Also, why are you building Audacity 2.2.2? (Audacity 2.2.2 is available in the Ubuntu repository https://packages.ubuntu.com/search?suit ... chon=names )
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

smartflutist661
Posts: 16
Joined: Thu Jan 10, 2019 8:42 pm
Operating System: OS X 10.9 Mavericks

Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Post by smartflutist661 » Thu Jan 10, 2019 8:57 pm

Apologies, I hadn't completed the post yet and couldn't delete it before it was approved. Here's more information:

I'm attempting to build Audacity 2.2.2 from source, following the instructions here in order to enable mod-script-pipe (which, as far as I can tell, isn't available for any of the repository versions). I have ffmpeg 3.4.4 installed from the Ubuntu repository (libavcodec.so.57 is located in /usr/lib/x86_64-linux-gnu);

Code: Select all

pkg-config --libs libavcodec
returns

Code: Select all

-lavcodec

Code: Select all

pkg-config --variable pc_path pkg-config
returns

Code: Select all

/usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig
so it's searching in the correct directory, as far as I can tell.

smartflutist661
Posts: 16
Joined: Thu Jan 10, 2019 8:42 pm
Operating System: OS X 10.9 Mavericks

Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Post by smartflutist661 » Thu Jan 10, 2019 8:59 pm

Here's the configure command:

Code: Select all

../configure --with-lib-preference="local system" --with-ffmpeg="system" --disable-dynamic-loading --with-mod-script-pipe

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Post by steve » Thu Jan 10, 2019 9:14 pm

You are correct that mod-script-pipe is not enabled by default.
Why do you think that FFmpeg can't be found?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

smartflutist661
Posts: 16
Joined: Thu Jan 10, 2019 8:42 pm
Operating System: OS X 10.9 Mavericks

Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Post by smartflutist661 » Thu Jan 10, 2019 9:16 pm

Configure fails with the message

Code: Select all

configure: error: You requested using the system libraries for FFMPEG but they are not available

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Post by steve » Thu Jan 10, 2019 9:50 pm

Do you have libavformat-dev installed?
(it may be worth also referring to this post: viewtopic.php?p=331010#p331010)
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

smartflutist661
Posts: 16
Joined: Thu Jan 10, 2019 8:42 pm
Operating System: OS X 10.9 Mavericks

Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Post by smartflutist661 » Thu Jan 10, 2019 9:56 pm

That appears to have been the issue, thanks. I had seen that post, but assumed that I had all of the build dependencies since I had the official repository version installed previously, forgetting that the -dev packages aren't always installed for that.

steve
Site Admin
Posts: 80752
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18

Post by steve » Thu Jan 10, 2019 10:17 pm

smartflutist661 wrote:
Thu Jan 10, 2019 9:56 pm
That appears to have been the issue, thanks.
You're welcome :D

Now that you've got the build working, I'd recommend that you build Audacity 2.3.1. It is officially still "alpha" software, but we are very close to releasing it. There's a LOT of new stuff in it for scripting, so I'd highly recommend it for working with mod-script-pipe. The source code is available here: https://github.com/audacity/audacity
(use the "Clone or download" button and select "Download ZIP".)

There's not a huge amount of documentation for mod-script-pipe yet (we're still working on that), and as it is early days for the new scripting commands, there could be some changes in future releases. If you have questions about scripting, just start a new topic.

Which scripting language are you intending to use?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Post Reply