Qt Creator 4.14.1, with Qt 5.12.10. Kits and Cmake issues
-
New user to Qt, trying to just learn and write programs for myself.
Installed Qt Creator 4.14.1 under GPL v3.
After some trial and error, discovered I need a Qt version.
Installed Qt 5.12.10
Still will not open a new project. Issues with Tools>Options>Kits and Cmake
Kits show Desktop but with warning icon.
CMake shows no auto or manual option.
See attached screen shot pictures.
Also noticed https://www.qt.io/product/features#js-6-4 doesn't seem to allow the choice of GPL, Dev Platform = Linux and Target Platforms = Linux/X11. Keeps switching back to Commercial License
Any help greatly appreciated.
OtG -
@OscarTheGrouch said in Qt Creator 4.14.1, with Qt 5.12.10. Kits and Cmake issues:
discovered I need a Qt version.
Installed Qt 5.12.10
Still will not open a new project. Issues with Tools>Options>Kits and Cmake
Kits show Desktop but with warning icon.You also need a C++ compiler. Install
g++
from your Linux distro's preferred repository.CMake shows no auto or manual option.
Do you have existing experience with CMake? If not, you can ignore this for now and just use
qmake
which was installed with your Qt 5.12.10.If you want to use CMake, install it from your Linux distro's preferred repository.
Also noticed https://www.qt.io/product/features#js-6-4 doesn't seem to allow the choice of GPL, Dev Platform = Linux and Target Platforms = Linux/X11. Keeps switching back to Commercial License
Unfortunately, that page doesn't seem to be very well-designed: https://forum.qt.io/topic/123280/qt-features-page-working-correctly
What would you like to find out? Perhaps someone here could answer your questions.
-
@JKSH said in Qt Creator 4.14.1, with Qt 5.12.10. Kits and Cmake issues:
You also need a C++ compiler. Install
g++
from your Linux distro's preferred repository.OK, this helped with the Kits issue and Compiler now shows C++ support. Thanks!!
Do you have existing experience with CMake? If not, you can ignore this for now and just use
qmake
which was installed with your Qt 5.12.10Will do.
What would you like to find out? Perhaps someone here could answer your questions.
Just wanted to know if I could make Linux applications under GPL with Linux Dev Platform.
New project complies but doesn't run, error is
"cannot find -lGL"
I've seen this before when I tried to get Qt working (changed computers)
So I'm not sure how to get this fixed. I think it's something to do with display??
Any help, again appreciated,
OtG -
@OscarTheGrouch said in Qt Creator 4.14.1, with Qt 5.12.10. Kits and Cmake issues:
Just wanted to know if I could make Linux applications under GPL with Linux Dev Platform.
The answer is a resounding "Yes".
All Qt 5.12 modules are dual-licensed, available under both a commercial license and a GPLv3 license.
Many of them are even triple-licensed: Commercial, GPLv3, and LGPLv3.
New project complies but doesn't run, error is
"cannot find -lGL"
I've seen this before when I tried to get Qt working (changed computers)
So I'm not sure how to get this fixed. I think it's something to do with display??This is a common question, e.g. https://forum.qt.io/topic/94119/qt-error-cannot-find-lgl
Basically,
-l
shows the Linker trying to find a library. In this case, the linker can't find theGL
(OpenGL development) libraries, so it's time to install more stuff ;-) -
@JKSH said in Qt Creator 4.14.1, with Qt 5.12.10. Kits and Cmake issues:
@OscarTheGrouch said in Qt Creator 4.14.1, with Qt 5.12.10. Kits and Cmake issues:
Just wanted to know if I could make Linux applications under GPL with Linux Dev Platform.
The answer is a resounding "Yes".
All Qt 5.12 modules are dual-licensed, available under both a commercial license and a GPLv3 license.
Many of them are even triple-licensed: Commercial, GPLv3, and LGPLv3.
New project complies but doesn't run, error is
"cannot find -lGL"
I've seen this before when I tried to get Qt working (changed computers)
So I'm not sure how to get this fixed. I think it's something to do with display??This is a common question, e.g. https://forum.qt.io/topic/94119/qt-error-cannot-find-lgl
Basically,
-l
shows the Linker trying to find a library. In this case, the linker can't find theGL
(OpenGL development) libraries, so it's time to install more stuff ;-)OK, thanks for the info. Can you tell me how to do that (or point me in the right direction)?
OtG -
My Graphics info ..
Graphics: Device-1: Intel vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0
chip ID: 8086:9bc8
Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa
compositor: marco resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CML GT2) v: 4.6 Mesa 20.2.6
direct render: YesI assume I must install something ...
Any help appreciated,
OtG -
@OscarTheGrouch said in Qt Creator 4.14.1, with Qt 5.12.10. Kits and Cmake issues:
Can you tell me how to do that (or point me in the right direction)?
Sure. See @mrjj's instructions or links at https://forum.qt.io/topic/94119/qt-error-cannot-find-lgl
-
@JKSH said in Qt Creator 4.14.1, with Qt 5.12.10. Kits and Cmake issues:
@OscarTheGrouch said in Qt Creator 4.14.1, with Qt 5.12.10. Kits and Cmake issues:
Can you tell me how to do that (or point me in the right direction)?
Sure. See @mrjj's instructions or links at https://forum.qt.io/topic/94119/qt-error-cannot-find-lgl
Found this from my earlier post ..
mrjj Lifetime Qt Champion Dec 13, 2020, 11:08 AM
Hi
Normally its something like
sudo apt install mesa-common-dev libglu1-mesa-devThis worked and I can run a new project now ..
-
@OscarTheGrouch said in [Qt Creator 4.14.1, with Qt 5.12.10. Kits and Cmake issues]
This worked and I can run a new project now ..
Happy coding!
Please mark the thread as "Solved"