当前位置:网站首页>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 14
- How to judge the advantages and disadvantages of low code products in the market?
- LxC shared directory addition and deletion
- Practical dry goods: deploy mini version message queue based on redis6.0
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
- Exceptions and exception handling
- How to create a new virtual machine
- Heartbeat启动后无反应
- Configure SSH certificate login
- Daemon xinted and logging syslogd
猜你喜欢
Elevator dispatching (pairing project) ③
Ternsort model integration summary
Elevator dispatching (pairing project) ④
2020 Summary - Magic year, magic me
netstat
Ultimate bug finding method - two points
Reptile learning winter vacation series (2)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 11
Force buckle 142 Circular linked list II
Application of slice
随机推荐
Usage of with as
Entitas learning [iv] other common knowledge points
Elevator dispatching (pairing project) ③
Replace() function
Games101 Lesson 8 shading 2 Notes
Summary of Shanghai Jiaotong University postgraduate entrance examination module firewall technology
Common built-in modules
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 8
QQ get group member operation time
Solaris 10网络服务
JD home programmers delete databases and run away. Talk about binlog, the killer of MySQL data backup
Detailed array expansion analysis --- take you step by step analysis
QQ one click cookie acquisition
SSH原理和公钥认证
QQ group administrators
Btrace tells you how to debug online without restarting the JVM
VPS installation virtualmin panel
LxC shared directory addition and deletion
(2021-08-20) web crawler learning 2
Force buckle 142 Circular linked list II