大家听好了。我尝试在travis-ci中使用cmake和boost1.67来构建我的c++项目。下面是源文件。 在我的linux计算机上,cmake 3.13.4是从源代码安装的,boost-1.67是从源代码安装的,所有的库(静态的和动态的)都在"/usr/local/lib/“目录中,所有的工作都很好。但在travis-ci中,我每次都会看到这样的信息: Unable to find the requested Boost libraries.
Boost version: 1.67.0
Boost include path: /usr/include
Could n
我使用Github作为源码控制工具,并且我想使用CI的travis-ci插件。我没有找到任何这样做的项目。由于travis-ci提供的ubuntu12.04没有安装openCV库,所以我正在安装这些库,但是我在使用CMake编译安装的库时遇到了问题。我非常想看到一个示例项目,如果你知道的话,它是.travis.yml,最好有一个可以在travis ubuntu和windows for dev机器上工作的设置。
我正在学习如何使用Travis CI进行持续集成。我的项目需要使用MPI库,所以我让Travis安装OpenMPI并使用cmake编译代码。这是我的.travis.yml文件
## configure Travis to use the right compiler
dist: trusty
sudo: false # do not need sudo support
language: cpp
# Cacnhing dependencies
cache:
directories:
- openmpi-4.0.2 # build mpi only need to done onec
在切换到CMake和Travis CI构建环境时,我启用了Travis CI上的编译。尽管CMake项目在我的pc上可以正确编译,但Travis退出时返回了2:
In file included from /home/travis/build/Codestones/Proton/source/application.cpp:1:0:
/home/travis/build/Codestones/Proton/source/application.h:3:23: fatal error: glad\glad.h: No such file or directory
#include <gl
我有一个用于travis(.travis.yml)的YAML文件。
language: cpp
compiler:
- gcc
env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "*my secured token for coverity"
ad
我正在使用Cmake和Ctest在Travis CI上测试我的代码。如果我使用cmake在本地测试,我不会得到任何错误,而且我可以进行测试。当通过Travis CI运行测试时,我得到了很多错误,比如下面这样: error: no matching function for call to ‘std::basic_ifstream<char>::basic_ifstream(std::__cxx11::string&)’
ifstream myfile(filename); 文件名是一个字符串。travis是否对我的本地设置运行不同版本的编译器?