Results 1 to 3 of 3

Thread: [SOLVED] Deploying Qt3D application. Unable to find renderer plugin for opengl

  1. #1
    Join Date
    Nov 2012
    Location
    Russia
    Posts
    225
    Thanks
    117
    Thanked 18 Times in 10 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default [SOLVED] Deploying Qt3D application. Unable to find renderer plugin for opengl

    When I run my simple example in debug mode from Qt Creator I see these messages:

    QString::arg: Argument missing: " Max Work Group Size: 1536, 1024, 64\n Max Work Group Count: 65535, 65535, 65535\n Max Invocations: 65535\n Max Shared Memory Size: 1536\n" , 49152 QObject::connect(QOpenGLContext, Unknown): invalid nullptr parameter
    My program works fine. And when I switch to Release mode I see the same behavior like above. But I what to make a standalone application for running on another computers without Qt.

    I added this dll-files to Release folder:

    platforms/qwindows.dll
    libgcc_s_dw2-1.dll
    libstdc++-6.dll
    libwinpthread-1.dll
    Qt5Concurrent.dll
    Qt5Core.dll
    Qt5Gamepad.dll
    Qt5Gui.dll
    Qt5Network.dll
    Qt53DCore.dll
    Qt53DExtras.dll
    Qt53DInput.dll
    Qt53DLogic.dll
    Qt53DRender.dll
    But when I try to run Release version from Qt Creator I get this message in console:

    Unable to find renderer plugin for opengl
    23:00:29: The program has unexpectedly finished.
    And I get this exception:

    BulletQt3DCpp_FailFastException.png

    Fail Fast Exception. A fail fast exception occurred. Exception handlers will not be invoked and the process will be terminated immediately.
    My source code:

    Qt Code:
    1. QT += 3dcore 3drender 3dlogic 3dextras
    2.  
    3. INCLUDEPATH += "E:\Libs\Bullet3-2.89\include"
    4.  
    5. LIBS += -L"E:\Libs\Bullet3-2.89\lib"
    6. LIBS += -lBulletDynamics -lBulletCollision -lLinearMath
    7.  
    8. SOURCES += \
    9. main.cpp
    10.  
    11. RESOURCES += \
    12. Models.qrc
    To copy to clipboard, switch view to plain text mode 

    main.cpp

    Qt Code:
    1. #ifdef _WIN32
    2. #include <windows.h>
    3. extern "C" __declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
    4. extern "C" __declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001;
    5. #endif
    6.  
    7. #include <QGuiApplication>
    8. #include <QEntity>
    9. #include <Qt3DWindow>
    10. #include <btBulletDynamicsCommon.h>
    11. #include <QCamera>
    12. #include <QPointLight>
    13. #include <QTransform>
    14. #include <QSceneLoader>
    15. #include <QOrbitCameraController>
    16. #include <QPhongMaterial>
    17.  
    18. int main(int argc, char *argv[])
    19. {
    20. QGuiApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
    21. QGuiApplication app(argc, argv);
    22. Qt3DExtras::Qt3DWindow view;
    23. view.setGeometry(500, 100, 270, 270);
    24.  
    25. Qt3DRender::QCamera *camera = view.camera();
    26. camera->lens()->setPerspectiveProjection(60.0f, view.width()/(float)view.height(), 0.1f, 1000.0f);
    27. camera->setPosition(QVector3D(0.0f, 0.0f, 30.0f));
    28. camera->setViewCenter(QVector3D(0.0f, 0.0f, 0.0f));
    29.  
    30. Qt3DCore::QEntity *rootEntity = new Qt3DCore::QEntity;
    31.  
    32. Qt3DCore::QEntity *lightEntity = new Qt3DCore::QEntity(rootEntity);
    33. Qt3DRender::QPointLight *pointLight = new Qt3DRender::QPointLight(lightEntity);
    34. Qt3DCore::QTransform *lightTransform = new Qt3DCore::QTransform(rootEntity);
    35. lightTransform->setTranslation(QVector3D(10.0f, 20.0f, 30.0f));
    36. lightEntity->addComponent(pointLight);
    37. lightEntity->addComponent(lightTransform);
    38.  
    39. Qt3DCore::QEntity *cubeEntity = new Qt3DCore::QEntity(rootEntity);
    40. Qt3DRender::QSceneLoader *sceneLoader = new Qt3DRender::QSceneLoader(cubeEntity);
    41. sceneLoader->setSource(QUrl("qrc:/Models/Cube.obj"));
    42. cubeEntity->addComponent(sceneLoader);
    43. Qt3DCore::QTransform *cubeTransform = new Qt3DCore::QTransform(cubeEntity);
    44. cubeTransform->setScale(7.0f);
    45. cubeEntity->addComponent(cubeTransform);
    46. QStringList list = sceneLoader->entityNames();
    47.  
    48. Qt3DExtras::QPhongMaterial *material = new Qt3DExtras::QPhongMaterial(rootEntity);
    49. rootEntity->addComponent(material);
    50.  
    51. Qt3DExtras::QOrbitCameraController *cameraController = new Qt3DExtras::QOrbitCameraController(rootEntity);
    52. cameraController->setCamera(camera);
    53. cameraController->setLookSpeed(180.0f);
    54. cameraController->setLinearSpeed(50.0f);
    55.  
    56. view.setRootEntity(rootEntity);
    57. view.show();
    58. return app.exec();
    59. }
    To copy to clipboard, switch view to plain text mode 
    Last edited by 8Observer8; 27th June 2020 at 23:47.

  2. #2
    Join Date
    Nov 2012
    Location
    Russia
    Posts
    225
    Thanks
    117
    Thanked 18 Times in 10 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Deploying Qt3D application using MinGW 32. Unable to find renderer plugin for ope

    I solved this problem. I copied the folder "renderers/openglrenderer.dll" to the release folder from "C:\Qt\5.15.0\mingw81_32\plugins"

  3. #3
    Join Date
    Nov 2012
    Location
    Russia
    Posts
    225
    Thanks
    117
    Thanked 18 Times in 10 Posts
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Deploying Qt3D application using MinGW 32. Unable to find renderer plugin for ope

    These is a list what you need to move your Qt3D application on another computer. It requires 48 MB

    ListOfLibsForQt3D.png

Similar Threads

  1. Replies: 1
    Last Post: 2nd January 2018, 08:28
  2. Replies: 2
    Last Post: 10th May 2016, 08:06
  3. Deploying Qt 5.0.2 Windows 7 MinGW VideoGraphicsItem .dll's
    By budda in forum Installation and Deployment
    Replies: 1
    Last Post: 20th April 2013, 18:43
  4. MinGW: Plugin DLL not linking to application DLL
    By cbamber85 in forum Installation and Deployment
    Replies: 0
    Last Post: 20th December 2012, 12:26
  5. anyone building/deploying Qt+Coin3d+SoQt apps with MinGW??
    By vonCZ in forum Installation and Deployment
    Replies: 0
    Last Post: 13th November 2008, 15:59

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.