Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Issue while making release 64 bits with VS2015
Forum Updated to NodeBB v4.3 + New Features

Issue while making release 64 bits with VS2015

Scheduled Pinned Locked Moved Solved 3rd Party Software
19 Posts 2 Posters 8.4k 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.
  • hskoglundH Offline
    hskoglundH Offline
    hskoglund
    wrote on last edited by
    #10

    windeployqt is quite easy to use, if you first clean your folder from any of those bad Qt5xxx.dlls, then open a comand prompt, cd to where your .exe is then type:
    C:\Qt\Qt5.6.1\5.6\Src\qttools\bin\windeployqt "ADIS SCOREGEN.EXE"

    If your app is a Qt widget app that's usually sufficient to get all the necessary files copied, if not you can search this forum, there's lot of info on windeployqt.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mulfycrowh
      wrote on last edited by
      #11

      I did as you told.
      I got the error:

      Unable to query qmake: CreateProcessW failed: The system cannot find the file specified

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mulfycrowh
        wrote on last edited by
        #12

        I added the path where I have qmake.exe.
        Now I got an other error:

        Unable to find dependent libraries of C:\Qt\Qt5.6.1\5.6\msvc2015_64\bin\Qt5Xlsxd.dll ...

        For sure because the dll is in C:\QtXlsx\lib.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mulfycrowh
          wrote on last edited by
          #13

          I copied Qt5Xlsxd.dll in C:\Qt\Qt5.6.1\5.6\msvc2015_64\bin which is not correct for me but it allows the process to start.
          I've got the error:

          lconvert.exe - Application Error

          The application was unable to start correctly (0xc000007b) ...

          BUT
          BUT

          When I launched my exe it runs.
          I noticed the file vcredist_v64.exe.

          Is it OK to get such error about lconvert.exe ?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mulfycrowh
            wrote on last edited by
            #14

            on another computer it doesn't run because Qt5Guid.dll missing.
            It hasn't been written onto the folder ...

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

              Hi, Qt5Guid.dll is a .dll for Debug builds, and if you're testing on another computer, best is to always build your app in Release mode. (Also some problem I think for Qt5Xlsxd.dll, instead of Qt5Xlsx.dll.)

              M 1 Reply Last reply
              1
              • hskoglundH hskoglund

                Hi, Qt5Guid.dll is a .dll for Debug builds, and if you're testing on another computer, best is to always build your app in Release mode. (Also some problem I think for Qt5Xlsxd.dll, instead of Qt5Xlsx.dll.)

                M Offline
                M Offline
                mulfycrowh
                wrote on last edited by
                #16

                @hskoglund Hi ! Great you're back because in big trouble.
                What do I get the error with Iconvert.ex?. So windeployqt doesn't finish the job. It should explain the troubles.

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

                  Hi. lconvert.exe it's a Qt program just like yours, so if it gets the same error 0xc000007b then perhaps it also is because of the same problem (some 32-bit Qt5xxx.dlls copied from Qt Creator's bin directory)?

                  M 1 Reply Last reply
                  1
                  • hskoglundH hskoglund

                    Hi. lconvert.exe it's a Qt program just like yours, so if it gets the same error 0xc000007b then perhaps it also is because of the same problem (some 32-bit Qt5xxx.dlls copied from Qt Creator's bin directory)?

                    M Offline
                    M Offline
                    mulfycrowh
                    wrote on last edited by
                    #18

                    @hskoglund I don't think so because I deleted everything in the folder, except the exe.

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      mulfycrowh
                      wrote on last edited by
                      #19

                      Finally I got it perfectly running. Here is what I did:

                      1/ In VS2015, I fixed Properties > Linker > Input depending on the version debug or release. Previously I had added both Qt5Xlsxd.dll and Qt5Xlsx.dll for both versions. So now, one dll for one version.
                      2/ I fixed my environment variables. I had added a few folders and that wasn't good. Now I only add C:\Qt\Qt5.6.1\5.6\msvc2015_64\bin (where you get qmake.exe and windeployqt.exe).

                      Then I open a command window, cd to the folder where the exe is.
                      The type : windeployqt .

                      AND IT PERFECTLY RUNS ! No more error with Iconvert.exe !

                      THAT'S ALL FOLKS !

                      THANK YOU AGAIN FOR YOUR HELP !

                      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