我在使用cmake安装‘m时遇到了问题。我下载了tar文件,并在解压缩目录中创建了构建文件夹,然后运行cmake。我已经把错误日志附在底部了。说到Ubuntu,我是个初学者,所以我希望得到任何帮助。我试过使用Software,但是它有一个更老版本的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;}发布于 2014-08-25 01:02:12
您可以在Ubuntu14.04和14.10中安装LMMS 1.0.3,而无需使用ppa:israeldahl/lmms-1.0.3存储库进行编译。
sudo add-apt-repository ppa:israeldahl/lmms-1.0.3
sudo apt-get update
sudo apt-get install lmmshttps://askubuntu.com/questions/515639
复制相似问题