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. [SOLVED] Build 32 bit runs, build 64 bit compiles but crashes at the beginning.
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Build 32 bit runs, build 64 bit compiles but crashes at the beginning.

Scheduled Pinned Locked Moved Installation and Deployment
10 Posts 2 Posters 3.1k 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.
  • siropS Offline
    siropS Offline
    sirop
    wrote on last edited by
    #1

    Hi.

    I have two simple applications.

    If compiled with the official 32 bit release ( Qt 5.4, mingw 4.9.1) they do run as expected.

    Yesterday I downloaded:
    http://sourceforge.net/projects/qtx64/files/qt-creator-x64/3.3.0/qt-creator-3.3.0-x64.exe/download
    http://sourceforge.net/projects/mingw-w64/files/Toolchains targetting Win64/Personal Builds/mingw-builds/4.9.2/threads-win32/seh/x86_64-4.9.2-release-win32-seh-rt_v3-rev1.7z/download

    and

    http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/qt-5.4.0-x64-mingw492r0-seh-compact.exe/download

    Yes, my both applications can be compiled in 64 bit mode but they crush right at the start even if started within QtCreator.

    Any hints? Try a different version of mingw-4.9? That with SJLJ?

    "A new GDB package for the TDM64 edition has been released, fixing an undesired libiconv-2.dll linkage that was causing 0x7b errors and adding python27.dll which was mistakenly omitted."? Maybe, this?

    To be, or not to be: that is the question:
    Whether ’tis nobler in the mind to suffer
    The slings and arrows of outrageous fortune,
    Or to take arms against a sea of troubles,
    And by opposing end them?

    1 Reply Last reply
    0
    • JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      Hi,

      See http://qt-project.org/wiki/MinGW -- the official Qt 5.4 was built for pthread (not Win32-thread) and DWARF (not SEH or SJLJ).

      [quote author="sirop" date="1424398085"]Yes, my both applications can be compiled in 64 bit mode but they crush right at the start even if started within QtCreator.[/quote]I'm not familiar with the details, but I'm guessing that the different versions of MinGW are not compatible.

      So, if you want to use a non-official version of MinGW, you must also rebuild Qt using your version of MinGW.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      0
      • siropS Offline
        siropS Offline
        sirop
        wrote on last edited by
        #3

        I used this non official build
        http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/qt-5.4.0-x64-mingw492r0-seh-compact.exe/download

        It is SEH and 64 bit.

        To be, or not to be: that is the question:
        Whether ’tis nobler in the mind to suffer
        The slings and arrows of outrageous fortune,
        Or to take arms against a sea of troubles,
        And by opposing end them?

        1 Reply Last reply
        0
        • JKSHJ Offline
          JKSHJ Offline
          JKSH
          Moderators
          wrote on last edited by
          #4

          [quote author="sirop" date="1424410055"]I used this non official build
          http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/qt-5.4.0-x64-mingw492r0-seh-compact.exe/download

          It is SEH and 64 bit.[/quote]Like I said, you must first use your version of MinGW to build the Qt libraries. Then, you can build your program and link it against your unofficial version of Qt.

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          0
          • siropS Offline
            siropS Offline
            sirop
            wrote on last edited by
            #5

            What about the link I posted?
            A re these not prebuilt libraries?

            To be, or not to be: that is the question:
            Whether ’tis nobler in the mind to suffer
            The slings and arrows of outrageous fortune,
            Or to take arms against a sea of troubles,
            And by opposing end them?

            1 Reply Last reply
            0
            • JKSHJ Offline
              JKSHJ Offline
              JKSH
              Moderators
              wrote on last edited by
              #6

              Ah sorry, I misread your posts.

              Your compiler and Qt libraries need to be compatible.

              http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/ says that it uses POSIX threading. That might be causing your crashes.

              Anyway, the page also says "Installer contains compiler". It's best to use that, instead of downloading from a different SourceForge project.

              Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

              1 Reply Last reply
              0
              • siropS Offline
                siropS Offline
                sirop
                wrote on last edited by
                #7

                I got a bit further using
                http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/qt-5.4.0-x64-mingw492r0-seh-compact.exe/download

                So now I can start my app from within QtCreator.

                But if trying to start from within release directory, it crashes with some 0x***7 error.

                Dependency Walker yields:
                !http://www11.pic-upload.de/20.02.15/rshp3jg9zri2.png(Dependency Walker Output)!

                I searched a little bit: this problem already came up, but
                I did not find any final solution for that.

                To be, or not to be: that is the question:
                Whether ’tis nobler in the mind to suffer
                The slings and arrows of outrageous fortune,
                Or to take arms against a sea of troubles,
                And by opposing end them?

                1 Reply Last reply
                0
                • JKSHJ Offline
                  JKSHJ Offline
                  JKSH
                  Moderators
                  wrote on last edited by
                  #8

                  [quote author="sirop" date="1424427294"]So now I can start my app from within QtCreator.

                  But if trying to start from within release directory, it crashes with some 0x***7 error.[/quote]Did you deploy your DLLs correctly? http://qt-project.org/wiki/Deploy_an_Application_on_Windows

                  Make sure you get the correct version of the DLLs -- do not take them from the Qt Creator folder.

                  [quote author="sirop" date="1424427294"]Dependency Walker yields:
                  !http://www11.pic-upload.de/20.02.15/rshp3jg9zri2.png(Dependency Walker Output)!
                  [/quote]You can ignore API_MS_WIN[X]_ errors. They are false positives.

                  Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                  1 Reply Last reply
                  0
                  • siropS Offline
                    siropS Offline
                    sirop
                    wrote on last edited by
                    #9

                    You were right about false positives.

                    I used for the second try a more or less clean machine,
                    downloaded
                    http://sourceforge.net/projects/qtx64/files/qt-x64/5.4.0/mingw-4.9/seh/qt-5.4.0-x64-mingw492r0-seh-compact.exe/download

                    Used then QtCreator 32 bit.

                    Before compiling I set all paths with qtbinpatcher.exe the author of this Qt 64
                    made for adjusting the installation paths.

                    Then I set and checked all the project paths, compiled , added the necessary dll's to the build directory and yes, at least a simple console app starts and runs.

                    Thank you for your hints.

                    I set the theme to SOLVED.

                    To be, or not to be: that is the question:
                    Whether ’tis nobler in the mind to suffer
                    The slings and arrows of outrageous fortune,
                    Or to take arms against a sea of troubles,
                    And by opposing end them?

                    1 Reply Last reply
                    0
                    • JKSHJ Offline
                      JKSHJ Offline
                      JKSH
                      Moderators
                      wrote on last edited by
                      #10

                      Great! Happy coding :)

                      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                      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