Solved qt creator open just .pro file
-
I just installed Qt 5.11.1 on Linux and Windows machine. I created a sample project and in window that show open projects the only file that was shown is .pro file. This file has info about .css, .h, .ui files but doesn't shown them inside Qt Creator, if i open them manually just say it doesn't belong in a project. What to do?
-
Hi and welcome to the forums
What does the little yellow triangle say if u hover mouse over it ?
Also, what Qt version did you install ?
(mingw or visual studio )Also if you choose qmake in Build menu
does it list anything in Compiler output ?
-
Version of installed Qt is 5.11.1. Problem is for now just on Linux. I use this:
Compiler output is:
Little yellow triangle says "No kits are enabled for this project. Enable kits in 'Project' mode".
I use Ubuntu 18.04. I had the same problem with previous version of Ubuntu there I tried to manually install g++ with "apt-get install g++". That installed it but it started another problem because program didn't know which g++ to use. Then I uninstalled it and problem with g++ not found appeared again.
-
@mv-whw
Hmm, and
sudo apt install build-essential
does not work ? -
that worked, thanks.
But I found a new issue: i can't build project, it's all grayed. It says unconfigured kit -
@mv-whw
Ah. maybe a kit was not selected if it was existing project.
Delete .pro.user file (in project folder) and open again.
Should allow u to select compiler. -
i deleted .pro.user file and reopened project it opened this:
and when I click on options it's like:
and right now I don't know what to do. I created new project and still the same.
-
@mv-whw
What do you have under compilers ?
also it talks about android kit, i assume its not that you are setting up
but for Desktop ? -
under compilers is this:
right now I don't need android compilers because I don't know much jet of QML/C++ and I plan to learning in stages: first for desktop and then try for android.
-
@mv-whw
Oh that was many
Can you check if they point to the right places ?
-
all of them point to right places.
-
@mv-whw
Hmm thats really odd then.
Can you try
sudo apt-get install qt5-default -
it's still the same
-
@mv-whw
And you restarted Creator and try creating a new project ? -
I restarted Qt Creator even PC and it's still the same. says no kits been enabled for this project (completely new project).
-
@mv-whw
Hmm. im out of guess then.
Normally it picks up right kits.
Does it have entries in the Desktop kits ?
-
I figured out. Thanks I had to enabled it in Configure Project under "Build and Run" and add info about C++ compiler under "Kits"
-
@mv-whw
\o/
Should have started with kits :)
Happy programming -
@mv-whw can you please demonstrate the updates you did at the compiler side and build and run side actually I am having the same problem installing qt on ubuntu I was desperately trying with different versions
-
Actually, the Ubuntu version I was using did not support the qt version. with Ubuntu 18.04.1 LTS and qt 5.11.0 using qt-unified-Linux-x64-3.0.5-online.run it did work I just needed as well to install a missing library using the following command on the terminal sudo apt-get install libglu1-mesa-dev
good luck!!