Sunday, August 19, 2012

Installing QT in Eclipse

As I was planning to use Eclipse as IDE for other stuff (MSP430 CCS, java for Android, OpenCV...) I thought I would get Qt running on this. Sometimes during this process I thought it would simply be better just get the full Qt SDK, which has its own IDE, but anyhow (always taking the painful path...). By the way, you will need Java JRE installed too... (see links all the way on the bottom for more details):

1. Download and install (basically unzip) Eclipse IDE for C/C++ Developers (32bit version) which has the CDT (C/C++ Development Tooling)

2. You'll need a compiler, like MinGW: http://sourceforge.net/projects/mingw/files/. Download and install.

3. Add path to MinGW and MSYS folder (for me it's C:\eclipse\MinGW\bin;C:\eclipse\MinGW\msys\1.0\bin) to system variable (PATH). In Windows 7 right click on computer --> properties --> advanced system settings --> environment variables.

4. Download and install, two packages from QT:
- The plug-in for Eclipse. http://qt.nokia.com/products/eclipse-integration/
- The libraries: http://qt.nokia.com/downloads/downloads#qt-lib --> Qt libraries 4.8.2 for Windows (minGW 4.4, 318MB)



5. Start Eclipse (I didn't reboot, but maybe you have to)

6. In eclipse Preferense->Qt press "Add new Qt version"... and add path the right paths







So, that's it. Thanks for the help from the original posts here:
http://mentalissue.blogspot.com.es/2011/08/installing-eclipse-ide-for-c-and-qt.html
http://www.multigesture.net/articles/how-to-install-mingw-msys-and-eclipse-on-windows/


And some more detail on what is what:
http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Eclipse+MingW



No comments:

Post a Comment