我正在使用 Ubuntu 22.10。Audacity 程序出现在软件中心安装了两次,一次是 Muse 组的,另一次是 Dani Llewellyn 的(体积大得多):
我也安装了 webcamoid,但在这里出现两次,都是 webcamoid 9.0.0:
是什么原因这?我该如何解决?
尝试从源代码在Ubuntu 20.04上构建Audacity v2.4.2 。
按照http://wiki.audacityteam.org/wiki/Building_On_Linux的说明
到目前为止我所做的:
- 安装所有依赖项
- 使用 gtk2 克隆和构建 wxwidgets 3.1.3
- 使用示例测试 wxwidget - 最小和小部件(都很好)
$ /opt/newbie_2021/wxWidgets/buildgtk/samples/widgets/widgets
- wx 配置输出:
newbie_2021@msig7-ubuntu:~$ wx-config --version
3.1.3
newbie_2021@msig7-ubuntu:~$ wx-config --list
Default config is gtk2-unicode-3.1
Default config will be used for output
- 克隆的大胆
问题:
当我跑步时——
cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_ffmpeg=loaded ..
我得到这个输出:
newbie_2021@msig7-ubuntu:/opt/newbie_2021/audacity/build$ cmake -DCMAKE_BUILD_TYPE=Release -Daudacity_use_ffmpeg=loaded --log-level=TRACE ..
-- The ASM_NASM compiler identification is unknown
-- Didn't find assembler
-- Build Info:
-- Host System: Linux-5.4.0-58-generic
-- Host System Name: Linux
-- Host System Processor: x86_64
-- Host System Version: 5.4.0-58-generic
-- Host System Architecture: 64-bit
--
-- Compiler: /usr/bin/c++
-- Compiler Version: 9.3.0
-- Compiler Standard: 14
-- Compiler Standard Required: ON
-- Compiler Extensions:
--
-- Current Commit: f7c0ba837
--
-- ========== Configuring wxwidgets ==========
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(167): wxWidgets_FIND_COMPONENTS : adv;base;core;html;net;qa;xml
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(167): wxWidgets_SELECT_OPTIONS=--static=no;--unicode=no;--universal=no
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_CXX_FLAGS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_DEFINITIONS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_INCLUDE_DIRS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_CXX_FLAGS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets required components : adv;base;core;html;net;qa;xml
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets optional components :
wxWidgets_LIBRARIES=
wxWidgets_LIBRARY_DIRS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_LIBRARIES=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_LIBRARY_DIRS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_CXX_FLAGS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_DEFINITIONS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_INCLUDE_DIRS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_CXX_FLAGS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets required components : adv;base;core;html;net;qa;xml
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets optional components :
wxWidgets_LIBRARIES=
wxWidgets_LIBRARY_DIRS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_LIBRARIES=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(171): wxWidgets_LIBRARY_DIRS=
-- /opt/newbie_2021/audacity/cmake-proxies/cmake-modules/FindwxWidgets.cmake(167): _wx_filename: _wx_filename-NOTFOUND
CMake Error at cmake-proxies/cmake-modules/FindwxWidgets.cmake:1046 (message):
wxWidgets wx/version.h file not found in .
Call Stack (most recent call first):
cmake-proxies/wxWidgets/CMakeLists.txt:25 (find_package)
-- Configuring incomplete, errors occurred!
See also "/opt/newbie_2021/audacity/build/CMakeFiles/CMakeOutput.log".
See also "/opt/newbie_2021/audacity/build/CMakeFiles/CMakeError.log".
更多信息:
newbie_2021@msig7-ubuntu:~$ wx-config --cxxflags
-I/usr/local/lib/wx/include/gtk2-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread
newbie_2021@msig7-ubuntu:~$ wx-config --libs
-L/usr/local/lib -pthread -lwx_gtk2u_xrc-3.1 -lwx_gtk2u_html-3.1 -lwx_gtk2u_qa-3.1 -lwx_gtk2u_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1
newbie_2021@msig7-ubuntu:~$ which wx-config
/usr/local/bin/wx-config
newbie_2021@msig7-ubuntu:~$ ll /usr/local/bin/wx-config
lrwxrwxrwx 1 root root 41 Dec 31 16:00 /usr/local/bin/wx-config -> /usr/local/lib/wx/config/gtk2-unicode-3.1
newbie_2021@msig7-ubuntu:~$ /opt/newbie_2021/wxWidgets/buildgtk/wx-config --version
3.1.3
newbie_2021@msig7-ubuntu:~$ ll /opt/newbie_2021/wxWidgets/buildgtk/wx-config
lrwxrwxrwx 1 newbie_2021 wireshark 38 Dec 31 15:56 /opt/newbie_2021/wxWidgets/buildgtk/wx-config -> lib/wx/config/inplace-gtk2-unicode-3.1
更新 1:感谢#audacity 上的@Naglfar 帮助我解决这个问题。
我可以看到的第一个问题是“在 Linux 上构建”文档缺少make
wxwidgets 构建命令。
其次,我必须明确指定目标位置:
../configure --with-cxx=14 --with-gtk=2 **--prefix=/usr/local**
我仍然遇到同样的错误,cmake
但至少有一些进展。
newbie_2021@msig7-ubuntu:~$ wx-config --cxxflags
-I/usr/local/lib/wx/include/gtk2-unicode-3.1 -I/usr/local/include/wx-3.1 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread
newbie_2021@msig7-ubuntu:~$ wx-config --selected-config
gtk2-unicode-3.1
newbie_2021@msig7-ubuntu:~$ wx-config --libs
-L/usr/local/lib -pthread -lwx_gtk2u_xrc-3.1 -lwx_gtk2u_html-3.1 -lwx_gtk2u_qa-3.1 -lwx_gtk2u_core-3.1 -lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1
newbie_2021@msig7-ubuntu:~$ find /usr/local/ -name version.h
/usr/local/lib/wx/version.h
/usr/local/include/wx-3.1/wx/version.h
更新 2:
终于解决了。我不得不删除 cmake 缓存文件。
CMakeCache.txt
之后cmake
运行良好,make
和make install
.
当我通过终端执行“大胆”时,我得到下一个日志并且根本无法使用它:
efsandino@mc4-efsandino:~$ audacity
Gtk-Message: 09:00:50.299: Failed to load module "overlay-scrollbar"
Gtk-Message: 09:00:50.299: Failed to load module "gail"
Gtk-Message: 09:00:50.300: Failed to load module "atk-bridge"
Gtk-Message: 09:00:50.336: Failed to load module "canberra-gtk-module"
ALSA lib conf.c:3710:(snd_config_hook_load) cannot stat file/directory /usr/share/alsa/cards/aliases.conf
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.default
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround21
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.dmix
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
ALSA lib seq_hw.c:466:(snd_seq_hw_open) open /dev/snd/seq failed: Permission denied
Terminado (killed)
关于如何解决它的任何想法?- 我还注意到我的 gnome-calculator 显示奇怪的符号,这些问题是否相关?
我打开 Audacity 后,就没有声音了。
关闭 Audacity 并不能解决问题。一旦我运行它,我的电脑将不会发出任何声音,直到我重新启动它。
当我运行 audacity 时,我收到以下错误消息:
系统检测到另一个 Audacity 副本正在运行。同时运行 Audacity 的两个副本可能会导致数据丢失或导致系统崩溃。在当前运行的 Audacity 进程中使用 New 或 Open 命令同时打开多个项目。
我检查了系统的监视器,没有运行大胆的进程。至少不是我能发现的。
我重新启动,什么也没发生。