Some promblem with qmake



  • Project MESSAGE: Qt version 5.0.1
    Project MESSAGE: Linux build
    Project MESSAGE: Release flavor
    Project MESSAGE: BASEDIR /home/qt/directory/qgroundcontrol DESTDIR /home/qt/directory/build-qgroundcontrol-Desktop-Release/release TARGET qgroundcontrol
    /home/qt/directory/qgroundcontrol/QGCExternalLibs.pri:369: Extra characters after test expression.
    Project ERROR: Unknown module(s) in QT: declarative webkit phonon svg
    02:26:08: The process "/usr/bin/qmake" exited with code 3.
    Error while building/deploying project qgroundcontrol (kit: Desktop)
    When executing step 'qmake'

    can some give an idea. what is the problem?


  • Moderators

    I think your project was written for Qt4, not Qt5.



  • what should I do to fix it ?


  • Moderators

    If you have a Qt4 project, you have two options. You can check this in several places of the original project. Typically moc_, uic_ data files have at the start some comments indicating the version.

    First option is to "convert everything from Qt4 to Qt5,":http://qt-project.org/wiki/Qt_4_to_Qt_5_migration if this is the case.

    Second option to try to compile and link with Qt4. On the download page a little further you find the download links for Qt4.8.5 which can be installed in parallel to Qt 5.0.1 AFAIK. You can stay with the same Qt creator version, because it is capable to handle different Qt lib versions in parallel.


Log in to reply
 

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