sudo apt install ./conan-ubuntu-64.deb
sudo apt-get build-dep -y audacity # now install dependencies
mkdir -p ~/src/github.com/audacity # create parent dir of git repo
cd ~/src/github.com/audacity
git clone [email protected]:audacity/audacity.git
cd ~/src/github.com/audacity/audacity
git submodule update --init
git clone --recurse-submodules [email protected]:audacity/wxWidgets.git
cd ~/src/github.com/audacity/audacity/wxWidgets/
mkdir buildgtk
cd ~/src/github.com/audacity/audacity/wxWidgets/buildgtk
../configure --with-cxx=14 --with-gtk=2
sudo make -j$(nproc) install
sudo ldconfig
cd ~/src/github.com/audacity/audacity
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_ffmpeg=loaded ..
make -j$(nproc)
完成,现在让我们启动它
~/src/github.com/audacity/audacity/build/bin/Release/audacity # execute to confirm it runs OK
cd ~/src/github.com/audacity/audacity/build
sudo make -j8 install # install binary
奖金......如果你想避免看到那个弹出消息
关闭前保存项目
关闭 audacity 时让我们编辑代码并重新编译:
cd ~/src/github.com/audacity/audacity
grep -r 'Save project before closing' * | grep cpp # find source code file which contains offending popup
vi src/ProjectManager.cpp # edit file
在您的编辑器中搜索字符串 Save project before closing
depending on your source code version prior releases had this
old bool ProjectManager::sbSkipPromptingForSave = false;
new bool ProjectManager::sbSkipPromptingForSave = true;
好的,现在保存文件并重新编译
cd ~/src/github.com/audacity/audacity/build # now lets recompile
make -j$(nproc)
~/src/github.com/audacity/audacity/build/bin/Release/audacity # execute and confirm popup does not happen
cd ~/src/github.com/audacity/audacity/build
sudo make -j8 install # install binary
在终端中运行这些命令
来源:http ://ubuntuhandbook.org/index.php/2015/04/install-audacity-audio-editor-2-1-0-in-ubuntu-from-ppa/
您必须从源代码编译 Audacity。作为 2.1.0 包一部分的“README.txt”指出:
运行这些命令应该将 Audacity 2.1.0 安装到您的系统上,前提是您具有编译和安装它所需的依赖项。Audacity Sourceforge页面指出:
Ubuntu 应该已经具有 Audacity 所需的依赖项,但是您需要开发包才能编译。您可以使用手动执行此操作,
apt-get install
但因为 Audacity 已经在 Ubuntu 存储库中,我们可以运行apt-get build-dep audacity
它来为我们安装所有必需的开发包。现在您需要做的就是按照自述文件中的描述配置、制作和安装 Audacity。
这些步骤在 Ubuntu 20.04 上编译 audacity
...请参阅https://wiki.audacityteam.org/wiki/Building_On_Linux
完成,现在让我们启动它
奖金......如果你想避免看到那个弹出消息
关闭 audacity 时让我们编辑代码并重新编译:
在您的编辑器中搜索字符串 Save project before closing
旧 if (!sbSkipPromptingForSave
新的 sbSkipPromptingForSave = true; 如果(!sbSkipPromptingForSave
old bool ProjectManager::sbSkipPromptingForSave = false;
new bool ProjectManager::sbSkipPromptingForSave = true;
好的,现在保存文件并重新编译