4/12/2007
How to Install Qt 4.1 and Dev-C++
How to Install Qt 4.1 and Dev-C++
The complete guide to installing and using Qt 4.1 with Dev-C++ by Nick Manley
1.) Download and install Dev-C++. You can either use version 4.9.9.x or 5.0 (still beta). The setup should be just like any other windows program. However, you must install to a location that does not contain spaces. I don't know why this issue still exists but trust me on it. I chose to use C:\Dev-cpp\ for my location. (Download Dev-C++)
2.) Download and Install Qt 4.1 for Windows. We are going to be using the open source version. Your work must be published under the GPL if you are going this route. I am not responsible if you break any license agree agreements. Download the .exe file and install it just like any other application. Again, install it to a directory with no spaces. Such as C:\Qt\4.1\ which I believe is the default. Now it will ask for your mingw32 location. Mingw is the compiler that Dev-C++ uses. Simply select your Dev-C++ directory (C:\Dev-cpp\) and do not select mingw after. All you need to enter is the Dev-C++ path. (Download Qt 4.1 For Windows - GPL)
3.) Create the Qt template. Download the zip file that I have provided which contains the nessisary template files. The template was originally created by Nicolas Joseph. He is french and so is his website so unless you speak french you may need to use a translator. But the credit goes to him for the template files. Extract them to the Templates folder (C:\Dev-cpp\Templates\) and all should be dandy. (Download Qt 4.1 Template for Dev-C++)
4.) Add the libraries. Thankfully the template files do almost all the dirty work. However the library files seem to be left out, so we have to add the manually. Start Dev-C++ and go to Tools->Compiler Options and then select the Directories tab. Then click the Libraries sub-tab. Add the path to our Qt libraries (C:\Qt\4.1\lib).
5.) Congratulations! Everything should now be all set. Try compiling this sample application from Trolltech's tutorial. It should work perfectly. (Qt 4.1 - Hello World!)
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기