Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Building the Tic Tac Toe demo app for Windows
Forum Updated to NodeBB v4.3 + New Features

Building the Tic Tac Toe demo app for Windows

Scheduled Pinned Locked Moved General and Desktop
10 Posts 3 Posters 2.7k 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.
  • Q Offline
    Q Offline
    qttester5
    wrote on last edited by
    #1

    For 3 weeks now I have struggled to get the Windows 7 build process working with Qt 5. I cannot build an independent standalone app that runs on a Windows system without Qt, though I can run the apps fine on a separate system inside Qt Creator. I am using identical virtual machine environments for my testing, one with Qt installed and one without.

    I have seen many many threads on this topic and have included just about every dll mentioned anywhere, used dependency walker, and while I can get past the "dll not found" errors I cannot get the app to load, it just crashes on launch with various errors like "cannot start" or "runtime terminated in an unusual way". This is an unedited demo project included with Qt 5 that runs fine in Creator.

    It would be a great help if someone with more experience with Qt could try to build this for Windows 7 and inform on what is done to get it to work. 3 weeks is a really long time to try and understand a build process, but it appears I am not alone in this frustration of using Qt with Windows. There must be a simpler way. What am I missing?

    The path to the Qt demo app in question is shown on this screenshot:

    "https://www.dropbox.com/s/xxmjlfrgb1gm03e/tictac.png":https://www.dropbox.com/s/xxmjlfrgb1gm03e/tictac.png

    Mingw/OpenGL version of Qt 5.1
    The exact installer I’m using is:
    http://download.qt-project.org/official_releases/qt/5.1/5.1.0/qt-windows-opensource-5.1.0-mingw48_opengl-x86-offline.exe.mirrorlist

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

      Hi,

      You should mention which version of Qt you have installed (msvc, mingw, opengl, angle) etc...

      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
      • A Offline
        A Offline
        Akorstayblessed
        wrote on last edited by
        #3

        nice question

        MOBILE APP. CREATION LEARNING I MUST....IF YOU GO clue to learn it FAst pass it To me. THank >3

        1 Reply Last reply
        0
        • Q Offline
          Q Offline
          qttester5
          wrote on last edited by
          #4

          Mingw/OpenGL version of Qt 5.1

          The exact installer I'm using is:

          http://download.qt-project.org/official_releases/qt/5.1/5.1.0/qt-windows-opensource-5.1.0-mingw48_opengl-x86-offline.exe.mirrorlist

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

            Just to be sure, did you get the platform plugins in the right place ?

            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
            • Q Offline
              Q Offline
              qttester5
              wrote on last edited by
              #6

              Well, as far as I know I did, in that dependency walker did not report that there were missing. In fact the only odd thing that dependency walker shows is the missing ieshims.dll which I've read a few others see on there as well. It is an IE dll so why dependency walker shows that I don't know.

              If it shows nothing else, then I can assume the platform plugins are in the correct place? I was following some suggestions in other threads, such as here:

              http://qt-project.org/forums/viewthread/25642/#139487

              I'm truly amazed how unnecessarily complicated this process is to build for Windows!

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

                Dependency Walker won't report plugin dependency (that's why they are plugins)

                But the platform plugin is explained in the "deployment guide":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html

                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
                • Q Offline
                  Q Offline
                  qttester5
                  wrote on last edited by
                  #8

                  According to that guide, which I've read thoroughly many times, lacking just the plugins would still allow the executable to run, even if functionality is not there:

                  "If the application starts without any problems, then we have successfully made a dynamically linked version of the Plug & Paint application. But the application's functionality will still be missing since we have not yet deployed the associated plugins."

                  I am trying a different demo app than Plug & Paint, but how accurate is this statement? I am unable to get the executable to run at all.

                  Furthermore, how can we know exactly which plugins an app is requiring if they are not reported in the dependency walker; where is it possible to see a list? Perhaps in Creator somewhere?

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

                    It depends on what Qt module you are using (database), image format you want to support etc... So there's no definitive answer to that one.

                    But the platform plugin is a must have to start

                    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
                    • Q Offline
                      Q Offline
                      qttester5
                      wrote on last edited by
                      #10

                      I do have the platforms/qwindows.dll plugin for the platform.

                      I really hope someone can provide more detailed assistance on this, it can't be hard for anyone with good Qt experience and it would help a lot of people out to know more specifics on how to actually get a build working for Windows.

                      1 Reply Last reply
                      0

                      • Login

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