Qtcreator complains about missing cmake configuration

Bug #1646003 reported by Nekhelesh Ramananthan
30
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Ubuntu SDK IDE
Confirmed
Undecided
Unassigned

Bug Description

Unable to build and run applications on any platform (desktop-amd64, armhf) as Qtcreator complains about missing cmake configuration. I have attached screenshots below which highlights the issue.

In the cmake.png file, I can confirm that the cmake soft links are present in the location. I am also able to run cmake from within the lxd containers themselves. However qtcreator is unable to do so.

Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :
description: updated
Changed in ubuntu-sdk-ide:
status: New → Confirmed
Revision history for this message
zub (zub-linux) wrote :

In the attached screenshots I don't see the actual error. Anyway I do see a behaviour that sounds to me like to be the same issue.

I get an error if I touch CMakeLists.txt (even if I make no actual change there) and then try to build the project. I see:

:-1: error: Qt Creator needs a CMake Tool set up to build. Configure a CMake Tool in the kit options.

displayed in the Issues tab and

22:47:21: Configuration is faulty. Check the Issues view for details.
Error while building/deploying project Test3 (kit: UbuntuSDK for desktop (GCC amd64-ubuntu-sdk-15.04))
When executing step "Make"

in the Compile Output tab.

It's also impossible to run CMake via Build/Run CMake - it seems to do nothing except printing this to stdout (if Ubuntu SDK IDE is started from a terminal):

SOFT ASSERT: "tool && tool->isValid()" in file /build/ubuntu-sdk-ide-ukgs_u/ubuntu-sdk-ide-4.1.0~168+201611161046~ubuntu16.10.1/dist/qtcreator/src/plugins/cmakeprojectmanager/builddirmanager.cpp, line 398

It's possible to reproduce like this:
1) start Ubuntu SDK IDE
2) create a new project, use QML App with C++ plugin (cmake), pick any name and accept the default values for everything
3) notice that CMake was successfully run after the project was created
4) open CMakeLists.txt in the IDE, add and remove a space (make no change, just allow the file to be saved), save it
5) choose Build/Build All

expected: CMake is run, then the build is started
observed: CMake is not run, IDE displays errors

Restarting Ubuntu SDK IDE, opening the same project, and choosing build or running CMake then passes OK. But the issue basically means one has to restart the IDE after each CMake change.

Revision history for this message
zub (zub-linux) wrote :

An interesting observation: The bug does not occur if I edit the CMakeLists.txt file outside of the IDE. Strange.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.