Solved GCC Desktop Kit yellow mark on Linux
-
@jsulm
Yes, I uploaded it here: https://www.dropbox.com/s/xuji3ghpbvsy5u8/DialogTest.7z?dl=0 -
@qcoderpro I can build it on Linux without any issues.
Did you delete the DialogTest.pro.user file after copying to Linux? -
@jsulm
yes.
Now how to recover it or anything to fix the issue please? -
@qcoderpro On which file system is the project located?
Do you have any old build artefacts in the project or build folder? -
The project is made and working properly on Windows. Now what should I do to test it on Linux?
I transferred the project to Linux:
Now I open the IDE (Qt Creator) and open the .pro file. Then I configure the project. But there is only the .pro and main.cpp files on the list!
So I add DialodTest.cpp and DialogTest.h files to the project.
And then run it.
And suddenly all those errors come up.The problem is either with my Qt or Linux! But how to know and fix it?
-
@qcoderpro There is nothing special to do.
I downloaded your archive, extracted it, deleted DialogTest.pro.user file, open the pro file in QtCreator and built. That's it.
So, again: did you delete DialogTest.pro.user before opening project in QtCreator?I guess you now added the files twice to the pro file? That would explain the errors you get...
-
@qcoderpro
start again from scratch. QtCreator does not show the project tree when your compiler setup is messed up. So when you added the files to the project file you added them twice (as @jsulm suggested)- Close QtCreator
- Delete the project
- Delete the build folder
- Copy&Extract the project form windows over
- delete the *.pro.user file
- open the .pro file with QtCreator
- Select the correct& working compiler configuration
- Build the project
-
I added the files "after" configuring the compiler. And now I have not added the files and the IDE doesn't show them either. It's only the .pro and main.cpp. Yet I run it and now I get this error.
I created an empty project "Test_1" and the IDE showed the same errors as above for this one too, so probably it's the source of the issue.
-
@qcoderpro it looks like your development machine is missing some OpenGL dev libraries. See this post just in case
-
@qcoderpro Take a look at https://doc.qt.io/qt-5/linux.html and install libgl1-mesa-dev package as shown there
-
Thanks so much. Solved.