PDA

View Full Version : exe and dll



seink
8th February 2011, 14:07
I made a small application to write csv for my game. It works cute and great when I Run it through QT Creator, but if I try running it from outsite (Windows`s Window XD) it sends me an Error saying I don`t have the correct .dll
I need to pass this application to a friend of mine who is making the level design.
Soooooo Noobs Quesssstion time!
1) How to make an easy install for the aplication I created? (it only has 5 files! it cant be that hard! then again, I`m a noob...T_T)
2) How to solve the .dll problem, so that it doesn`t happend to him when he tries to run the program.

thanks for your time! Make the world a smarter place, help the noobs!

agarny
8th February 2011, 15:58
First thing first, you need to determine which Qt DLL files your application requires. This can be done very easily by using something like Dependency Walker (http://www.dependencywalker.com/) or by setting up a blank virtual machine with your target operating system on it (using VirtualBox (http://www.virtualbox.org/) for example). Personally, I use the latter, not least because it allows me to also test my application in an environment which I know doesn't have Qt.

Once you know which Qt DLL files your application needs, you might want to use a packaging software, such as NSIS (http://nsis.sourceforge.net/). This is what I use, though not directly, but through CMake (http://www.cmake.org/)/CPack (http://www.cmake.org/Wiki/CMake:Packaging_With_CPack), since it allows me to package my application relatively easily on Windows, Linux and Mac OS X.

seink
8th February 2011, 17:24
Thanks for the guidance (is this how I write it? XD my english suck T_T)
I will take a look at it, if I have any other questions, I`ll be back. ^^