Qt cannot build and run "Boxes" example
-
No, I have used "Desktop Qt 5.12.10 MinGW 64-bit" kit
Hi
Can you run any of the other included examples ? (not openGL)If you use mingw kit and it asks for visual studio cl.exe then something is wrong with the setup so
i wonder if it works at all ?
(Not talking about boxes - just a hello world program ) -
@mrjj ,
Yes, I can run other examples even those tagged by "OpenGL". However, none of those examples haveQt += OpenGLin their pro file. I think the problem is related to the Qt OpenGL.
-
@mrjj ,
Yes, I can run other examples even those tagged by "OpenGL". However, none of those examples haveQt += OpenGLin their pro file. I think the problem is related to the Qt OpenGL.
Hi
ok so so other examples works.Yes then something is up when you try to use that module.
I assume you on a full PC Desktop device since you also talk Visual Studio.
SO bascially it seems it thinks you dont have full stack openGL.
-
Hi,
I think so. How can I get full stack OpenGL on Qt? -
Hi,
I think so. How can I get full stack OpenGL on Qt?Hi. You should have that on Desktop PC.
Can you run games etc on it ?
What is the graphics card `?
-
@mrjj
Hi,
I have an HP laptop with a Radeon Graphic card. I can run games and also I have tested OpenGL in other platforms such as VS2019 and even Python OpenGL. It works perfectly. -
@mrjj
Hi,
I have an HP laptop with a Radeon Graphic card. I can run games and also I have tested OpenGL in other platforms such as VS2019 and even Python OpenGL. It works perfectly.Ok. then the setup must be messed up somehow.
Did you mean to install ALL the Qt packages for both mingw and visual studio and ARM and UWP etc?
-
I don't remember exactly. But I think I installed MinGW and UWP and Qt hs automatically recognized the VS ones from visual studio.
-
I don't remember exactly. But I think I installed MinGW and UWP and Qt hs automatically recognized the VS ones from visual studio.
Ok but do you need all of them ?
Its harder to find out what is wrong with so many kits etc.Also, it should have worked out of the box with no issues so Im not sure what could be up but the error suggests it thinks
its not Desktop.Also when you select mingw it should not talk about cl.exe etc so
Im not sure the state of your installation.If you have the visual studio already installed from MICROSOFT then maybe try uninstall ALL Qt
and then ONLY install the Qt Visual Studio version.
Not all of it.
Its important to understand that the Qt installer DOES NOT have the compiler included.
Its a manual install and also the debugger. -
@mrjj
Thank you for your instruction. The reason I chose all kits to get installed on my machine was that I did not know which kit includes OpenGL! So, I tried all of them.I'm going to do clean uninstallation of Qt and install it again.
Just to ensure: I should just pick MSVC 2015 64 bit to use OpenGL (as you have shown in the picture)? My project is about physics-based simulation and consists of 3D visualisation, a lot of mathematics (I need Eigen for example) and machine learning. So, If I need to check other options let me know.
My environment is:
Windows 10
I already have Installed VS2019Thanks!
-
@mrjj
Thank you for your instruction. The reason I chose all kits to get installed on my machine was that I did not know which kit includes OpenGL! So, I tried all of them.I'm going to do clean uninstallation of Qt and install it again.
Just to ensure: I should just pick MSVC 2015 64 bit to use OpenGL (as you have shown in the picture)? My project is about physics-based simulation and consists of 3D visualisation, a lot of mathematics (I need Eigen for example) and machine learning. So, If I need to check other options let me know.
My environment is:
Windows 10
I already have Installed VS2019Thanks!
@Hassan-math said in Qt cannot build and run "Boxes" example:
Hi
If you have Vs2019 installed then select the Qt for Vs 2017 64 bit (not 2015 then)
All VS and mingw uses openGL.but if you need Eigen then I think using visual studio is more fun to than mingw.
Do notice you can use it 2 ways. Either in Creator, the editor that comes with Qt or the VS Editor.
If you want to use VS editor thete is a plugin that makes integration betterIf you want to use Creator then be awre to use a debugger, its an extra install as
Creator cant use the one build in the vs editor and need the microsoft debug tools.On windows VS is often more fun than mingw when wanting to use 3rd party libs.
-
@mrjj
I'm going to use Creator as editor. So, I'll choose VS2017 64 bit.Now the problem is that I cannot uninstall QT. The Qt maintenance tool is not working. When I go to the Qt folder there are "MaintenanceTool.exe.new" and "MaintenanceTool.dat.new". Also, using Windows uninstallation is not working as it cannot find "MaintenanceTool.exe:.
How can I remove Qt?
-
@mrjj
I changed "MaintenanceTool.exe.new" to "MaintenanceTool.exe" and Windows uninstallation works.Just another question: How can I install a debugger for Creator?
-
@mrjj
I changed "MaintenanceTool.exe.new" to "MaintenanceTool.exe" and Windows uninstallation works.Just another question: How can I install a debugger for Creator?
@Hassan-math said in Qt cannot build and run "Boxes" example:
: How can I install a debugger for Creator?
https://doc.qt.io/qtcreator/creator-debugger-engines.html
"To use the CDB debugger, you must install the Debugging tools for Windows. You can download them from Download and Install Debugging Tools for Windows as part of the Windows SDK."
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk/ -
I unistalled Qt completely and installed it again with "MVS2019 64 bit kit". When I wan to build "Boxes" I get this error:
:-1: error: Project ERROR: This example requires Qt to be configured with -opengl desktopsame as past.
Any idea? -
I unistalled Qt completely and installed it again with "MVS2019 64 bit kit". When I wan to build "Boxes" I get this error:
:-1: error: Project ERROR: This example requires Qt to be configured with -opengl desktopsame as past.
Any idea?What Qt version ?
5.15.x?UPDATE: just tried the sample myself and
it says the same.
I already use openGl in my product/work so that is clearly wrong.So its something else but good news as its not something local on your pc :)
I guess they changed something with OpenGL and forgot the examples
-
@mrjj
5.15.2.So, it's Qt problem, not mine :)
-
@mrjj
5.15.2.So, it's Qt problem, not mine :)
Yes. It worked on none of the 3 windows pcs.
and its both visual stud and mingwSo it should work soon for you as soon as we find out what broke
-
Hi
Turns out they never updated the samples so it does not work with newer Qt compiled with
dynamic opengl. -
@mrjj ,
Hi
Thank you for the update. I just want to ensure that I can use Qt OpenGL withQt += OpenGLin the Creator. Does it work correctly in my Qt version?