![在 Ubuntu 上安装 LMMS 1.0.3](https://linux22.com/image/975197/%E5%9C%A8%20Ubuntu%20%E4%B8%8A%E5%AE%89%E8%A3%85%20LMMS%201.0.3.png)
我在使用 cmake 安装 LMMS 时遇到问题。我下载了 tar 文件,并在解压的目录中创建了 build 文件夹,然后运行 cmake。我在底部附上了错误日志。我是 Ubuntu 的初学者,所以任何帮助我都会很感激。我试过使用软件中心,但它的 LMMS 版本较旧。
谢谢!
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
Compiler: /home/joseph/anaconda/bin/clang++
Build flags:
Id flags:
The output was:
1
/usr/bin/ld: cannot find -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Determining if the CXX compiler works failed with the following output:
Change Dir: /home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec633473811/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec633473811.dir/build.make CMakeFiles/cmTryCompileExec633473811.dir/build
make[1]: Entering directory `/home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec633473811.dir/testCXXCompiler.cxx.o
/home/joseph/anaconda/bin/clang++ -o CMakeFiles/cmTryCompileExec633473811.dir/testCXXCompiler.cxx.o -c /home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec633473811
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec633473811.dir/link.txt --verbose=1
/home/joseph/anaconda/bin/clang++ CMakeFiles/cmTryCompileExec633473811.dir/testCXXCompiler.cxx.o -o cmTryCompileExec633473811 -rdynamic
/usr/bin/ld: cannot find -lstdc++
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [cmTryCompileExec633473811] Error 1
make[1]: Leaving directory `/home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec633473811/fast] Error 2
Determining if files soundcard.h exist failed with the following output:
Change Dir: /home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec4188567017/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec4188567017.dir/build.make CMakeFiles/cmTryCompileExec4188567017.dir/build
make[1]: Entering directory `/home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec4188567017.dir/CheckIncludeFiles.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec4188567017.dir/CheckIncludeFiles.c.o -c /home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
/home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:23: fatal error: soundcard.h: No such file or directory
#include <soundcard.h>
^
compilation terminated.
make[1]: *** [CMakeFiles/cmTryCompileExec4188567017.dir/CheckIncludeFiles.c.o] Error 1
make[1]: Leaving directory `/home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec4188567017/fast] Error 2
Source:
/* */
#include <soundcard.h>
int main(){return 0;}
Determining if files process.h exist failed with the following output:
Change Dir: /home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec3312614237/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3312614237.dir/build.make CMakeFiles/cmTryCompileExec3312614237.dir/build
make[1]: Entering directory `/home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3312614237.dir/CheckIncludeFiles.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec3312614237.dir/CheckIncludeFiles.c.o -c /home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c
/home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp/CheckIncludeFiles.c:2:21: fatal error: process.h: No such file or directory
#include <process.h>
^
compilation terminated.
make[1]: *** [CMakeFiles/cmTryCompileExec3312614237.dir/CheckIncludeFiles.c.o] Error 1
make[1]: Leaving directory `/home/joseph/Desktop/lmms-1.0.3/build/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec3312614237/fast] Error 2
Source:
/* */
#include <process.h>
int main(){return 0;}
答案1
您可以在 Ubuntu 14.04 和 14.10 中安装 LMMS 1.0.3,无需进行复杂的编译ppa:以色列/lmms-1.0.3存储库。
sudo add-apt-repository ppa:israeldahl/lmms-1.0.3
sudo apt-get update
sudo apt-get install lmms