当前位置:网站首页>Edit the project steps to run QT and opencv in the clion
Edit the project steps to run QT and opencv in the clion
2022-06-11 19:48:00 【Sanfeng grocery store】
Must look at other people's information
Set the compiler to msvc Or is it mingw
The compiler should correspond to the library ,qt Kuhe opencv Library and the whole project toolchain All should be the same . So if it's all msvc, that cmake in ,qt You may need to choose msvc The path of (qt Automatically generated by default cmake It may not be necessary ),opencv It's also msvc The path of .
clion Of toolcchain To correspond ,msvc yes default.nmake.exe, cl.exe

Process finished with exit code -1073741515 (0xC0000135) Do you have any questions 139
The background of this problem is build normal , But the runtime will report this error . This is because clion Can't find qt Of dll Dynamic library .
Same question
Add environment variables and method 2 to method 1 in this post , Copy dll Can solve problems .( The essential reason is that the dynamic library needs to be found by the code , So you need to add it to the environment variable . Or put it in the running directory of the program )
Be careful : To match the code selected toolchain Corresponding , The choice is msvc The added directory is {QtVersion}\msvc2017_64\bin
If you cannot double-click to open ui file
External commands are a method .
Used and wanted to use xml Mode on , Just press and drag to the editing area .
Open this with an external command ui File can , A few more steps .
external tools
If you still want to double-click ui file , let qt Turn on automatically , What shall I do? ?
To get rid of clion Associations to files . So this file is a ? Unknown file for , then clion Will be based on ui suffix , Go to the system to find the default application that can open her . That is to say qtcreator.
The specific operation is :
After deleting , Right click on this ui file , choice Associate with File Type...
Then choose :Open matching files in associated application option
In the post ,vladislav This method is mentioned
边栏推荐
- 计算926的9260次方里的字符串里有多少个926
- 无监督图像分类《SCAN:Learning to Classify Images without》代码分析笔记(1):simclr
- Offline assignment template and requirements of the course design of real estate development and operation in the 21st autumn of Dagong [standard answer]
- 30讲 线性代数第二讲 矩阵
- WinCC flexible 2008项目移植到博途WinCC的具体方法
- Qubicle notes: self set shortcut keys (attached with Lao Wang's self set shortcut key file)
- Off line operation of situation and policy (version) of Dayong in autumn 21 [standard answer]
- 【C语言刷题——Leetcode10道简单题】
- In 2021, the global adult diaper revenue was about $11560million, which is expected to reach $15440million in 2028. From 2022 to 2028, the CAGR was 4.2%
- C deep copy
猜你喜欢

Pyqt5 tips - button vertical display method, QT designer sets button vertical display.

WR | 西湖大学鞠峰组微纳塑料污染对人工湿地菌群与脱氮功能的影响

Qubicle notes: Hello voxel

Operator new and placement new

Flutter--Button浅谈
[help] how can wechat official account articles be opened in an external browser to display the selected messages below?

Hanging memory recursive dynamic programming (with example explanation POJ 1163)

YOLOv3 Pytorch代码及原理分析(一):跑通代码

C deep copy

CMU 15-445 数据库课程第五课文字版 - 缓冲池
随机推荐
[laravel series 7.5] event system
postman配置中文
【C语言刷题——Leetcode10道简单题】
Babbitt yuancosmos daily must read: the secondary market of digital collections is full of chaos. After 00, it will become a new leek. Supervision is imminent
基于飞桨搭建的多模态学习工具包PaddleMM
This article introduces you to the infrastructure of sofaregistry
Raki's notes on reading paper: learning fast, learning slow: a general continuous learning method
Leetcode 1992. 找到所有的农场组(可以,一次过)
Anaconda安装、Jupyter Notebook默认启动路径修改及Nbextensions插件安装
Unified exception handling
Raki's notes on reading paper: memory replace with data compression for continuous learning
Tensorflow---TFRecord文件的创建与读取
【Bug解决】UnpicklingError: A load persistent id instruction was encountered, but no persistent_load.
Yolov3 pytoch code and principle analysis (II): network structure and loss calculation
09 MySQL lock
09-MySQL锁
Usage of duck beak wire stripper
How are functional components different from class components
VS2010 cannot open when linking sql2008 database
WR | effect of micro nano plastic pollution in Jufeng formation of West Lake University on microbial flora and nitrogen removal function of Constructed Wetland