PDA

View Full Version : I need help installing QT4.4.0 Open Source on Windows, to compile with Visual Studio



AlonL
9th June 2008, 00:00
I've tried a certain guide I found online, on pc-maniac, and have gotten a lot of problems.
I am right now in the process of redoing it all from scratch, including erasing and redownloading QT4.4.0, and I want to know if there is a guide out there that suites my needs.
Again, I want to install QT4.4.0 OPEN SOURCE, on Windows, to use with Visual Studio 2008.

P.S - I found this guide on the QtCentre Wiki
http://wiki.qtcentre.org/index.php?title=Qt4_with_Visual_Studio
and I want to know if this suites my needs and if it'll work, since I see this is targeted for version 4.3.2.
I understand I do not need to install the patch mentioned, but then again, the steps mentioned there are quite similar to what I've originally done, which ended up very messy.

Thanks ahead.

ChristianEhrlicher
9th June 2008, 06:43
So what's your real problem?
The wiki article states that you don't need the patch anymore.

AlonL
9th June 2008, 12:20
Well,
I would get a large number of U1077's while doing the nmake, until I flagged it with /I to ignore all exit codes.
After installing I would get a ton of linker errors while using the MSVC compiler and a PRJ0019 error while trying to use MinGW.
Thats why I want to reinstall.

ChristianEhrlicher
9th June 2008, 12:23
Thats why I want to reinstall.
Still don't know what problem you've - why can't you reinstall it? What's wrong with the wiki page? :confused:

AlonL
9th June 2008, 12:38
Well, the wiki page is very unclear since it speaks of steppes that are done with files included in the patch, and I can't differentiate which steppes I should be doing and which not.
I'm trying to follow it as precisely as I can, and still things go wrong, I just got U1077 errors while configuring, which is MUCH earlier than I would have before, while using nmake.
I seriously have no idea whats wrong, and I just wish there was a normal, accurate, up to date guide I could follow.

ChristianEhrlicher
9th June 2008, 12:43
Funny :)
When you don't need the patch anymore you also don't need to do something with some files which come from the patch. Is this so hard to understand??

And when you get errors during compile/configuration it would be very helpfull to show us the errors instead crying around that it doesn't work.

/edit: You can also have a look at the Qt-Documentation: http://doc.trolltech.com/4.3/install-win.html

AlonL
9th June 2008, 12:50
Listen, I'm not an idiot, its pretty obvious that if the files are included in the patch, I shouldn't be using them if I don't need the patch, but if you've read the guide, you've probably seen that its not that simple at all, some of the steppes are pretty ambiguous as to their cause an origin, and you're left with no idea whether or not you should be performing them.

ChristianEhrlicher
9th June 2008, 13:00
Feel free to fix it - it's a wiki open for everyone. And the Qt documentation should be helpfull too.
And you still did not tell us what errors you get... :mad:

AlonL
9th June 2008, 13:54
Let me figure out how to solve my own problems first, thats one.
Two, I have mentioned the types of errors I've received, you want specific ones?
Here:

..\WebKit\qt\Api\qwebpage.cpp : fatal error C1033: cannot open program database
'c:\qt4.4.0\src\3rdparty\webkit\webcore\vc90.pdb'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\cl.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.EXE"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
\nmake.EXE"' : return code '0x2'
Stop.

ChristianEhrlicher
9th June 2008, 14:12
I don't think that this is the first error you get. Subsequent errors are useless :)
But - is c:\qt4.4.0\src\3rdparty\webkit\webcore\vc90.pdb available and accessible?

AlonL
9th June 2008, 14:15
Yes, it is.
And after adding the /i flag to ignore errors, I'm actually not getting the first error, but getting the U1077's, which is odd since I've already done the /i thingie before and it has worked...
Any ideas?

EDIT: Oh, wait, I just scrolled up some, the 1033s are still there, about 6-7 of them, all referring to the vc90.pdb file, but from different source files

kernel\qaction.cpp : fatal error C1033: cannot open program database 'c:\qt4.4.0
\src\gui\vc90.pdb'
qactiongroup.cpp
kernel\qactiongroup.cpp : fatal error C1033: cannot open program database 'c:\qt
4.4.0\src\gui\vc90.pdb'
qapplication.cpp
kernel\qapplication.cpp : fatal error C1033: cannot open program database 'c:\qt
4.4.0\src\gui\vc90.pdb'
qboxlayout.cpp
kernel\qboxlayout.cpp : fatal error C1033: cannot open program database 'c:\qt4.
4.0\src\gui\vc90.pdb'
qclipboard.cpp
kernel\qclipboard.cpp : fatal error C1033: cannot open program database 'c:\qt4.
4.0\src\gui\vc90.pdb'
qcursor.cpp
kernel\qcursor.cpp : fatal error C1033: cannot open program database 'c:\qt4.4.0
\src\gui\vc90.pdb'
qdrag.cpp
kernel\qdrag.cpp : fatal error C1033: cannot open program database 'c:\qt4.4.0\s
rc\gui\vc90.pdb'

ChristianEhrlicher
9th June 2008, 14:24
You really should find the first error message :)

AlonL
9th June 2008, 14:27
I'm dumping the output to a file right now, will attach when its finished.

AlonL
9th June 2008, 14:42
Its been running for a while now without any problem, I'm pretty sure I've actually gone past the problematic part, and the dump is almost 2MB in size now.

AlonL
9th June 2008, 15:25
Goddammit, it was running fine till it BSOD'D
Crap... All over again.
Update: It's jammed again, same error, same type and name of file - vc90.pdb, different location and size.
Sigh.

Maybe I should backstep to 4.3.2

AlonL
9th June 2008, 16:20
Look, it comes down to this, the problem IS the C1033, theres no other explanation.
It keeps happening with the different vc90.pdb files in the package.
Any ideas?
EDIT:
The source of the problem seems to be that there are multiple compiles going on at once (?)
I have no idea how the nmake compiles the libs, but I can clearly see several nmake processes open at once.
Definite access problems.
Clues anyone?

moowy
10th June 2008, 23:41
Some people have reported problems when compiling using multiple processes. The solution to that is that u specify that u want only one process to compile by using -MP switch and putting it in the qmake spec with the appropriate QMAKESPEC variable (example win32-mscv2008).

p.s.: I have successfully compiled qt 4.4 using 2 threads with visual studio 2008 and had no problems with it.

KjellKod
3rd July 2008, 00:48
Hi,

I've a quick quide on setting up and using Qt on windows.
If you use vs2005 be sure to install some updates since that can cause you grievance otherwise.

http://kjell.hedstrom.googlepages.com/qt4_visual_studio_express_2005