Results 1 to 10 of 10

Thread: Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

  1. #1
    Join Date
    Mar 2009
    Location
    Hawaii
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

    1. Downloaded the LGPL version: qt-win-opensource-4.5.0-mingw.exe (from http://www.qtsoftware.com/downloads)
    2. Ran qt-win-opensource-4.5.0-mingw.exe which also installs MinGW
    3. Setup PATH environment to have C:\Qt and c:\Qt\bin and C:\MinGW and C:\MinGW\bin
    4. Set Environmental Variable QTDIR to C:\Qt
    5. Set Environmental Variable QMAKESPEC to win32-msvc2008
    6. Rebooted
    7. Started VC++
    8. Opened Visual Studio 2008 Command Prompt
    9. cd C:\Qt\4.5.0
    10. ran configure in the Command Prompt (seemed fine)
    11. ran nmake in the same Command Prompt

    Got the following Error:

    Qt Code:
    1. cl -c -FIWebKit_pch.h -YuWebKit_pch.h -Fptmp\obj\debug_shared\QtWebKitd_
    2. pch.pch -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -DQT_SHARED -DQT_THREAD_S
    3. UPPORT -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DBUILDING_QT__=1 -DUSE_SYSTEM_M
    4. ALLOC -DNDEBUG -DQT_MAKEDLL -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT3
    5. _SUPPORT -DQT_MOC_COMPAT -D_USE_MATH_DEFINES -DBUILD_WEBKIT -D_HAS_TR1=0 -DENABL
    6. E_OFFLINE_WEB_APPLICATIONS=1 -DENABLE_DOM_STORAGE=1 -DENABLE_ICONDATABASE=1 -DEN
    7. ABLE_DATABASE=1 -DENABLE_DASHBOARD_SUPPORT=0 -DENABLE_XPATH=1 -DENABLE_WML=0 -DE
    8. NABLE_SVG=1 -DENABLE_SVG_FONTS=1 -DENABLE_SVG_FILTERS=1 -DENABLE_SVG_FOREIGN_OBJ
    9. ECT=1 -DENABLE_SVG_ANIMATION=1 -DENABLE_SVG_AS_IMAGE=1 -DENABLE_SVG_USE=1 -DENAB
    10. LE_VIDEO=1 -DENABLE_NETSCAPE_PLUGIN_API=1 -DWTF_USE_JAVASCRIPTCORE_BINDINGS=1 -D
    11. WTF_CHANGES=1 -DBUILDING_QT__ -DSQLITE_CORE -DSQLITE_OMIT_LOAD_EXTENSION -DSQLIT
    12. E_OMIT_COMPLETE -DQT_DLL -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I"..\..\..
    13. \..\include\QtCore" -I"..\..\..\..\include\QtNetwork" -I"..\..\..\..\include\QtG
    14. ui" -I"..\..\..\..\include" -I"storage" -I"..\JavaScriptCore\os-win32" -I"..\Web
    15. Kit\qt\Api" -I"..\..\..\..\include\QtWebKit" -I"tmp\rcc\debug_shared" -I"tmp" -I
    16. "." -I"..\JavaScriptCore" -I"..\JavaScriptCore\ForwardingHeaders" -I"..\JavaScri
    17. ptCore\interpreter" -I"..\JavaScriptCore\bytecode" -I"..\JavaScriptCore\debugger
    18. " -I"..\JavaScriptCore\parser" -I"..\JavaScriptCore\runtime" -I"c:\Qt\4.5.0\src\
    19. 3rdparty\webkit\WebCore\..\JavaScriptCore\bindings" -I"..\JavaScriptCore\wrec" -
    20. I"..\JavaScriptCore\jit" -I"..\JavaScriptCore\wtf" -I"tmp" -I"..\JavaScriptCore"
    21. -I"..\JavaScriptCore\parser" -I"..\JavaScriptCore\bytecompiler" -I"..\JavaScrip
    22. tCore\debugger" -I"..\JavaScriptCore\runtime" -I"..\JavaScriptCore\wtf" -I"..\Ja
    23. vaScriptCore\wtf\unicode" -I"..\JavaScriptCore\interpreter" -I"..\JavaScriptCore
    24. \jit" -I"..\JavaScriptCore\profiler" -I"..\JavaScriptCore\wrec" -I"..\JavaScript
    25. Core\API" -I"..\..\webkit" -I"..\JavaScriptCore\ForwardingHeaders" -I"..\JavaScr
    26. iptCore\bytecode" -I"..\JavaScriptCore\assembler" -I"..\JavaScriptCore\os-win32"
    27. -I"..\JavaScriptCore\pcre" -I"c:\Qt\4.5.0\src\3rdparty\webkit\WebKitBuild\Debug
    28. \JavaScriptCore\tmp" -I"platform\qt" -I"platform\network\qt" -I"platform\graphic
    29. s\filters" -I"platform\graphics\transforms" -I"platform\graphics\qt" -I"svg\grap
    30. hics\qt" -I"loader" -I"page\qt" -I"..\WebKit\qt\WebCoreSupport" -I"..\WebKit\qt\
    31. Api" -I"bridge\qt" -I"." -I"ForwardingHeaders" -I"..\..\webkit" -I"platform" -I"
    32. platform\animation" -I"platform\network" -I"platform\graphics" -I"svg\animation"
    33. -I"svg\graphics" -I"svg\graphics\filters" -I"platform\sql" -I"platform\text" -I
    34. "loader" -I"loader\appcache" -I"loader\archive" -I"loader\icon" -I"css" -I"dom"
    35. -I"page" -I"page\animation" -I"bridge" -I"editing" -I"rendering" -I"rendering\st
    36. yle" -I"history" -I"inspector" -I"xml" -I"html" -I"wml" -I"bindings\js" -I"svg"
    37. -I"platform\image-decoders" -I"plugins" -I"bridge" -I"bridge\c" -I"bridge\qt" -I
    38. "generated" -I"plugins\win" -I"..\..\sqlite" -I"..\..\..\..\include\phonon" -I".
    39. .\..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"." -I"..\..\..\..\mkspe
    40. cs\win32-msvc2008" -Fotmp\obj\debug_shared\ @C:\Users\Greg\AppData\Local\Temp\nm
    41. A2D5.tmp
    42. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 9.0\VC\BIN
    43. \nmake.exe"' : return code '0xc0000005'
    44. Stop.
    45. NMAKE : fatal error U1077: 'cd' : return code '0x2'
    46. Stop.
    To copy to clipboard, switch view to plain text mode 

    I tried rebooting and just running nmake again - but the same error persists.

    Can anyone help me?

  2. #2
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

    I compiled Qt 4.5.0 already on four different PCs (all WinXP, all with VS 2008).
    Every time I tried to configure -with- Webkit support. And every time the build process stopped with an error showing something with Webkit.
    Every time I decided to reconfigure with -no-webkit option.
    An the build process ran without any error.

    I don't know what's wrong with Qt and Webkit. But I recommend building Qt without Webkit support.
    Look at the first line of the message you provided.

    [edit]
    And why did you donwload the mingw version if you have VS Studio?
    Below the link to qt-win-opensource-4.5.0-mingw.exe is the link to qt-win-opensource-src-4.5.0.zip which is all we need (http://www.qtsoftware.com/downloads/windows-cpp).
    Last edited by Boron; 10th March 2009 at 17:12.

  3. #3
    Join Date
    Mar 2009
    Location
    Hawaii
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

    Aloha Boron,

    Thanks! I believe you are right on. I seem to recall some warnings flying by during the configure related to not being able to open some Webkit files.

    Regarding MinGW - I simply didn't know any better. and I thought it wouldn't hurt.
    I'll uninstall and go for the proper installation this time.

    BTW, for us total newbees -

    configure -no-webkit

    Is this the correct configuration command we should use?

  4. #4
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

    I always do a "configure -debug-and-release -no-qt3support -no-webkit"
    (no-webkit for obvious reasons since it is part of Qt; no-qt3support because I don't need it; debug-and-release because I sometimes debug into Qt classes (curiosity))
    This builds a dynamically linked version of Qt. You may add a "-static" for easier deployment of your Qt applications (link your apps statically; no Qt dlls required when deploying).

    (From Hawaii! Nice. I hope weather is not so lousy at it is in south Germany )

  5. #5
    Join Date
    Mar 2009
    Location
    Hawaii
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

    Aloha and thanks Boron.

    Took forever to compile the environment - but it's working.

    At least I have the helloWorld example to work.
    Now I can seriously start to learn how to use Qt.

    Next step for me is to learn how to incorporate QtDesigner UI files with MSVC++
    That and really start looking at the docs.

    I sincerely appreciate your help in getting me started.

    Aloha

  6. #6
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

    You must create rule for uic.exe tool :
    - in Solution Explorer push RMB on root
    - from menu select Custom Build Rules
    - create rule and attach them to UI files

  7. #7
    Join Date
    Jul 2009
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

    hi,
    "configure -debug-and-release -no-qt3support -no-webkit" helped me pass the configuration and nmake steps without fatal errors, but now i get the same error (u1077) when i try to build a project, even though its preview seems fine. what should i do now?

    thanks

    mehmet

  8. #8
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

    What is the FIRST error? Can you paste the exact compiler command and the resulting error, please?
    J-P Nurmi

  9. #9
    Join Date
    Jul 2009
    Posts
    9
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

    i was having the fatal error u1077 message during the configuration, but i overcame it with your configuration command. now when i try to build a project i get the message that i posted below, but before reading that, you should know that i can build projects from visual studio's comman line using "qmake -o Makefile hello.pro" then i type "nmake". so it's ok if you dont post a solution. here is the error message:

    Running build steps for project calculatorbuilder...

    Configuration unchanged, skipping QMake step.

    Starting: C:/Program Files/Microsoft Visual Studio 8/VC/BIN/nmake.exe

    "C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe" -f Makefile.Debug all

    Microsoft (R) Program Maintenance Utility Version 8.00.50727.762

    Copyright (C) Microsoft Corporation. All rights reserved.

    Microsoft (R) Program Maintenance Utility Version 8.00.50727.762

    Copyright (C) Microsoft Corporation. All rights reserved.

    C:\Qt\2009.03\qt\bin\moc.exe -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\include\QtUiTools" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\QtXml" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\mkspecs\win32-msvc2008" -D_MSC_VER=1500 -DWIN32 calculatorform.h -o tmp\moc\debug_shared\moc_calculatorform.cpp

    c:\Qt\2009.03\qt\bin\rcc.exe -name calculatorbuilder calculatorbuilder.qrc -o tmp\rcc\debug_shared\qrc_calculatorbuilder.cpp

    cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\include\QtUiTools" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\QtXml" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\mkspecs\win32-msvc2008" -Fotmp\obj\debug_shared\ @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nmD6.tmp

    calculatorform.cpp

    main.cpp

    Generating Code...

    cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\include\QtUiTools" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\QtXml" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\mkspecs\win32-msvc2008" -Fotmp\obj\debug_shared\ @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nmD7.tmp

    moc_calculatorform.cpp

    cl -c -nologo -Zm200 -Zc:wchar_t- -Zi -MDd -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_LARGEFILE_SUPPORT -DQT_DLL -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\..\..\include\QtUiTools" -I"..\..\..\include\QtCore" -I"..\..\..\include\QtGui" -I"..\..\..\include\QtXml" -I"..\..\..\include" -I"..\..\..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\..\..\mkspecs\win32-msvc2008" -Fotmp\obj\debug_shared\ @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nmD8.tmp

    qrc_calculatorbuilder.cpp

    link /LIBPATH:"c:\Qt\2009.03\qt\lib" /LIBPATH:"c:\Qt\2009.03\qt\lib" /NOLOGO /DEBUG /MANIFEST /MANIFESTFILE:"tmp\obj\debug_shared\calculatorbuild er.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:debug\calculatorbuilder.exe @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nmD9.tmp

    qtmaind.lib(qtmain_win.obj) : fatal error LNK1103: debugging information corrupt; recompile module

    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\link.EXE"' : return code '0x44f'

    Stop.

    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\nmake.exe"' : return code '0x2'

    Stop.

    Exited with code 2.

    Error while building project calculatorbuilder

    When executing build step 'Make'

  10. #10
    Join Date
    Jun 2010
    Location
    Brazil
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Lightbulb Re: Trying to Install Qt 4.5 on Vista32 with MSVC++ 2008 Express: and Failing

    Quote Originally Posted by GregMalick View Post
    configure -no-webkit
    According to this Bug Report (http://bugreports.qt.nokia.com/browse/QTBUG-6470),
    this problem with the Webkit could be solved by deleting some temp files installed by the full distribution of Qt SDK - 4.6.0 version.
    Don't know if it also applies for 4.5, but the files are:

    <qt installation path, for example C:\Qt\2010.04\qt>
    \src\3rdparty\webkit\WebCore\tmp\moc\debug_shared\ mocinclude.tmp
    \src\3rdparty\webkit\WebCore\tmp\moc\release_share d\mocinclude.tmp


    Others that were causing error when I tried building were
    \src\script\tmp\moc\debug_shared\mocinclude.tmp
    \src\script\tmp\moc\release_shared\mocinclude.tmp

    and as they said there, it worked fine here when I removed these.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.