Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Forum rules
This forum is for Audacity on GNU/Linux.
Please state:
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.
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
I'm attempting to build Audacity
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
What was your "configure" command?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)
Re: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
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
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
returns so it's searching in the correct directory, as far as I can tell.
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 libavcodecCode: Select all
-lavcodecCode: Select all
pkg-config --variable pc_path pkg-configCode: 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-
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
Here's the configure command:
Code: Select all
../configure --with-lib-preference="local system" --with-ffmpeg="system" --disable-dynamic-loading --with-mod-script-pipeRe: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
You are correct that mod-script-pipe is not enabled by default.
Why do you think that FFmpeg can't be found?
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
Configure fails with the message
Code: Select all
configure: error: You requested using the system libraries for FFMPEG but they are not availableRe: Can't find system FFMpeg when building 2.2.2 on Ubuntu 18
Do you have libavformat-dev installed?
(it may be worth also referring to this post: viewtopic.php?p=331010#p331010)
(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
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
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?
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)