Issue while making release 64 bits with VS2015
-
Perhaps it could be a problem with VS Redistribuable .
Microsoft Visual C++ 2015 Redistribuable 32 and 64 bits is already installed.
I don't know ... -
I have a lot of errors in the window above the trace window:
Error opening file. The system cannot find the file specified (2)..
Some filenames start with : API-MS-WIN-CORE- ... or API-MS-WIN-SERVICE- ... ........ -
I have a lot of errors in the window above the trace window:
Error opening file. The system cannot find the file specified (2)..
Some filenames start with : API-MS-WIN-CORE- ... or API-MS-WIN-SERVICE- ... ........@mulfycrowh don't worry about those filenames API-MS-WIN-xxx, they are just dummy filenames that are not really used (they are a naming trick Microsoft uses to keep track of what .dll to use for different Windows versions)
About those Qt5Core.dll etc. that you placed in the same folder as your .exe file, did you copy them manually, perhaps from C:\Qt\Tools\QtCreator\bin? That would explain the 0xc000007b error.
To copy the correct Qt5xxx.dlls you can use windeployqt
-
You're right. I copied the dlls and it's the reason for the issue.
I added C:\Qt\Qt5.6.1\5.6\Src\qttools\bin to the PATH, where windeployqt.exe is.
Then opened a command prompt and then go to the folder where I have the .exe for my app.
But then I don't know.
It's first time I deploy ...Many thanks for your help.
-
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.
-
I did as you told.
I got the error:Unable to query qmake: CreateProcessW failed: The system cannot find the file specified
-
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.
-
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
BUTWhen I launched my exe it runs.
I noticed the file vcredist_v64.exe.Is it OK to get such error about lconvert.exe ?
-
on another computer it doesn't run because Qt5Guid.dll missing.
It hasn't been written onto the folder ... -
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.)
@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. -
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)?
@hskoglund I don't think so because I deleted everything in the folder, except the exe.
-
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 !