|
发表于 2022-8-29 15:02:17
|
显示全部楼层
为啥我执行cd local_rtsp/build
cmake ..
的时候会报如下的错误呢?
toybrick@debian10:~/Documents/local_rtsp/build$ cmake ..
CMake Error: The current CMakeCache.txt directory /home/toybrick/Documents/local_rtsp/build/CMakeCache.txt is different than the directory /home/toybrick/local_rtsp/build where CMakeCache.txt was created. This may result in binaries being created in the wrong place. If you are not sure, reedit the CMakeCache.txt
CMake Error: The source "/home/toybrick/Documents/local_rtsp/CMakeLists.txt" does not match the source "/home/toybrick/local_rtsp/CMakeLists.txt" used to generate cache. Re-run cmake with a different source directory.
是路径不对,然后我修改了路径之后执行又报如下的错误了
toybrick@debian10:~/local_rtsp/build$ cmake ..
-- The C compiler identification is GNU 8.3.0
-- The CXX compiler identification is GNU 8.3.0
-- Check for working C compiler: /bin/cc
CMake Error: Generator: execution of make failed. Make command was: "/bin/gmake" "cmTC_bc0c8/fast"
-- Check for working C compiler: /bin/cc -- broken
CMake Error at /usr/share/cmake-3.13/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/toybrick/local_rtsp/build/CMakeFiles/CMakeTmp
Run Build Command:"/bin/gmake" "cmTC_bc0c8/fast"
No such file or directory
Generator: execution of make failed. Make command was: "/bin/gmake" "cmTC_bc0c8/fast"
CMake will not be able to correctly generate this project.
-- Configuring incomplete, errors occurred!
See also "/home/toybrick/local_rtsp/build/CMakeFiles/CMakeOutput.log".
See also "/home/toybrick/local_rtsp/build/CMakeFiles/CMakeError.log".
|
|