Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Running example 'widgets\graphicsview\boxes' under windows7, needs '-opengl desktop' error
Forum Updated to NodeBB v4.3 + New Features

Running example 'widgets\graphicsview\boxes' under windows7, needs '-opengl desktop' error

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
23 Posts 3 Posters 3.1k Views 2 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.
  • T TopDoozer
    3 Jun 2019, 23:30

    I will try the configure with -nomake tests and then run mingw32-make and see what happens. Do i need to revert anything before i run configure and mingw32-make again? BTW thank you for taking the time to help me out here. Highly appreciated.

    J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 4 Jun 2019, 05:25 last edited by
    #14

    @TopDoozer said in Running example 'widgets\graphicsview\boxes' under windows7, needs '-opengl desktop' error:

    Do i need to revert anything before i run configure and mingw32-make again?

    You should start from clean state. Best is to use out of source builds.

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    1
    • T Offline
      T Offline
      TopDoozer
      wrote on 7 Jun 2019, 02:49 last edited by
      #15

      OK. So i now created a 'build' folder. Opened a console in that folder and called configure.bat from there. This is the configure.log file:

      Command line: -prefix d:\Qt\Qt5.12.3\build -opengl desktop -nomake tests

      I do have a configure.log file.... but i cannot upload it and its toolong to post in toto.
      There are a couple of configure tests that fail:

      executing config test alloca_h

      • cd /d D:\Qt\Qt5.12.3\build\config.tests\alloca_h && D:\Qt\Qt5.12.3\build\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" D:/Qt/Qt5.12.3/build/config.tests/alloca_h
      • cd /d D:\Qt\Qt5.12.3\build\config.tests\alloca_h && set MAKEFLAGS=& mingw32-make

      g++ -c -fno-keep-inline-dllexport -O2 -w -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -I. -ID:\Qt\Qt5.12.3\5.12.3\Src\qtbase\mkspecs\win32-g++ -o main.o main.cpp
      main.cpp:2:20: fatal error: alloca.h: No such file or directory
      #include <alloca.h>
      ^
      compilation terminated.
      Makefile:165: recipe for target 'main.o' failed
      mingw32-make: *** [main.o] Error 1
      test config.qtbase.tests.alloca_h FAILED

      is the first one...

      J 1 Reply Last reply 7 Jun 2019, 04:52
      0
      • T TopDoozer
        7 Jun 2019, 02:49

        OK. So i now created a 'build' folder. Opened a console in that folder and called configure.bat from there. This is the configure.log file:

        Command line: -prefix d:\Qt\Qt5.12.3\build -opengl desktop -nomake tests

        I do have a configure.log file.... but i cannot upload it and its toolong to post in toto.
        There are a couple of configure tests that fail:

        executing config test alloca_h

        • cd /d D:\Qt\Qt5.12.3\build\config.tests\alloca_h && D:\Qt\Qt5.12.3\build\qtbase\bin\qmake.exe "CONFIG -= qt debug_and_release app_bundle lib_bundle" "CONFIG += shared warn_off console single_arch" D:/Qt/Qt5.12.3/build/config.tests/alloca_h
        • cd /d D:\Qt\Qt5.12.3\build\config.tests\alloca_h && set MAKEFLAGS=& mingw32-make

        g++ -c -fno-keep-inline-dllexport -O2 -w -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -I. -ID:\Qt\Qt5.12.3\5.12.3\Src\qtbase\mkspecs\win32-g++ -o main.o main.cpp
        main.cpp:2:20: fatal error: alloca.h: No such file or directory
        #include <alloca.h>
        ^
        compilation terminated.
        Makefile:165: recipe for target 'main.o' failed
        mingw32-make: *** [main.o] Error 1
        test config.qtbase.tests.alloca_h FAILED

        is the first one...

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 7 Jun 2019, 04:52 last edited by
        #16

        @TopDoozer Failing tests are normal. The question is: is any feature you need disabled because of failing tests? If not then just build.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        0
        • T Offline
          T Offline
          TopDoozer
          wrote on 7 Jun 2019, 14:16 last edited by
          #17

          @jsulm are you suggesting, that build might fail if i try to run it with a feature that might not have passed the configure test (running nmake right now but expecting it to fail again)?

          J 1 Reply Last reply 7 Jun 2019, 14:40
          0
          • T TopDoozer
            7 Jun 2019, 14:16

            @jsulm are you suggesting, that build might fail if i try to run it with a feature that might not have passed the configure test (running nmake right now but expecting it to fail again)?

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 7 Jun 2019, 14:40 last edited by
            #18

            @TopDoozer No, it should not fail, but some features will not be built.

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • T Offline
              T Offline
              TopDoozer
              wrote on 7 Jun 2019, 14:55 last edited by
              #19

              i ran nmake with this result:
              0_1559919306508_nmake.png

              1 Reply Last reply
              0
              • T Offline
                T Offline
                TopDoozer
                wrote on 8 Jun 2019, 14:26 last edited by
                #20

                Any idea whats going on, or what i am missing? Anything i can do to provide more information to gain insight into the error?

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  TopDoozer
                  wrote on 8 Jun 2019, 14:48 last edited by
                  #21

                  Tried to keep it simple and just ran configure followed by nmake. Same error: Unknown module in Qt: bootstrap-private. WTF?

                  1 Reply Last reply
                  0
                  • T Offline
                    T Offline
                    TopDoozer
                    wrote on 8 Jun 2019, 18:59 last edited by
                    #22

                    Tried something else again. went and ran configure in the source directory (Command line: -prefix d:\Qt\Qt5.12.3\build2 -opengl desktop -nomake tests -nomake examples). Then i ran mingw32-make in the Source folder. Thats what i got:

                    0_1560020236919_source_dir_configure_mingw32_make.png

                    Anyone any idea, what the hell is going on here? I am starting to think Qt might not be worth it anymore trying to get back into, which would be fine crying shame!

                    J 1 Reply Last reply 11 Jun 2019, 04:11
                    0
                    • T TopDoozer
                      8 Jun 2019, 18:59

                      Tried something else again. went and ran configure in the source directory (Command line: -prefix d:\Qt\Qt5.12.3\build2 -opengl desktop -nomake tests -nomake examples). Then i ran mingw32-make in the Source folder. Thats what i got:

                      0_1560020236919_source_dir_configure_mingw32_make.png

                      Anyone any idea, what the hell is going on here? I am starting to think Qt might not be worth it anymore trying to get back into, which would be fine crying shame!

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 11 Jun 2019, 04:11 last edited by
                      #23

                      @TopDoozer Which version of MinGW do you use to compile?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0

                      23/23

                      11 Jun 2019, 04:11

                      • Login

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