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.

CmakeLists error while compiling for Qt5.

Scheduled Pinned Locked Moved Unsolved General and Desktop
cmakeqt 5.4.2qt4
2 Posts 2 Posters 3.5k Views
  • 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.
  • M Offline
    M Offline
    MarKS
    wrote on 11 Dec 2015, 21:40 last edited by MarKS 12 Nov 2015, 22:56
    #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
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 11 Dec 2015, 23:19 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

      1/2

      11 Dec 2015, 21:40

      • Login

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