Well
my previous post
explained how they could build Qt applications on Windows using Microsoft Visual C + + 2008 Express Edition and said I had to compile from the console to no idea how to do it from the IDE, I know how to do well I'll leave it here for your interest.
Well, first thing is to know that Microsoft Visual C + + 2008 Express Edition has two build configurations: Debug and Release. Debug configuration is supposed to compile the executable with debug symbols for Windows and other things, so that the executable is more traceable and larger, Release configuration has nothing of this at the size of the executable is lower. Let
prepro to Microsoft Visual C + + 2008 Express Edition to compile our applications Qt in both configurations, for starters we need to create two files (. Bat) batch to take charge of calling the precompiler Qt and preparing everything for then the Compiler and Linker in the Visual C + + to compile the program, the steps are:
We will create two files (. bat) in the bin folder of the Qt 4 (in my case C : \\ Qt \\ 4.4.3 \\ bin), the first call you qcreate.bat within the command line you write:
qmake-project qmake nmake
'll call the second-release.bat qcreate and the type:
qmake-project qmake-config release nmake
now have the scripts ready, which is now set to Microsoft Visual C + + 2008, for this follow these steps:
1. It will create a new project setup wizard project Makefile:
We click Next and the wizard shows the configuration Debug:
there, which says
Line command generation
qcreate
write, which is the name of. bat we've created and then click where it says
Results (for debugging)
write debug \\
before the text that is already in the box (without removing ), ie the text in the example would be:
debug \\ Text-Make.exe
, finally we click
Next
.
window now shows a very similar only this time it's the settings for the Release, in this we will remove the check mark from the box
As
Debug configuration to activate the fields. Where it says Command Line
generation write qcreate-release is the name of our. Bat for releases, and similarly to what we did before in the box that says Results (for debugging) wrote
release \\
before there enucentra text:
Then we click Finish . Ok, that's it, now you can use the IDE to generate command (Build -> Build Solution / Build Project) or Debug (Debug -> Start Debugging) we can also see errors and warnings in the build (View -> Other Windows -> List of Errors) and click on them so that the IDE takes us straight to the line where the error. only thing that I could make is that the IDE see files Include of Qt, so if I have not been doing that the files Include the Qt have nested includes and Visual C + + 2008 as being too lazy to going to look for references in nested archives then when you write hello. (In the tutorial) can not wait for the Visual C + + to show you the QPushButton class members. If one way of doing encuenta nuevmanete post them. For now I leave. Comments and etc. are always welcome, provided they are not spam.