Results 1 to 9 of 9

Thread: Problem installing Qt 4.2.3 with MSVC 2005 express edition

  1. #1
    Join Date
    Jun 2007
    Posts
    2
    Thanks
    2

    Unhappy Problem installing Qt 4.2.3 with MSVC 2005 express edition

    I have been following the instructions here and here

    I had trouble running winzip wizard to download qt so I had to just drag and drop into the c:\lib\qt\4.2.3 directory.

    Then I applied the qt-win patch. That seemed to go fine.

    I ran vsvars32.bat script to configure the environment for the VC++ 2005 compiler... Apparently all happiness and light.

    then I ran
    C:\lib\qt\4.2.3>qconfigure.bat msvc20005
    from which I recieved a compiler error
    .\project.cpp(42) : fatal error C1083: Cannot open include file: 'Windows.h': no such file or directory

    I could see Windows.h in the Microsoft Include directory so I followed the suggestion above and ran the .bat with the include file explicitely specified.
    >qconfigure.bat msvc2005 -I "C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include -L "C:\Program Files \ Microsoft Platform SDK for Windows Server 2003 R2\Lib"

    to no avail. The file still could not be found.

    Thanks for your help.

    JJ

    PS from the command prompt window:

    Include paths...............C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
    Additional libraries........-LC:\Program Files\Microsoft Platform SDK for Window
    s Server 2003 R2\Lib
    Processing of project files have been disabled.
    Only use this option if you really know what you're doing.

    "Fixing qconfig.h"
    1 file(s) copied.

    Going to compile qmake now
    Continue? (Y/N):y

    Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
    Copyright (C) Microsoft Corporation. All rights reserved.

    cl -c -FIqmake_pch.h -Yuqmake_pch.h -Fptmp\qmake_pch.pch -nologo -Zm200
    -GS -O1 -MD -DNDEBUG -GR -EHsc -W3 -DUNICODE -DQT_LARGEFILE_SUPPORT -DWIN32 -D_C
    RT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DQT_BUILD_QMAKE -DQT_BOOTSTR
    APPED -DQT_NO_TEXTCODEC -DQT_NO_LIBRARY -DQT_NO_STL -DQT_NO_COMPRESS -DQT_NO_UNI
    CODETABLES -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM -DQMAKE_OPENSOURCE_EDITION -D
    QT_NODLL -DQT_NO_THREAD -DQT_NO_QOBJECT -I"../src/corelib/arch/generic" -I"gener
    ators" -I"generators\unix" -I"generators\win32" -I"generators\mac" -I"../include
    " -I"../include/QtCore" -I"../src/3rdparty/md5" -I"../qmake" -I"..\mkspecs\win32
    -msvc2005" -Fotmp\ @C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\nm5.tmp
    project.cpp
    .\project.cpp(42) : fatal error C1083: Cannot open include file: 'Windows.h': No
    such file or directory
    option.cpp
    .\option.cpp(650) : fatal error C1083: Cannot open include file: 'windows.h': No
    such file or directory
    Generating Code...
    NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio 8\VC\BIN\c
    l.EXE"' : return code '0x2'
    Stop.

  2. #2
    Join Date
    Mar 2007
    Posts
    12
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem installing Qt 4.2.3 with MSVC 2005 express edition

    Follow this one: http://kjellkod.blogspot.com/2007/02...o-express.html

    And you've tested any application with the windows header? Make sure you have installed the SDK.

  3. The following user says thank you to v3n0w for this useful post:

    jjhenjj (15th June 2007)

  4. #3
    Join Date
    Jun 2007
    Posts
    2
    Thanks
    2

    Default Re: Problem installing Qt 4.2.3 with MSVC 2005 express edition

    Thank you for this link. It looks like qconfigure.bat's -I and -L command line options are not working. The way the link gets around that problem is by adding them to the environment variables PATH, LIB, and INCLUDE set in vcvars32.bat.

  5. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem installing Qt 4.2.3 with MSVC 2005 express edition

    The -I and -L switches are not made to fix your build environment. They're only for 3rdparty libs like openssl or dbus...

  6. The following user says thank you to ChristianEhrlicher for this useful post:

    jjhenjj (15th June 2007)

  7. #5
    Join Date
    Nov 2006
    Location
    Tehran, Iran
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem installing Qt 4.2.3 with MSVC 2005 express edition

    I tried to integrate qt with msvc2005 with instructions above, but after running nmake i got this error:
    Qt Code:
    1. cl -c -FIqt_gui_pch.h -Yuqt_gui_pch.h -Fptmp\o
    2. nologo -Zm200 -GS -O2 -MD -DNDEBUG -W3 -GR -EHs
    3. -DUNICODE -DQT_LARGEFILE_SUPPORT -DWIN32 -D_CR
    4. TDC_NO_DEPRECATE -DQT_BUILD_GUI_LIB -DQT_MAKEDL
    5. I_CAST_WARNINGS -DQT3_SUPPORT -DQT_MOC_COMPAT -
    6. AGEENGINE -DQT_RASTER_PAINTENGINE -DQT_NO_CUPS
    7. VE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_SSE2 -DQT_NO_F
    8. STYLE_MAC -DQ_INTERNAL_QAPP_SRC -DQT_DLL -DQT_N
    9. clude\QtCore" -I"..\..\include\QtCore" -I"..\..
    10. -I"tmp" -I"..\3rdparty\wintab" -I"..\3rdparty\
    11. ialogs" -I"..\..\include\ActiveQt" -I"tmp\moc\r
    12. Qt4-shared\mkspecs\win32-msvc2005" -Fotmp\obj\r
    13. LOCALS~1\Temp\nm685.tmp
    14. zard_win_p.cpp
    15. \release_shared\moc_qwizard_win_p.cpp(36) : err
    16. a class or namespace name
    17. \release_shared\moc_qwizard_win_p.cpp(41) : err
    18. a class or namespace name
    19. \release_shared\moc_qwizard_win_p.cpp(42) : err
    20. s not allowed on nonmember functions
    21. \release_shared\moc_qwizard_win_p.cpp(46) : err
    22. a class or namespace name
    23. \release_shared\moc_qwizard_win_p.cpp(50) : err
    24. er 'QVistaHelper'
    25. \release_shared\moc_qwizard_win_p.cpp(50) : err
    26. '(' before identifier 'QVistaHelper'
    27. \release_shared\moc_qwizard_win_p.cpp(51) : err
    28. : illegal call of non-static member function
    29. c:\qt-win-opensource-src-4.3.0\include\qtcore\
    30. h(94) : see declaration of 'QObject::qt_metacas
    31. \release_shared\moc_qwizard_win_p.cpp(54) : err
    32. a class or namespace name
    33. \release_shared\moc_qwizard_win_p.cpp(56) : err
    34. : illegal call of non-static member function
    35. c:\qt-win-opensource-src-4.3.0\include\qtcore\
    36. h(94) : see declaration of 'QObject::qt_metacal
    37. fatal error U1077: 'cl' : return code '0x2'
    38.  
    39. fatal error U1077: '"C:\Program Files\Microsof
    40. 2003 R2\Bin\nmake.exe"' : return code '0x2'
    41.  
    42. fatal error U1077: 'cd' : return code '0x2'
    43.  
    44.  
    45. in-opensource-src-4.3.0>
    To copy to clipboard, switch view to plain text mode 

  8. #6
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Problem installing Qt 4.2.3 with MSVC 2005 express edition


  9. #7
    Join Date
    Nov 2006
    Location
    Shrewsbury, UK
    Posts
    97
    Thanks
    3
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem installing Qt 4.2.3 with MSVC 2005 express edition

    Can you share your environment variables.

    Pete
    Last edited by pdolbey; 9th July 2007 at 12:06. Reason: Question asked instead

  10. #8
    Join Date
    Jan 2007
    Posts
    81
    Thanks
    17
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem installing Qt 4.2.3 with MSVC 2005 express edition

    I followed the instructions on this site and have not had any problems using Qt with MSVC...


    http://qtnode.net/wiki?title=Qt4_with_Visual_Studio


    hope this helps,

    Jonathan

  11. #9
    Join Date
    Jan 2007
    Posts
    81
    Thanks
    17
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Problem installing Qt 4.2.3 with MSVC 2005 express edition

    environment variables:


    set INCLUDE=C:\Programme\Microsoft Visual Studio 8\VC\include;C:\Programme\Microsoft Platform SDK for Windows Server 2003 R2\Include

    set LIB=C:\Programme\Microsoft Visual Studio 8\VC\lib;C:\Programme\Microsoft Platform SDK for Windows Server 2003 R2\Lib


    everything seems to work when I enter that in the command prompt before running the qconfigure (see my link above).

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.