当前位置:网站首页>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

边栏推荐
- DDS-YYDS
- Analysis function in SQL
- Some tips on learning database
- Postman advanced
- C language memory layout
- Simple understanding of string
- LxC shared directory addition and deletion
- 2021-10-20
- Summary of Shanghai Jiaotong University postgraduate entrance examination module -- cryptography
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 17
猜你喜欢

Summary of collection: (to be updated)
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13](/img/29/49da279efed22706545929157788f0.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 21](/img/73/4050a592fdd99bf06e8fd853b157b6.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 21

2020 Summary - Magic year, magic me

2021 annual summary - it seems that I have done everything except studying hard

Alibaba cloud server connection intranet operation
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22](/img/e0/21367eeaeca10c0a2f2aab3a4fa1fb.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22

Detailed explanation of classic process synchronization problems

Decrypt the advantages of low code and unlock efficient application development

Ternsort model integration summary
随机推荐
20 kinds of hardware engineers must be aware of basic components | the latest update to 8.13
(August 9, 2021) example exercise of air quality index calculation (I)
Elevator dispatching (pairing project) ②
Heartbeat启动后无反应
Heartbeat报错 attempted replay attack
Solaris 10网络服务
How to create a new virtual machine
Local MySQL forgot the password modification method (Windows)
Summary of Shanghai Jiaotong University postgraduate entrance examination module -- cryptography
Iptables cause heartbeat brain fissure
R built in data set
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 11
Simple understanding of generics
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 8
Xiaobing · beauty appraisal
Reptile learning winter vacation series (2)
Configure SSH certificate login
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 5
Reptile learning 3 (winter vacation learning)
3W word will help you master the C language as soon as you get started - the latest update is up to 5.22