代码拉取完成,页面将自动刷新
language: cpp
os:
- linux
- osx
- windows
dist:
- bionic
osx_image:
- xcode11.3
env:
- OPENCV_BRANCH=master
- OPENCV_BRANCH=3.4
cache:
directories:
- ${TRAVIS_BUILD_DIR}/opencv
before_script:
- rmdir opencv || true
- if [ ! -d opencv ]; then git clone --single-branch --branch ${OPENCV_BRANCH} https://github.com/opencv/opencv.git; fi
- pushd opencv
- mkdir -p build
- cd build
- cmake .. -DBUILD_LIST=core,imgproc,imgcodecs,calib3d,highgui -DBUILD_EXAMPLES=OFF -DCMAKE_INSTALL_PREFIX=../install
- cmake --build . --parallel 8 --target install --config Release
- popd
script:
- mkdir -p build
- cd build
- export OPENCV_CONFIG=$(dirname $(find ${TRAVIS_BUILD_DIR}/opencv/install -name OpenCVConfig.cmake | head -n1))
- cmake .. -DOpenCV_DIR=${OPENCV_CONFIG}
- cmake --build . --config Release
- export DEMO=$(find . -type f \( -name demo.exe -o -name demo \) | head -n1)
- export PATH="$PATH:${TRAVIS_BUILD_DIR}/opencv/install/x86/vc15/bin"
- echo | $DEMO
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。