Running APPs with Qt3D - need help.

  • Dear Qt Users,
    I have a problem with running Qt APPs which uses QtQuick3D ;/ I have noticed this when I was trying to run Qt3D examples. I thought this is something simple, I will delete .pro.user file etc. and it would normally work - but unfortunately not... It seems to look strange but i have two computers with Qt installed by the same ways and techniques. In the Secondary Computer everything work fine. But in my Main PC, not.

    Here are the my PC main specs:
    Windows 7 64bit
    Qt 5.8.0 with MinGW 32bit
    Graph: Radeon R9 270x (Main PC), GeForce GTX650 (Secondary PC)
    Path variable added to system paths: "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin"

    In example when i try to run "Qt 3D: Simple QML Examle" i see this in my Compiler Output:

    09:31:26: Running steps for project simple-qml...
    09:31:26: Starting: "C:\Qt\Qt5.8.0\5.8\mingw53_32\bin\qmake.exe" C:\Qt\Qt5.8.0\Examples\Qt-5.8\qt3d\simple-qml\ -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
    Info: creating stash file C:\Qt\Qt5.8.0\Examples\Qt-5.8\qt3d\build-simple-qml-Desktop_Qt_5_8_0_MinGW_32bit-Debug\.qmake.stash
    09:31:28: The process "C:\Qt\Qt5.8.0\5.8\mingw53_32\bin\qmake.exe" exited normally.
    09:31:28: Starting: "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" qmake_all
    mingw32-make: Nothing to be done for 'qmake_all'.
    09:31:29: The process "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
    09:31:29: Starting: "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" 
    C:/Qt/Qt5.8.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Qt/Qt5.8.0/Examples/Qt-5.8/qt3d/build-simple-qml-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
    g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QML_DEBUG -DQT_3DEXTRAS_LIB -DQT_3DQUICKEXTRAS_LIB -DQT_3DRENDER_LIB -DQT_3DINPUT_LIB -DQT_3DLOGIC_LIB -DQT_3DQUICK_LIB -DQT_3DCORE_LIB -DQT_GAMEPAD_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\simple-qml -I. -I..\..\..\..\5.8\mingw53_32\include -I..\..\..\..\5.8\mingw53_32\include\Qt3DExtras -I..\..\..\..\5.8\mingw53_32\include\Qt3DQuickExtras -I..\..\..\..\5.8\mingw53_32\include\Qt3DRender -I..\..\..\..\5.8\mingw53_32\include\Qt3DInput -I..\..\..\..\5.8\mingw53_32\include\Qt3DLogic -I..\..\..\..\5.8\mingw53_32\include\Qt3DQuick -I..\..\..\..\5.8\mingw53_32\include\Qt3DCore -I..\..\..\..\5.8\mingw53_32\include\QtGamepad -I..\..\..\..\5.8\mingw53_32\include\QtQuick -I..\..\..\..\5.8\mingw53_32\include\QtGui -I..\..\..\..\5.8\mingw53_32\include\QtANGLE -I..\..\..\..\5.8\mingw53_32\include\QtQml -I..\..\..\..\5.8\mingw53_32\include\QtNetwork -I..\..\..\..\5.8\mingw53_32\include\QtCore -Idebug -I..\..\..\..\5.8\mingw53_32\mkspecs\win32-g++  -o debug\main.o ..\simple-qml\main.cpp
    C:\Qt\Qt5.8.0\5.8\mingw53_32\bin\rcc.exe -name simple-qml ..\simple-qml\simple-qml.qrc -o debug\qrc_simple-qml.cpp
    g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QML_DEBUG -DQT_3DEXTRAS_LIB -DQT_3DQUICKEXTRAS_LIB -DQT_3DRENDER_LIB -DQT_3DINPUT_LIB -DQT_3DLOGIC_LIB -DQT_3DQUICK_LIB -DQT_3DCORE_LIB -DQT_GAMEPAD_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\simple-qml -I. -I..\..\..\..\5.8\mingw53_32\include -I..\..\..\..\5.8\mingw53_32\include\Qt3DExtras -I..\..\..\..\5.8\mingw53_32\include\Qt3DQuickExtras -I..\..\..\..\5.8\mingw53_32\include\Qt3DRender -I..\..\..\..\5.8\mingw53_32\include\Qt3DInput -I..\..\..\..\5.8\mingw53_32\include\Qt3DLogic -I..\..\..\..\5.8\mingw53_32\include\Qt3DQuick -I..\..\..\..\5.8\mingw53_32\include\Qt3DCore -I..\..\..\..\5.8\mingw53_32\include\QtGamepad -I..\..\..\..\5.8\mingw53_32\include\QtQuick -I..\..\..\..\5.8\mingw53_32\include\QtGui -I..\..\..\..\5.8\mingw53_32\include\QtANGLE -I..\..\..\..\5.8\mingw53_32\include\QtQml -I..\..\..\..\5.8\mingw53_32\include\QtNetwork -I..\..\..\..\5.8\mingw53_32\include\QtCore -Idebug -I..\..\..\..\5.8\mingw53_32\mkspecs\win32-g++  -o debug\qrc_simple-qml.o debug\qrc_simple-qml.cpp
    g++ -Wl,-subsystem,windows -mthreads -o debug\simple-qml.exe debug/main.o debug/qrc_simple-qml.o  -lmingw32 -LC:\Qt\Qt5.8.0\5.8\mingw53_32\lib C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libqtmaind.a -LC:\utils\my_sql\my_sql\lib -LC:\utils\postgresql\pgsql\lib -lshell32 C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt53DExtrasd.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt53DQuickExtrasd.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt53DRenderd.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt53DInputd.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt53DLogicd.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt53DQuickd.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt53DCored.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt5Gamepadd.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt5Quickd.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt5Guid.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt5Qmld.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt5Networkd.a C:\Qt\Qt5.8.0\5.8\mingw53_32\lib\libQt5Cored.a 
    mingw32-make[1]: Leaving directory 'C:/Qt/Qt5.8.0/Examples/Qt-5.8/qt3d/build-simple-qml-Desktop_Qt_5_8_0_MinGW_32bit-Debug'
    09:31:32: The process "C:\Qt\Qt5.8.0\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
    09:31:32: Elapsed time: 00:05.

    Unfortunately I am not familiar with this output but it seems app has been compiled. But in Application Output I still see:

    Starting C:\Qt\Qt5.8.0\Examples\Qt-5.8\qt3d\build-simple-qml-Desktop_Qt_5_8_0_MinGW_32bit-Debug\debug\simple-qml.exe...

    I have noticed that in my Task Manager application is still running:


    It will run until I will kill the process through the Task Manager or Stop within Qt Creator. When i do this in Qt Creator the message in Application Output appears:

    Starting C:\Qt\Qt5.8.0\Examples\Qt-5.8\qt3d\build-simple-qml-Desktop_Qt_5_8_0_MinGW_32bit-Debug\debug\simple-qml.exe...
    The program has unexpectedly finished.
    C:\Qt\Qt5.8.0\Examples\Qt-5.8\qt3d\build-simple-qml-Desktop_Qt_5_8_0_MinGW_32bit-Debug\debug\simple-qml.exe crashed.

    What i was tried was locating the problem. I have started simple GUI APP Project. I have added only header and view definition within sources. After that this simple APP wont start. But if I delete (or comment) view definition program will run.

    #include "mainwindow.h"
    #include "ui_mainwindow.h"
    #include <Qt3DQuickExtras/qt3dquickwindow.h>
    MainWindow::MainWindow(QWidget *parent) :
        ui(new Ui::MainWindow)
        Qt3DExtras::Quick::Qt3DQuickWindow view; //when I delete or comment this line program normally starts
        delete ui;

    To be clear, my .pro file looks like this (copy and paste form one example):

    QT       += core gui 3dcore 3drender 3dinput 3dquick 3dlogic qml quick 3dquickextras
    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
    TARGET = QT_APP_CppQt3D_Test
    TEMPLATE = app
    SOURCES += main.cpp\
    HEADERS  += mainwindow.h
    FORMS    += mainwindow.ui
    RESOURCES += \

    I do not know why my Qt behave such way. On my Secondary PC everything works good but I want to work on my Main PC. I have tried to reinstall Qt but without effect....

    I really need help an Your support to solve this and run QML 3D environment. I have to finish one project. I love QML and now I need it to process some simple 3D graphic with usage of Qt3D.

    Thank You for Your help in advance.

    UPDATE (2017-05-04, 19:40)
    I have just installed Qt on Win7 in VirtualBox. Examples with Qt3D are working on it so this can not be hardware issue? There is something wrong with my actual system? Ehh.. I am exhausted and have no idea what to do next...

  • Lifetime Qt Champion


    You should check your graphics card driver, whether it's old or the latest. In the first case, update it and in the second case, try the version prior.

  • Qt Champions 2017

    As @SGaist says, this is likely driver related.
    Nvidia sometimes have better openGl support than amd, if only in small details.

    So update driver and if its still not working, use a opengl tool to check
    openGl extensions and shader revision it reports.
    I liked
    (its portable and need no installation)

  • Thank You, @SGaist and @mrjj for answers.
    I had an old driver for my card. So I have updated it now and unfortunately it does not help ;/

    So here is the GL-Z window view:


    And log (sorry, I am not familiar with this):

    2017/5/5@10:49:32(0000000001) < > GLSL Hacker v0.8.4.0 (May  5 2015@11:13:15)
    2017/5/5@10:49:32(0000000002) < > Cross Platform Pixel Hacking Utility
    2017/5/5@10:49:32(0000000003) < > (C)2012-2015 Geeks3D (
    2017/5/5@10:49:32(0000000004) < > GLSL Hacker is starting up...
    2017/5/5@10:49:32(0000000005) < > platform: Windows 64-bit
    2017/5/5@10:49:32(0000000006) <!> [gxl3d PluginMgr] unable to load the plugin: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\/plugins/plugin_gxl3d_opencl_x64.dll
    2017/5/5@10:49:32(0000000007) <!> Unable to load plugin plugin_gxl3d_opencl_x64.dll
    2017/5/5@10:49:32(0000000008) <!> Python 2.7 installation not found: unable to load Python core library (python27.dll).
    2017/5/5@10:49:32(0000000009) <!> Unable to load plugin plugin_gxl_python_27_x64.dll
    2017/5/5@10:49:32(0000000010) <!> [gxl3d PluginMgr] unable to load the plugin: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\/plugins/plugin_gxl3d_fbx_x64.dll
    2017/5/5@10:49:32(0000000011) <!> Unable to load plugin plugin_gxl3d_fbx_x64.dll
    2017/5/5@10:49:32(0000000012) <!> [gxl3d PluginMgr] unable to load the plugin: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\/plugins/plugin_gxl3d_physx3_x64.dll
    2017/5/5@10:49:32(0000000013) <!> Unable to load plugin plugin_gxl3d_physx3_x64.dll
    2017/5/5@10:49:32(0000000014) <!> [gxl3d PluginMgr] unable to load the plugin: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\/plugins/plugin_gxl3d_video_ffmpeg_x64.dll
    2017/5/5@10:49:32(0000000015) <!> Unable to load plugin plugin_gxl3d_video_ffmpeg_x64.dll
    2017/5/5@10:49:32(0000000016) <!> [gxl3d PluginMgr] unable to load the plugin: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\/plugins/plugin_gxl3d_gpu_monitor_gml_x64.dll
    2017/5/5@10:49:32(0000000017) <!> Unable to load plugin plugin_gxl3d_gpu_monitor_gml_x64.dll
    2017/5/5@10:49:32(0000000018) <!> [gxl3d PluginMgr] unable to load the plugin: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\/plugins/plugin_gxl3d_fmod_x64.dll
    2017/5/5@10:49:32(0000000019) <!> Unable to load plugin plugin_gxl3d_fmod_x64.dll
    2017/5/5@10:49:32(0000000020) <!> [gxl3d PluginMgr] unable to load the plugin: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\/plugins/plugin_gxl3d_freeimage_x64.dll
    2017/5/5@10:49:32(0000000021) <!> Unable to load plugin plugin_gxl3d_freeimage_x64.dll
    2017/5/5@10:49:32(0000000022) <!> [gxl3d PluginMgr] unable to load the plugin: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\/plugins/plugin_gxl_anttweakbar_x64.dll
    2017/5/5@10:49:32(0000000023) <!> Unable to load plugin plugin_gxl_anttweakbar_x64.dll
    2017/5/5@10:49:32(0000000024) <!> [gxl3d PluginMgr] unable to load the plugin: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\/plugins/plugin_gxl3d_leapmotion_x64.dll
    2017/5/5@10:49:32(0000000025) <!> Unable to load plugin plugin_gxl3d_leapmotion_x64.dll
    2017/5/5@10:49:32(0000000026) < > FreeTypeGL: FreeTypeGL. By JeGX /
    2017/5/5@10:49:32(0000000027) < > App directory: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\
    2017/5/5@10:49:32(0000000028) < > Scripting libs directory: D:\Program Files (x86)\GL-Z-0.3.0-win64\GL-Z_win64\/libs/
    2017/5/5@10:49:32(0000000029) < > Command line: 
    2017/5/5@10:49:32(0000000030) < > [Lua core plugin] Lua version: Lua 5.2.2
    2017/5/5@10:49:32(0000000031) < > GXLAPP_Demo::init_window3d() - msaa: Off
    2017/5/5@10:49:32(0000000032) < > Window win3d01 - demo created with an OpenGL 4.5 context.
    2017/5/5@10:49:32(0000000033) < > Quick OpenGL information for 3D window win3d01:
    2017/5/5@10:49:32(0000000034) < > GL_RENDERER: AMD Radeon R9 200 Series
    2017/5/5@10:49:32(0000000035) < > GL_VENDOR: ATI Technologies Inc.
    2017/5/5@10:49:32(0000000036) < > GL_VERSION: 4.5.13474 Compatibility Profile Context
    2017/5/5@10:49:32(0000000037) < > GL_SHADING_LANGUAGE_VERSION: 4.50
    2017/5/5@10:49:32(0000000038) < > OpenGL version detected: 4.5
    2017/5/5@10:49:32(0000000039) < > OpenGL extensions: 308
    2017/5/5@10:49:32(0000000040) < >   GL_MAX_VERTEX_ATTRIBS: 29
    2017/5/5@10:49:32(0000000041) < >   GL_MAX_TEXTURE_SIZE: 16384
    2017/5/5@10:49:32(0000000042) < >   GL_MAX_VIEWPORT_DIMS: 16384 16384
    2017/5/5@10:49:32(0000000043) < >   GL_MAX_TEXTURE_IMAGE_UNITS: 32
    2017/5/5@10:49:32(0000000044) < >   GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS: 160
    2017/5/5@10:49:32(0000000045) < >   GL_MAX_SUBROUTINES: 4096
    2017/5/5@10:49:32(0000000046) < >   GL_MAX_ARRAY_TEXTURE_LAYERS: 2048
    2017/5/5@10:49:32(0000000047) < >   GL_MAX_COLOR_ATTACHMENTS: 8
    2017/5/5@10:49:32(0000000048) < >   GL_MAX_DRAW_BUFFERS: 8
    2017/5/5@10:49:32(0000000049) < >   GL_MAX_SAMPLES: 8
    2017/5/5@10:49:32(0000000050) < >   GL_MAX_VERTEX_STREAMS: 4
    2017/5/5@10:49:32(0000000051) < >   GL_MAX_PATCH_VERTICES: 32
    2017/5/5@10:49:32(0000000052) < >   GL_MAX_TESS_GEN_LEVEL: 64
    2017/5/5@10:49:32(0000000053) < >   GL_MAX_COMPUTE_WORK_GROUP_COUNT: 65535 65535 65535
    2017/5/5@10:49:32(0000000054) < >   GL_MAX_COMPUTE_WORK_GROUP_SIZE: 1024 1024 1024
    2017/5/5@10:49:32(0000000055) < >   GL_MAX_UNIFORM_BUFFER_BINDINGS: 90
    2017/5/5@10:49:32(0000000056) < >   GL_MAX_SHADER_STORAGE_BUFFER_BINDINGS: 64
    2017/5/5@10:49:32(0000000057) < >   GL_MAX_ATOMIC_COUNTER_BUFFER_BINDINGS: 8
    2017/5/5@10:49:32(0000000058) < > Render window initialized (GL-Z 0.3.0)

    Thank You again for support and I will be grateful for further guidance.

    UPDATE (2017-05-05, 11:30)
    I had an idea to make a release of one example. So I changed from Build to Release mode. And... when I clicked Run the application has successfully worked! I can remember I was trying to do that before graph drivers update but without effects. For now it actually working but in Release mode.
    In Build I still can not make any app to work and have an issue like described... I was trying to switch antivirus and firewall off, deleting the .pro.user file and all build directories and finally try to do a clean compile.

    UPDATE (2017-05-07, 16:10)
    I also tried to full/clean uninstal of the AMD driver with a VulcanRT also.
    a) After that I istalled the new version of drivers. Without effect.
    b) So again I uninstalled drivers and install old ones from times where VulcanRT was not available yet (~ a year ago). Without effect.
    c) After that I have installed a drivers version released right after the VulcanRT. Without effect.
    I do not have any idea what should I do next...

    UPDATE (2017-05-23, 17:50)
    On Linux Ubuntu (the last version) everything works fine... But it will great if I will be able to work on Win also.

  • @MarcinX said in Running APPs with Qt3D - need help.:

    UPDATE (2017-05-23, 17:50)
    On Linux Ubuntu (the last version) everything works fine... But it will great if I will be able to work on Win also.

    Are you using AMD's Catalyst driver on Linux?

  • @Wieland - I am newbie with Linux systems. I have made the decision to install it because of this issue with Qt3D I am writing about here. I was not install anything additional after default Ubuntu install. Is there a way to check whether the AMD Catalyst is installed on my Ubuntu?

  • Okay, if you're using a default installation, then you don't have that driver installed. Was just curious because if you had the proprietary AMD driver installed on Linux, too, chances would be high that you see the same problems like on Windows.

  • Thank You for the quick answer @Wieland. I will try to install the driver on Linux and see what will happen. If I do that, I will report results here. I still can not understand why my APPs runs correctly in "release" mode on Windows and in "debug" not. We will see what will happen on Linux if I will be able to install AMD drivers.

  • I have tried to find a way to install my GPU driver but I am not sure that R9 270X is supported by the official AMD for Linux. Maybe default driver is enough? When I use:

    lshw -c video

    I can see the following output:

           description: VGA compatible controller
           product: Curacao XT / Trinidad XT [Radeon R7 370 / R9 270X/370X]
           vendor: Advanced Micro Devices, Inc. [AMD/ATI]
           physical id: 0
           bus info: pci@0000:01:00.0
           version: 00
           width: 64 bits
           clock: 33MHz
           capabilities: pm pciexpress msi vga_controller bus_master cap_list rom
           configuration: driver=radeon latency=0
           resources: irq:29 memory:e0000000-efffffff memory:f7e00000-f7e3ffff ioport:e000(size=256) memory:c0000-dffff

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.