Page 1 of 2
Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Posted: Thu Jan 10, 2019 8:44 pm
by smartflutist661
I'm attempting to build Audacity
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Posted: Thu Jan 10, 2019 8:47 pm
by steve
What was your "configure" command?
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Posted: Thu Jan 10, 2019 8:49 pm
by steve
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 )
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Posted: Thu Jan 10, 2019 8:57 pm
by smartflutist661
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);
returns
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.
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Posted: Thu Jan 10, 2019 8:59 pm
by smartflutist661
Here's the configure command:
Code: Select all
../configure --with-lib-preference="local system" --with-ffmpeg="system" --disable-dynamic-loading --with-mod-script-pipe
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Posted: Thu Jan 10, 2019 9:14 pm
by steve
You are correct that mod-script-pipe is not enabled by default.
Why do you think that FFmpeg can't be found?
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Posted: Thu Jan 10, 2019 9:16 pm
by smartflutist661
Configure fails with the message
Code: Select all
configure: error: You requested using the system libraries for FFMPEG but they are not available
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Posted: Thu Jan 10, 2019 9:50 pm
by steve
Do you have libavformat-dev installed?
(it may be worth also referring to this post:
viewtopic.php?p=331010#p331010)
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Posted: Thu Jan 10, 2019 9:56 pm
by smartflutist661
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.
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Posted: Thu Jan 10, 2019 10:17 pm
by steve
smartflutist661 wrote: ↑Thu Jan 10, 2019 9:56 pm
That appears to have been the issue, thanks.
You're welcome
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?