Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Qt3D 6.0.2 on Windows using MinGW 8.1.0
Qt 6.11 is out! See what's new in the release blog

Qt3D 6.0.2 on Windows using MinGW 8.1.0

Scheduled Pinned Locked Moved Unsolved Qt 6
4 Posts 2 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    damselfish
    wrote on last edited by
    #1

    Hello all,

    I am experiencing a strange problem when trying to compile Qt3D 6.0.2. I am using the MinGW 8.1.0 compiler conveniently supplied with Qt. I installed all depencies (Vulkan SDK, OpenSSL, and Perl). The compilation as such succeeded and I got all of the DLLs:

    C:\Qt\6.0.2\mingw81_64\bin>dir Qt63D*.dll
     Volume in drive C is Windows
     Volume Serial Number is xxxx-xxxx
    
     Directory of C:\Qt\6.0.2\mingw81_64\bin
    
    12.03.2021  10:17         1,370,252 Qt63DAnimation.dll
    12.03.2021  09:43         1,261,206 Qt63DCore.dll
    12.03.2021  10:11         1,544,460 Qt63DExtras.dll
    12.03.2021  09:46         1,129,967 Qt63DInput.dll
    12.03.2021  09:43           196,690 Qt63DLogic.dll
    12.03.2021  10:18           610,793 Qt63DQuick.dll
    12.03.2021  10:25           208,899 Qt63DQuickAnimation.dll
    12.03.2021  10:23           377,370 Qt63DQuickExtras.dll
    12.03.2021  10:24           183,885 Qt63DQuickInput.dll
    12.03.2021  10:20           550,844 Qt63DQuickRender.dll
    12.03.2021  10:22           251,139 Qt63DQuickScene2D.dll
    12.03.2021  10:06         6,123,165 Qt63DRender.dll
                  12 File(s)     13,808,670 bytes
                   0 Dir(s)  533,357,686,784 bytes freeode_text
    

    Compiling the basic shapes 3D example was also successful. Anyhow, trying to execute the program (from within QtCreator) yielded the following error message:

    13:00:45: Starting C:\Qt\Examples\Qt-5.9.7\qt3d\basicshapes-cpp\release\basicshapes-cpp.exe ...
    Unable to find renderer plugin for opengl
    13:00:46: The program has unexpectedly finished.
    13:00:46: The process was ended forcefully.
    13:00:46: C:\Qt\Examples\Qt-5.9.7\qt3d\basicshapes-cpp\release\basicshapes-cpp.exe crashed.
    

    Taking a look inside the respective plugins directory reveals that the plugins where not built correctly (only .a and .prl files, but no DLLs):

    C:\Qt\6.0.2\mingw81_64\plugins\renderers>dir
     Volume in drive C is Windows
     Volume Serial Number is xxxx-xxxx
    
     Directory of C:\Qt\6.0.2\mingw81_64\plugins\renderers
    
    12.03.2021  10:55    <DIR>          .
    12.03.2021  10:55    <DIR>          ..
    12.03.2021  10:49       127,890,310 libopenglrenderer.a
    12.03.2021  10:52        82,535,202 librhirenderer.a
    12.03.2021  10:43             1,020 openglrenderer.prl
    12.03.2021  10:49             1,094 rhirenderer.prl
                   4 File(s)    210,427,626 bytes
                   2 Dir(s)  533,356,797,952 bytes free
    

    Am I missing something here, or might I have just come across a bug?

    Many thanks in advance!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      There's something strange indeed.

      It seems they have been built statically.

      How did you build Qt3D ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • D Offline
        D Offline
        damselfish
        wrote on last edited by
        #3

        Hi,

        thanks for your reply. I built Qt3D according to the HowTo (https://wiki.qt.io/Qt6_Add-on_src_package_build_using_Conan_package_manager). More specifically I opened the appropriate Qt MinGW 8.1.0 command prompt and entered the following command line:

        conan.exe install qt3d/6.0.2@qt/final --build=missing --profile=C:/Qt/Tools/Conan/profiles/qt-6.0.2-mingw81_64 -s build_type=Release -g cmake_paths -g=cmake -g deploy
        

        I did not encounter any anomalies during the build process and it seemed to finish successfully. Might one of the dependencies cause such a strange behavior (e.g. OpenSSL)?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          No that looks fine. Using static dependencies does not automatically trigger a static library creation.

          It's seems to be a bug indeed.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved