Aargh.

After many many hours and energy drinks later I still can't get Qt 4.5.1 to build succesfully. I'm trying to build it on windows using Visual Studio 2008. I have installed DirectX and PlatformSdk.

I get the following error:

Qt Code:
  1. link /LIBPATH:"c:\Qt\4.5.1\lib" /LIBPATH:"c:\Qt\4.5.1\lib" /NOLOGO /INCR
  2. EMENTAL:NO /LTCG /DLL /MANIFEST /MANIFESTFILE:"tmp\obj\release_shared\qjpeg.inte
  3. rmediate.manifest" /VERSION:4.51 /OUT:..\..\..\..\plugins\imageformats\qjpeg4.dl
  4. l @C:\Users\Admin\AppData\Local\Temp\nm7BA9.tmp
  5. LINK : fatal error LNK1104: cannot open file '..\..\..\..\plugins\imageformats\q
  6. jpeg4.dll'
  7. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
  8. \link.EXE"' : return code '0x450'
  9. Stop.
  10. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
  11. \nmake.exe"' : return code '0x2'
  12. Stop.
  13. NMAKE : fatal error U1077: 'cd' : return code '0x2'
  14. Stop.
  15. NMAKE : fatal error U1077: 'cd' : return code '0x2'
  16. Stop.
  17. NMAKE : fatal error U1077: 'cd' : return code '0x2'
  18. Stop.
To copy to clipboard, switch view to plain text mode 

Used configuration line:
Qt Code:
  1. configure -no-sql-sqlite -no-qt3support -platform win32-msvc2008 -no-libtiff -no-dbus -no-phonon -no-phonon-backend -no-webkit
  2.  
  3. Also run before config:
  4. c:\Program Files\Microsoft DirectX SDK (March 2009)\Utilities\bin\dx_setenv.cmd
  5. c:\Program Files\Microsoft Visual Studio 9.0\VC\bin\vcvars32.bat
To copy to clipboard, switch view to plain text mode 

Any ideas how to fix this?

I also noticed that even bundled demos+tools won't run anymore. For example designer gives error "the beginning of the procedure ?allocateNode@QHashData@@QAEPAXXZ wasn't found from QtCore4.dll" (freely translated from Finnish). It did run perfectly well before. Apparently unsuccesfull compilation breaks everything...