Error in OpenCV configuration for Qt Creator

后端 未结 2 1706
眼角桃花
眼角桃花 2021-01-03 09:34

I followed these instructions in the configuration of OpenCV SDK for using it in Qt Creator IDE, but I couldn\'t conclude point 6.5, due to configuration errors in Cmake-GUI

相关标签:
2条回答
  • 2021-01-03 09:44

    You have to specify the location of Qt manually by passing it as an argument for QT5Core_DIR.

    0 讨论(0)
  • 2021-01-03 09:53

    You just need to indicate CMake the correct paths to each one. Click oh the path to browse and set each one individually:

    • QT_QMAKE_EXECUTABLE; For this one, you need to search inside the Qt installation folder for the /bin directory. On it, you' ll find the qmake.exe. In my case it was C:/Qt/5.3/winrt_x64/bin/qmake.exe

      All the following ones are in the Qt's /lib/cmake directory. In my case: C:/Qt/5.3/winrt_x64/lib/cmake :

    • Qt5Concurrent_DIR;
      C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Concurrent

    • QT5Core_DIR;
      C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Core

    • QT5Gui_DIR;
      C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Gui

    • QT5Test_DIR;
      C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Test

    • QT5Widgets_DIR.
      C:/Qt/5.3/winrt_x64/lib/cmake/Qt5Widgets

    Then click generate. It' ll show a new error and ask you for the QT5OpenGL_DIR. Just as before, show CMake the correct directory. In my case: C:/Qt/5.3/winrt_x64/lib/cmake/Qt5OpenGL. Finally, click Configure again, and then Generate, and now you're done creating the build files.

    0 讨论(0)
提交回复
热议问题