有个项目。 我想做CI。 我选择了特拉维斯。 但我遇到了一些问题:
cmake-build.
不工作。 他写到没有makefile。 虽然确实如此。cmake--构建。 --TargetPackage
,这样的团队试图获得dep包。 但是由于某种原因,它需要对log4cplus的依赖。也许有人有什么想法?
Run CPack packaging tool... CPack: Create package using STGZ CPack:
Install projects CPack: - Run preinstall target for: AppChat CPack: -
Install project: AppChat [] CMake Error at
/home/focus/Workspace/Development/AppChat/build/lib/libbacktrace/cmake_install.cmake:84
(file): file INSTALL cannot find
"/home/focus/Workspace/Development/AppChat/cmake/libbacktraceConfig.cmake":
No such file or directory. Call Stack (most recent call first):
/home/focus/Workspace/Development/AppChat/build/cmake_install.cmake:52
(include)
CPack Error: Error when generating package: log4cplus Makefile:170:
recipe for target 'package' failed make: *** [package] Error 1
我的tavis文件
我的cmake文件
项目
您得到错误消息make:***指定的目标没有,找不到makefile。 停止。
是因为cmake..
步骤已经失败,所以cmake不创建Makefile。 cmake步骤的错误消息就在这里,其中cmake提到它找不到gtest。 根据https://david-grs.github.io/cpp-clang-travis-cmake-gtest-coveralls-appveyor的文章,从包repo中安装gtest将会失败。 正如这里所建议的,以及我使用它的方式,是将GTest作为一个子模块包含。