Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CmakeLists error while compiling for Qt5.
Qt 6.11 is out! See what's new in the release blog

CmakeLists error while compiling for Qt5.

Scheduled Pinned Locked Moved Unsolved General and Desktop
cmakeqt 5.4.2qt4
2 Posts 2 Posters 4.0k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MarKSM Offline
    MarKSM Offline
    MarKS
    wrote on last edited by MarKS
    #1

    Hello,

    I am trying to compile FindObject library using Cmake GUI 3.2.2.
    I have Qt5.4.2 but the CmakeLists file in the folder is for Qt4.
    When i try to build cmakelists file using Cmake, i receive these errors:

    CMake Error at src/CMakeLists.txt:41 (QT4_WRAP_UI):
    Unknown CMake command "QT4_WRAP_UI".

    CMake Error at src/CMakeLists.txt:44 (QT4_WRAP_CPP):
    Unknown CMake command "QT4_WRAP_CPP".

    How do i solve this error? I need some help urgently. Thanks.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You have to port the CMakeLists.txt for Qt 5. You have the CMake Manual in Qt's documentation to help you get started.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved