CmakeLists error while compiling for Qt5.



  • 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.


  • Lifetime Qt Champion

    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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.