Wednesday, June 12, 2019

vcpkg opencv install

./vcpkg install opencv[core,cuda]:x64-windows
The following packages will be built and installed:
    opencv[core,cuda]:x64-windows
Starting package 1/1: opencv:x64-windows
Building package opencv[core,cuda]:x64-windows...
-- Downloading https://github.com/opencv/opencv/archive/3.4.3.tar.gz...
-- Extracting source C:/vcpkg/downloads/opencv-opencv-3.4.3.tar.gz
-- Applying patch C:/vcpkg/ports/opencv/0001-winrt-fixes.patch
-- Applying patch C:/vcpkg/ports/opencv/0002-install-options.patch
-- Applying patch C:/vcpkg/ports/opencv/0003-disable-downloading.patch
-- Applying patch C:/vcpkg/ports/opencv/0004-use-find-package-required.patch
-- Applying patch C:/vcpkg/ports/opencv/0005-remove-custom-protobuf-find-package.patch
-- Using source at C:/vcpkg/buildtrees/opencv/src/3.4.3-701a6234df
-- Configuring x64-windows
-- Building x64-windows-dbg
-- Building x64-windows-rel
-- Performing post-build validation
-- Performing post-build validation done
Building package opencv[core,cuda]:x64-windows... done
Installing package opencv[core,cuda]:x64-windows...
Installing package opencv[core,cuda]:x64-windows... done
Elapsed time for package opencv:x64-windows: 2.544 h

Total elapsed time: 2.544 h

The package opencv provides CMake integration:

    find_package(OpenCV REQUIRED)
    target_include_directories(main PRIVATE ${OpenCV_INCLUDE_DIRS})
    target_link_libraries(main PRIVATE ${OpenCV_LIBS})

No comments:

Post a Comment