linux cmake 编译时 error: Cannot open file /your/path/CMakeDoxyfile.tpl for writing

cmake问题如下:

-- The C compiler identification is GNU 8.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_BUILD_TYPE not specified. Creating Release build
-- Found C inline keyword: inline
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for socket
-- Looking for socket - found
-- Looking for poll
-- Looking for poll - found
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for posix_spawnp in rt
-- Looking for posix_spawnp in rt - found
-- Found OpenSSL: /root/代码/openssl/lib/libcrypto.so (found suitable version "1.0.2u", minimum required is "0.9.8")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE
-- Performing Test HAVE_GNU90
-- Performing Test HAVE_GNU90 - Success
-- Could NOT find POPT (missing: POPT_INCLUDE_DIR POPT_LIBRARY) (found version "")
-- Could NOT find XMLTO (missing: XMLTO_EXECUTABLE)
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found components:  doxygen missing components:  dot
error: Cannot open file /root/代码/rabbitmq-c-master/CMakeDoxyfile.tpl for writing
CMake Error at /usr/share/cmake-3.13/Modules/FindDoxygen.cmake:671 (message):
  Unable to generate Doxyfile template: 1
Call Stack (most recent call first):
  CMakeLists.txt:254 (find_package)


-- Configuring incomplete, errors occurred!
See also "/root/代码/rabbitmq-c-master/CMakeFiles/CMakeOutput.log".
See also "/root/代码/rabbitmq-c-master/CMakeFiles/CMakeError.log".
make: *** 没有指明目标并且找不到 makefile。 停止。
make: *** 没有规则可制作目标“install”。 停止。

解决:不能包含中文路径

你可能感兴趣的:(linux,cmake,c++)