当前位置:网站首页>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
边栏推荐
- Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
- Reptile learning 3 (winter vacation learning)
- OSI seven layer reference model
- LxC shared directory permission configuration
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 13
- Heartbeat error attempted replay attack
- [Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 17
- Simple understanding of string
- Using terminal connection in different modes of virtual machine
- Elevator dispatching (pairing project) ①
猜你喜欢
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 7
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 5
2021 annual summary - it seems that I have done everything except studying hard
Detailed explanation of classic process synchronization problems
DVC use case (VI): Data Registry
Summary of Shanghai Jiaotong University postgraduate entrance examination module firewall technology
Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
Summary of Shanghai Jiaotong University postgraduate entrance examination module -- cryptography
Ultimate bug finding method - two points
Introduction to Lichuang EDA
随机推荐
Is Sanli futures safe? How to open a futures account? How to reduce the handling charge of futures at present?
Introduction to canoe automatic test system
[Android reverse] function interception instance (③ refresh CPU cache | ④ process interception function | ⑤ return specific results)
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 9
iptables导致Heartbeat脑裂
LVS+Keepalived实现四层负载及高可用
SQL greatest() function instance detailed example
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 6
Simple understanding of seesion, cookies, tokens
QQ group collection
Summary of Shanghai Jiaotong University postgraduate entrance examination module firewall technology
Realize cross tenant Vnet connection through azure virtual Wan
MBG combat zero basis
Experiment 7. IPv6
Recommend a cool geospatial data visualization tool with low code
Xiaobing · beauty appraisal
2021-08-09
[Yunju entrepreneurial foundation notes] Chapter II entrepreneur test 18
How to create a new virtual machine
OSI model notes