Important: Please read the Qt Code of Conduct -

[Solved] QtCreator and Cmake

  • Hello folks,

    I've been already able to compile Amarok using cmake from the command line.

    Now i've tried to open the project using QT Creator. Right when i open it, it prompts for running cmake (asks for the right arguments).

    But then i get the error:

    @CMake Error at /usr/share/kde4/apps/cmake/modules/FindQt4.cmake:875 (MESSAGE):
    Could NOT find QtCore. Check
    /home/mpaiva/amarok/amarok-2.7.0-build/CMakeFiles/CMakeError.log for more
    Call Stack (most recent call first):
    /usr/share/kde4/apps/cmake/modules/FindKDE4Internal.cmake:420 (find_package)
    /usr/share/cmake-2.8/Modules/FindKDE4.cmake:95 (FIND_PACKAGE)
    CMakeLists.txt:89 (find_package)

    It's weird because I am able to run cmake from the shell.

    I'm on ubuntu 12.04.


  • Changing QTVersion (Options > Build & Run > Kits) to 4.8.1 (instead of 5.0.1) solved the issue.

Log in to reply