Qt Forum - programming with C++ and Qt
Register Calendar Members List Team Members Search Frequently Asked Questions Go to the Main Page

Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Installing Qt » A Guide to Install MinGW, Qt4 and Eclipse Integration on Windows XP » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites
Post New Thread Post Reply
Go to the bottom of this page A Guide to Install MinGW, Qt4 and Eclipse Integration on Windows XP
Author
Post « Previous Thread | Next Thread »
shiyu_tang
Assistant


Registration Date: 02.05.2008
Posts: 4

Level: 4 [?]
Experience: 56
Next Level: 100

44 points of experience needed for next level

A Guide to Install MinGW, Qt4 and Eclipse Integration on Windows XP Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

It cost me two days to install MinGW, Qt4 and Eclipse Integration on Windows XP, and make debug work. Some people meets problems like Build Debug Libraries cannot make, or "mingw32-make[2]: *** [..\..\lib\QtCored4.dll] Error 1", and so on. So I write this guide, hope it can save some time for you.

1. Download "Automated MinGW Installer" from http://sourceforge.net/project/showfiles.php?group_id=2435, Install it. Notice you should choose g++ and mingw32-make.
2. Download "GNU Source-Level Debugger" from http://sourceforge.net/project/showfiles.php?group_id=2435, decompress it to the directory where you installed MinGW. Please choose no when the decompression software asks you whether to cover the file with the same name.
3. Download "Qt/Windows Open Source Edition" from http://trolltech.com/developer/downloads/qt/windows. Install it.
4. Download "Eclipse IDE for C/C++ Developers" from http://www.eclipse.org/downloads/, decompress it to a directory. If you have already have an eclipse for Java development, you can only install "cdt".
5. Download "Qt Eclipse Integration Downloads" from http://trolltech.com/developer/downloads/qt/eclipse-integration-download, install it.
6. Set your system's Environment Variables. This step is very important. If you miss it, you may meet a lot of problems. E:\Develop is the place where I installed MinGW and Qt to.
Add E:\Develop\MinGW\bin and E:\Develop\Qt\4.3.4\bin to Path,
Add E:\Develop\MinGW\lib and E:\Develop\Qt\4.3.4\lib to Lib (if no Lib, please create one),
Add E:\Develop\MinGW\include and E:\Develop\Qt\4.3.4\include to Include (if no Include, please create one),
Reboot your computer.
7. In Start menu\All Applications\Qt by Trolltech v4.3.4 (OpenSource), please find Qt 4.3.4 (Build Debug Libraries) and execute it. Note that it will take two hours' time and 3GB's free space's on the partition where you installed Qt to.
8. Write your program in Eclipse with Qt.
9. Click the bug icon and select "Open Debug Dialog...", add a new configuration in C/C++ Local Application, notice that C/C++ Application should be "debug/*.exe", not "release/*.exe"! Choose Debug and set Debugger to gdb/mi. And then, you can try to debug.
10. That's all. Hope you will not meet the problems.

Please notice the step 6 is the most important. And you must reboot computer and add these directories to Environment Variables.

I hope this guide will help you.
02.05.2008 18:47 shiyu_tang is offline Send an Email to shiyu_tang Search for Posts by shiyu_tang Add shiyu_tang to your Buddy List
shiyu_tang
Assistant


Registration Date: 02.05.2008
Posts: 4

Level: 4 [?]
Experience: 56
Next Level: 100

44 points of experience needed for next level

Thread Starter Thread Started by shiyu_tang
RE: A Guide to Install MinGW, Qt4 and Eclipse Integration on Windows XP Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

If you still meet problem like "gdb: unknown target exception 0xc0000135 at 0x7c964ed1", please add E:\Develop\Qt\4.3.4\lib to Path in your system's Environment Variables.
03.05.2008 06:43 shiyu_tang is offline Send an Email to shiyu_tang Search for Posts by shiyu_tang Add shiyu_tang to your Buddy List
narcis_agh narcis_agh is a male
Coder


Registration Date: 15.01.2008
Posts: 16
Location: Iran

Level: 11 [?]
Experience: 1,948
Next Level: 2,074

126 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

thank you for your practical guide. I have some problems in this case. I am all new to add path and include and so on. Can you tell me what are them and how can I add them in Windows Vista. Maybe you can introduce me a good tutorial or a good book.
again thanks
Ali
07.05.2008 20:15 narcis_agh is offline Send an Email to narcis_agh Search for Posts by narcis_agh Add narcis_agh to your Buddy List YIM Account Name of narcis_agh: narcis_agh
shiyu_tang
Assistant


Registration Date: 02.05.2008
Posts: 4

Level: 4 [?]
Experience: 56
Next Level: 100

44 points of experience needed for next level

Thread Starter Thread Started by shiyu_tang
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

I am using Windows XP. Hope this will help you.

Right click "My Computer"->Properties->Advanced->Environment Variables->System variables.
08.05.2008 09:31 shiyu_tang is offline Send an Email to shiyu_tang Search for Posts by shiyu_tang Add shiyu_tang to your Buddy List
Javi Javi is a male
Assistant


images/avatars/avatar-453.png

Registration Date: 07.05.2008
Posts: 3

Level: 3 [?]
Experience: 28
Next Level: 54

26 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

narcis_agh, In Vista you can use:

1º) Windows key + Pause (or mycomputer/properties).
2º) On the left "Advanced system configuration"
3º) "Environment variables" button.

I'm trying to install QT 4.4.0 in Vista with MySql, please shiyu_tang, can you take a look to my thread? http://www.qtforum.org/thread.php?threadid=25002

Thanks
08.05.2008 10:19 Javi is offline Send an Email to Javi Homepage of Javi Search for Posts by Javi Add Javi to your Buddy List
narcis_agh narcis_agh is a male
Coder


Registration Date: 15.01.2008
Posts: 16
Location: Iran

Level: 11 [?]
Experience: 1,948
Next Level: 2,074

126 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi,
I have another problem too. I unzipped Eclipse. Then I installed qt-eclipse-integration-win32-1.0.1 . For first time everything work. But after that when I try to open eclipse I just see the first window and eclipse doesnt open.
Anyone knows what's wrong ?
09.05.2008 08:40 narcis_agh is offline Send an Email to narcis_agh Search for Posts by narcis_agh Add narcis_agh to your Buddy List YIM Account Name of narcis_agh: narcis_agh
lo_fi_geek
Assistant


Registration Date: 09.05.2008
Posts: 1
Location: canada

Level: 1 [?]
Experience: 7
Next Level: 10

3 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

THANK YOU SO MUCH shiyu_tang!!!!!!

this should probably be stickied

This is the first coherant guide i've read, i don't know why TT doesn't publish something similar.

narcis_agh:
I had a similar problem with eclipse many years ago while working with java. At that point the problem was that i had installed eclipse in a directory that had spaces in it. so...

instead of putting it in C:\Program Files\eclipse

put it in to C:\eclipse

that worked for me way back when, i hope it works for you now!
09.05.2008 20:42 lo_fi_geek is offline Send an Email to lo_fi_geek Search for Posts by lo_fi_geek Add lo_fi_geek to your Buddy List
narcis_agh narcis_agh is a male
Coder


Registration Date: 15.01.2008
Posts: 16
Location: Iran

Level: 11 [?]
Experience: 1,948
Next Level: 2,074

126 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi,
thanks for your attention, but unfortunetly that's not my problem because there is not space in root folders. I have tried c:\eclipse too.
thanks anyway
10.05.2008 08:54 narcis_agh is offline Send an Email to narcis_agh Search for Posts by narcis_agh Add narcis_agh to your Buddy List YIM Account Name of narcis_agh: narcis_agh
shiyu_tang
Assistant


Registration Date: 02.05.2008
Posts: 4

Level: 4 [?]
Experience: 56
Next Level: 100

44 points of experience needed for next level

Thread Starter Thread Started by shiyu_tang
Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Try to delete the file com.trolltech.qtcppstartup_x.x.x.jar (x.x.x is the version) in eclipse/plugins. Maybe this would solve the problem.
10.05.2008 16:35 shiyu_tang is offline Send an Email to shiyu_tang Search for Posts by shiyu_tang Add shiyu_tang to your Buddy List
narcis_agh narcis_agh is a male
Coder


Registration Date: 15.01.2008
Posts: 16
Location: Iran

Level: 11 [?]
Experience: 1,948
Next Level: 2,074

126 points of experience needed for next level

Reply to this Post Post Reply with Quote Edit/Delete Posts Report Post to a Moderator       Go to the top of this page

Hi,
I did cut/paste that file to another place but it still doesn't work. I think I must forget about eclipse.
thanks
Ali
11.05.2008 10:44 narcis_agh is offline Send an Email to narcis_agh Search for Posts by narcis_agh Add narcis_agh to your Buddy List YIM Account Name of narcis_agh: narcis_agh
Tree Structure | Board Structure
Jump to:
Post New Thread Post Reply
Qt Forum - programming with C++ and Qt » QtForum.org » Qt » Installing Qt » A Guide to Install MinGW, Qt4 and Eclipse Integration on Windows XP

views today: 9.126 | views yesterday: 17.520 | total views: 10.242.495


Klebekork Shop - Linux Shop - Kontaktanzeigen - Linux Forum -  SMS Gewinnspiel -  Hotels -  Stadtpläne -  Branchenbuch & Stadtplan

Branchenbuch Österreich - Branchenbuch Niederlande - Portugal Branchenverzeichnis - Spanien Branchenverzeichnis 
Telefonbuch - Branchenbuch Frankreich