Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created an empty project at Qt-Creator-4.1 / Ubuntu with sequence:
File --> New File or Project --> Application --> Qt Widgets Application --> ... --> Finish

Then, I tried to build it and got "c: command not found"

Did I miss any required steps before it?

What I have tried:

I tried to find answers at Qt forums and googled but in vain.
Posted
Updated 23-Jan-19 13:59pm

This is probably the same problem as you posted an hour ago: How come "no valid kits found"?[^]

Rather than posting a new question to cover exactly the same ground (except of the OS and exact error message) edit your original question and add information to that. Duplicating questions duplicates work, and that annoys people.

Edit your older question, then reply to this and I'll delete this one for you.
 
Share this answer
 
Comments
Stan Huang 17-Jan-19 19:16pm    
You've got a mistake. This one is quite different from the previous one. This one is for the compilation failure in a successfully-built project. The former one is for failure at building a project. They are failure in different stage, not just different in OSs.
The trouble came from that I clicked the Qt-Creator icon at GUI to start it. Starting Qt-Creator in such way didn't set necessary environment variables. I then started it using the below way:
1 . open Terminal
2 . execute $~/qtcreator-4.1.0/bin/qtcreator.sh

, it works then.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900