Problem with deployment on windows [solved]
Hei there I´ve written a game in qml and tried to deploy it on windows. But it seems to only run on my own computer. The problem is i´m linux user and so i have (almost) no idea how to deploy programs on windows.
This is the Error I get:
Microsoft Visual C++ Runtime Library:
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application´s support tea for more nforamtion.
Here is the program: https://dl.dropboxusercontent.com/u/49003810/Hakfroeg_windoof.zip
Did you follow the "windows deployment guide":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html ?
Well yes. I deployed it with all necessary qt libs, the mingw libs, and the icu* libs.
It can be a slightly hit-and-miss operation, but from your error I am certain that you are just missing a lib file, which one? - well, that is the trick!
Can you list the lib files that you have deployed with your project and then list your .pro file (which contains all the included elements like:
QT += core
QT += network
QT += xml
QT += multimedia
Which can also help you determine what you need.
Also, did you use the Dependency Walker tool to look for dlls?
I'm can see that you are missing:
They need to be present as those two folders alongside your main .exe
Sry that it took so long for this reply but i´ve been on vacation. Well yes now the window of the game is oppening. But no pictures are shown... well the pictures are actually .svg files (very inefficient i know). If you may want to take a look at it here is the updated file: https://dl.dropboxusercontent.com/u/49003810/Hakfroeg.zip
Then you need the QtSvg library
i use them already...
What version of Qt are you using ? If applicable, what installer did you use ?
Qt 5.1 and I am not using any installer... i just deploy everything in a zip file.
Did you also deploy the QtSvg dll ?
As i already said: i do yes xD.
Just checking, using and deploying are not the same thing ;)
Another thing you can check, use Dependency Walker on your application/libraries (by the way, you zip file is not accessible) to see if it finds everything
Alright so at least I got it running. With dependency walker I couldn't figure out anything. But with my neighbours pc I figured out that the plugin “imageformats” was missing to draw the svg images... so now its working: https://dl.dropboxusercontent.com/u/49003810/Hakfroeg.zip
But isn't it a bit unadvantageous to deliver a program that has not a megabyte of size with 50mb of libraries ?!?
thx for help ;)
You're welcome !
Well... That's the case for numerous software, they are not very heavy but the libraries they use might be (without mentioning the possible runtime dependencies such as drivers/external libraries etc...) You could always rebuild Qt to suite your needs disabling what you don't use (time intensive and error prone) or go the static route BUT this one introduces some constraints such as having a commercial license from Digia.
Also, don't forget to update the thread title prepending [solved] so other forum users may know a solution has been found :)