Not Able to debug or run or do anything with qt creator(No Run Button)
-
this is my first qt creator project ever made in my new operating system(ubuntu linux) and as you can see, the run buttons are disabled and not clickable, and the error message at the bottom really doesn't allow me to do anything.
i tried to delete this project and recreate other project but doesn't work. is there anything wrong done in the installation or do i need to reinstall qt creator or do i miss anything?and ye note: "the files in the left side not organized like usual, they usually be organized in a header file folder and source files folder, but this time all in one, i got a warning from the beginning saying that the files not organized well, so they might not work as expected '
-
as you can see, the application is not understanding the QApplication and QtWidgets at line 3 and 4,
which means i dont have qt installed ?? 🤔 -
as you can see, the application is not understanding the QApplication and QtWidgets at line 3 and 4,
which means i dont have qt installed ?? 🤔@Yousef-Alaa-Hussain
Can you PLEASE not create new threads when you are already asking and being answered in an existing thread? It wastes the time of people like myself trying to help you. I posted what you need to know and do in that thread. -
Notice the exclamation mark in your project and the
<File System>
entry, this means that your project was not Configured by CMake successfully.You need to paste the content of the General Messages tab, or click on the Issues tab. You have 5 issues there.
How did you install Qt and Qt Creator? Via Ubuntu package manager? If so ... you are most probably missing Qt development packages.
Make sure you have all build tools installed:
$ sudo apt install build-essential cmake ninja-build git
and then the Qt SDK
$ sudo apt install qt6-base-dev qt6-base-private-dev qt6-declarative-dev qt6-declarative-private-dev qt6-tools-dev qt6-tools-private-dev qt6-scxml-dev qt6-documentation-tools libqt6core5compat6-dev qt6-tools-dev-tools qt6-l10n-tools qt6-shader-baker libqt6shadertools6-dev qt6-quick3d-dev qt6-quick3d-dev-tools libqt6svg6-dev libqt6quicktimeline6-dev libqt6serialport6-dev
Note that I took the list of packages from https://wiki.qt.io/Building_Qt_Creator_from_Git_on_Ubuntu_22.04, you might need to install more packages depending on your project's needs.
-
Notice the exclamation mark in your project and the
<File System>
entry, this means that your project was not Configured by CMake successfully.You need to paste the content of the General Messages tab, or click on the Issues tab. You have 5 issues there.
How did you install Qt and Qt Creator? Via Ubuntu package manager? If so ... you are most probably missing Qt development packages.
Make sure you have all build tools installed:
$ sudo apt install build-essential cmake ninja-build git
and then the Qt SDK
$ sudo apt install qt6-base-dev qt6-base-private-dev qt6-declarative-dev qt6-declarative-private-dev qt6-tools-dev qt6-tools-private-dev qt6-scxml-dev qt6-documentation-tools libqt6core5compat6-dev qt6-tools-dev-tools qt6-l10n-tools qt6-shader-baker libqt6shadertools6-dev qt6-quick3d-dev qt6-quick3d-dev-tools libqt6svg6-dev libqt6quicktimeline6-dev libqt6serialport6-dev
Note that I took the list of packages from https://wiki.qt.io/Building_Qt_Creator_from_Git_on_Ubuntu_22.04, you might need to install more packages depending on your project's needs.
@cristian-adam
thanks for answering.
i installed qt maintenence tool from qt offical website, and then run the installer and downloaded qt latest version along with qt designer, after downloading, i made a project and as you can see i am not able to run the project and there is so much of issues.
but now after doing what you did, it worked!
thank you so much for helping, really thank you so much, i didnt know what to do -
@Yousef-Alaa-Hussain
Can you PLEASE not create new threads when you are already asking and being answered in an existing thread? It wastes the time of people like myself trying to help you. I posted what you need to know and do in that thread.@JonB I am sorry if I did something was not supposed to happen, but I am new to here, and I am not quite familiar with the rules and what should I do
the problems happened at the same time, that's why I posted them directly after each others -