Best way to compile and deploy
-
Hi,
I am having trouble compiling my program so it can run on another computer. I have been reading some tutorials, but I can't seem to find the correct .dlls (at least thats what I suspect is the problem as I heard that there are many .dlls named the same thing in different folders).
So, what are your suggestions for deploying my (very small) program with basic Qt GUI features? What compiler should I use? And if I have to install a new compiler, is there a "correct" way to do it? The auto-detect feature doesn't seem to be able to make functioning kits ( I have had to clone them and add compilers and debuggers etc).
I am sorry to say, but I might need to be told in a very simple step-by-step kind of way. I have very little experience with compiling in every program. The program I am now using is Qt Creator evaluation version, but I also have Visual Studio 2010 and 2012 through school. in my C:/Qt folder it also says 5.1.1 so I guess that's the version I am using.
-
there are many beginner tutorials on the web.
"getting started":http://www.google.at/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CDgQFjAB&url=http://qt-project.org/doc/qt-5.0/qtdoc/gettingstarted.html&ei=4k1AUvOqA8GEtAb_2YDACQ&usg=AFQjCNGzwk5JApT9ChqfIy4XY8kRUPLkQw&sig2=_dLZlfiCAr11leVsAt7yXQ&bvm=bv.52434380,d.Yms
"deployment":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html
But you are good to go by using QtCreator, this keeps thing simple and does most of the work for you automagically. You need to "add a kit":http://qt-project.org/doc/qtcreator-2.8/creator-targets.html to QtCreator to start compiling your program. QtCreator should autodetect your msvc compiler if you have Visual Studio installed.
-
Thanks for the links. Ihave seen those before though, and I am confused as to what folders and paths those tutorials are referring to. Cause as it seems Qt has been re-arranging the folder-structure since those tutorials was written, so when they refer to the folder Qt I understand as that would be a lot deeper in the system before. What folders should I look for? Is it still the qt folder (default C://Qt) og for the different compilers (C://Qt/5.1.1/MinGW48_32 etc.)? I even find some of the files mentioned in tutorials around the web in the folders of "C://Qt/Tools/MinGW48_32"
Edit:
Also there are parts of the tutorial I don't know what to do. For Example: "cd C:\path\to\Qt
configure -static <any other options you need> Remember to specify any other options you need, such as data base drivers, as arguments to configure."I have no background to know what other options I need or if the folder used is the "C://Qt" folder. Can anybody help me with this? On a step to step basis.
Say I want to use the MInGW48_32 kit. My folder structure is "C://Qt" and my files are at "C:\Users\TIM\Documents\Qt files\MyProject"
-
The Qt folder refers to e.g. "C:\Qt\5.1.1".
All your other files do not need to be placed in your qt folder, they can be placed anywhere you like. When QtCreator is configured correctly it will link the Qt binaries with your source code and generate an executable.
[quote author="SimenZhor" date="1380001451"]
Also there are parts of the tutorial I don't know what to do. For Example: "cd C:\path\to\Qt
configure -static <any other options you need> Remember to specify any other options you need, such as data base drivers, as arguments to configure."I have no background to know what other options I need or if the folder used is the "C://Qt" folder. Can anybody help me with this? On a step to step basis.[/quote]
Since you are a very beginner to Qt you wont need it any additional configure options for the start IMHO.
You can create a new package later on when you need additional features.
But even better would be to "download":https://qt-project.org/downloads a pre-compiled package. Then you don't need to run configure on it and are ready to start.