当前位置:网站首页>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 7
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16
- Shift EC20 mode and switch
- OSI seven layer reference model
- 守护进程Xinted和日志记录Syslogd
- QQ one click cookie acquisition
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 5
- Fundamentals of software testing
- Post man JSON script version conversion
- Cacti主机模板之定制版
猜你喜欢

Oracle11g | getting started with database. It's enough to read this 10000 word analysis
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22](/img/e0/21367eeaeca10c0a2f2aab3a4fa1fb.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 22

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

Ultimate bug finding method - two points

Using terminal connection in different modes of virtual machine
![[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16](/img/c3/f3746b161012acc3751b2bd0b8f663.jpg)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 16

Practical dry goods: deploy mini version message queue based on redis6.0

Process communication and thread explanation

Climb Phoenix Mountain on December 19, 2021

Experiment 7. IPv6
随机推荐
Reptile learning winter vacation series (2)
Sys module
Elevator dispatching (pairing project) ③
20 kinds of hardware engineers must be aware of basic components | the latest update to 8.13
Ternsort model integration summary
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 21
2021 annual summary - it seems that I have done everything except studying hard
How to create a new virtual machine
Summary of Shanghai Jiaotong University postgraduate entrance examination module -- cryptography
Introduction of network security research direction of Shanghai Jiaotong University
Foreach (system.out:: println) usage
OSI seven layer reference model
Summary of Shanghai Jiaotong University postgraduate entrance examination module firewall technology
QQ get group link, QR code
Elevator dispatching (pairing project) ④
Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
守护进程Xinted和日志记录Syslogd
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6
Heartbeat启动后无反应
Exceptions and exception handling