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. Problem converting app from 64 bit to 32 bit architecture

Problem converting app from 64 bit to 32 bit architecture

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 5 Posters 937 Views
  • 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.
  • P Offline
    P Offline
    Paul Orasan
    wrote on last edited by Paul Orasan
    #1

    Hello.
    I built an app using Qt 5.12 and MinGW 7.3 x64 bit. In order to have it in 32 bit I downloaded the Qt 5.10 and MinGW 5.3 x32 bit using Qt Maintenance Tool, created a new project using this kit and took all the libraries, sources and form files from the x64 bit project. Compiled it, then released it. I deployed the app using the windeployqt tool from MinGW 5.3 bin folder but when I attempt to run it I receive:
    "The application was unable to start correctly. (0xc0000007b)"
    The app works in Qt in Release mode. What have I done wrong and what should I do to make it work? I am up against a deadline now, so quick help is much appreciated.

    Thank you! :)

    EDIT: I found a solution. I added these dlls:
    libwinpthread-1.dll
    libstdc++-6.dll
    libgcc_s_dw2-1.dll
    From QTFolder\Tools\mingw530_32\bin and it seems to work now. However if you do feel I might be missing something out here and this app might not run on someone else's PC, please feel free to offer a suggestion. :)

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

      Hi
      You did the right thing running windeployqt.
      Often the mingw runtime are missing so copying them seems fine. (also from right place)
      I like this site for deployment info
      http://www.tripleboot.org/?p=138

      1 Reply Last reply
      2
      • P Offline
        P Offline
        Paul Orasan
        wrote on last edited by
        #3

        The installer Works, the program runs, however I have a situation. The Release app in Qt can use the ODBC Connector but the deployed app cannot. Do you have any idea?

        1 Reply Last reply
        0
        • hskoglundH Offline
          hskoglundH Offline
          hskoglund
          wrote on last edited by
          #4

          Hi, it could be because the ODBC plugins is missing, try copying the sqldrivers folder from the MinGW plugins directory to your project directory (i.e. put it in the same place as the platforms folder)

          1 Reply Last reply
          1
          • P Offline
            P Offline
            Paul Orasan
            wrote on last edited by
            #5

            It does not work. I already had the sql drivers folder in there with 4 dll files but I get Driver not loader error. I am rather desperate because the deadline is in 3 hours. I can give you other details if you need.

            jsulmJ 1 Reply Last reply
            0
            • hskoglundH Offline
              hskoglundH Offline
              hskoglund
              wrote on last edited by
              #6

              Well if you have it working from Qt Creator, start it there and then run ListDLLs ( https://download.sysinternals.com/files/ListDlls.zip
              locate the .exe file in the list and take a photo of all the .dlls it loads (it's shown in the lower pane of ListDLLs)
              Then start the faulty .exe file and compare the .dlls loaded, if the're some missing that's your culprit

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

                Hi,

                You can start the application with the QT_DEBUG_PLUGINS environment variable set to 1.

                It will show more information about what is going on.

                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
                • P Paul Orasan

                  It does not work. I already had the sql drivers folder in there with 4 dll files but I get Driver not loader error. I am rather desperate because the deadline is in 3 hours. I can give you other details if you need.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Paul-Orasan To add to others: if your 64bit setup is working then you can compare both deployed folders and check whether there are any differences.

                  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