当前位置:网站首页>Clion configuration of opencv
Clion configuration of opencv
2022-07-04 11:41:00 【Samsara】
OpenCV stay CLion Configuration in
opencv Configure in VS It's relatively simple , But want to be in CLion To configure , Need to be local Manually compile the relevant version opencv, And there must be A little bit CMAKE The basis of .
Manually compile the relevant version opencv
- As a result of official opencv Embedding into... Is not supported CLion among , Therefore, you need to compile it locally , There are two ways to complete this condition :
- One is to download others' compiled opencv file , This method is recommended here , The second method is prone to errors and difficult to solve . Here's an address
- The second is to make use of yourself MINGW and CMAKE Compile it yourself ,MINGW If you can't find a path, you can choose to download one Devc Then use its own MINGW route ,
Devc It's really good to use, haha , Single file compilation is like vscode As convenient as ( Manual funny ),CMAKE Words , You need to download a separate , stay Configuration Interface selection MINGW Then set the source directory to the one you downloaded from the official website opencv Of XXX:\opencv\sources, The target directory can be set to XXX:\opencv\mingw-build
Handwriting CMAKE
- Here is the blogger's CMAKE Give it directly , You can simply write according to this ( I made a fool of myself )
cmake_minimum_required(VERSION 3.15) project(opencv_test) set(CMAKE_CXX_STANDARD 14) add_executable(opencv_test main.cpp) #OpenCV-MinGW-Build set(OpenCV_DIR D:/OpenCV-MinGW-Build-OpenCV-4.5.2-x64) FIND_PACKAGE(OpenCV REQUIRED) include_directories(${OpenCV_INCLUDE_DIRS}) #Project name TARGET_LINK_LIBRARIES(opencv_test ${OpenCV_LIBS})
Get into CLion To configure
- Be sure to pay attention to this step ! Bloggers didn't find it at first CLion Catalog issues , No attempt was successful
- Get into CLion Of Configuration, Select workspace directory , And then put bin Put the catalog in , Here's the picture
边栏推荐
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
- Detailed explanation of classic process synchronization problems
- Customized version of cacti host template
- Summary of Shanghai Jiaotong University postgraduate entrance examination module firewall technology
- LxC shared directory addition and deletion
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 14
- Detailed array expansion analysis --- take you step by step analysis
- VPS installation virtualmin panel
- Using terminal connection in different modes of virtual machine
- [Android reverse] function interception instance (③ refresh CPU cache | ④ process interception function | ⑤ return specific results)
猜你喜欢
2018 meisai modeling summary +latex standard meisai template sharing
os. Path built-in module
Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
Elevator dispatching (pairing project) ②
Post man JSON script version conversion
(August 9, 2021) example exercise of air quality index calculation (I)
OSI seven layer model & unit
Alibaba cloud server connection intranet operation
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
Using terminal connection in different modes of virtual machine
随机推荐
Sys module
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18
2021-11-02
2021-10-20
Digital simulation beauty match preparation -matlab basic operation No. 6
thread
2018 meisai modeling summary +latex standard meisai template sharing
Force buckle 142 Circular linked list II
2020 Summary - Magic year, magic me
QQ one click cookie acquisition
Some summaries of the 21st postgraduate entrance examination 823 of network security major of Shanghai Jiaotong University and ideas on how to prepare for the 22nd postgraduate entrance examination pr
Introduction of network security research direction of Shanghai Jiaotong University
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 14
Games101 Lesson 8 shading 2 Notes
QQ get group link, QR code
template<typename MAP, typename LIST, typename First, typename ... Keytypes > recursive call with indefinite parameters - beauty of Pan China
DDS-YYDS
array_ The contains() function uses
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 23
Alibaba cloud server connection intranet operation