为什么我不能构建opencv WITH_QT?
Why I can't build opencv WITH_QT?
我已经在Windows 7 x64上安装了Qt5.12。以及CMake 3.16。
我想构建OpenCV-4.1.2。因此,在cmake中,我检查了WITH_QT
,并将QT5_DIR
指定为:C:\Qt\5.12.6
,然后单击Configure。但我得到了这个错误:
CMake Error at cmake/OpenCVFindLibsGUI.cmake:18 (find_package):
Could not find a package configuration file provided by "Qt5" with any of
the following names:
Qt5Config.cmake
qt5-config.cmake
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
to a directory containing one of the above files. If "Qt5" provides a
separate development package or SDK, be sure it has been installed.
Call Stack (most recent call first):
CMakeLists.txt:669 (include)"
我终于明白了:我在Qt目录中搜索了Qt5Config.cmake
,并在:"C:\Qt\5.12.6\msvc2017_64\lib\cmake\Qt5"中找到了它。
- 现在我在CMake中指定了这个目录,然后单击configure。一切都很好。谢谢大家
相关文章:
- Qt with WinAPI MouseProc
- 如何使用Qt QSqlDriver::subscribeToNotification with SQLite3?
- Using QT .qrc File with Visual Studio Proj...?
- Qt with Dlib and CUDA
- Visual Studio with qt 无法编译 gui 类
- LNK2019 With Qt and Gmock
- MySQL with Qt issue
- "Static polymorphism with Qt signal/slot: What is wrong?"
- Build Tesseract OCR with Qt 5.8
- C++/Qt memcpy crash with QSharedMemory
- Qt Application with QTabWidget, QGraphicsScene and QPushButt
- Qt with Visual Studio macro issue
- 断言失败 (size.width>0 && size.height>0) Qt with OpenCV
- Qt with Lua |放置 lua 文件的位置
- Qt with OpenCV - 下载哪一个
- Qt with Eclipse CDT Juno
- GUI C++ Qt with Visual Studio 2010
- <double> QList in QT with Visual Studio add in
- Qt with Visual Studio 2010
- Objective-C in Qt with Mavericks