Results 1 to 20 of 23

Thread: Visual Studio 2005 Express

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: Visual Studio 2005 Express

    Quote Originally Posted by Muzz View Post
    So that concluses me that 4.2.0 does not support MSVC, because I get platform errors while trying to configure?
    There's a community patch which makes it possible. See our wiki: [WIKI]Qt4 with Visual Studio[/WIKI] for more details.
    J-P Nurmi

  2. #2
    Join Date
    Feb 2008
    Location
    Netherlands, The
    Posts
    18
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Visual Studio 2005 Express

    I get alot of errors while making the vcproj files, How can I solve this?

    Qt Code:
    1. D:\project\src>qmake
    2.  
    3. D:\project\src>qmake -tp vc
    4. WARNING: Ignored (not found) 'D:\project\src\zlib\zlib.vcproj'
    5. WARNING: Ignored (not found) 'D:\project\src\libcrypt\crypt.vcproj'
    6. WARNING: Ignored (not found) 'D:\project\src\libidn\idn.vcproj'
    7. WARNING: Ignored (not found) 'D:\project\src\minizip\minizip.vcproj'
    8. WARNING: Ignored (not found) 'D:\project\src\libmess\mess.vcproj'
    9. WARNING: Ignored (not found) 'D:\project\src\mess\mess.vcproj'
    10. WARNING: Ignored (not found) 'D:\project\src\plugins\disco\disco.vcproj'
    11. WARNING: Ignored (not found) 'D:\project\src\plugins\register\register.vcproj'
    12. WARNING: Ignored (not found) 'D:\project\src\plugins\privacy\privacy.vcproj'
    13. WARNING: Ignored (not found) 'D:\project\src\plugins\search\search.vcproj'
    14. WARNING: Ignored (not found) 'D:\project\src\plugins\xhtml\xhtml.vcproj'
    15. WARNING: Ignored (not found) 'D:\project\src\plugins\chatstate\chatstate.vcproj'
    16. WARNING: Ignored (not found) 'D:\project\src\plugins\autostatus\autostatus.vcproj'
    17. WARNING: Ignored (not found) 'D:\project\src\plugins\vcard\vcard.vcproj'
    18. WARNING: Ignored (not found) 'D:\project\src\plugins\history\history.vcproj'
    19. WARNING: Ignored (not found) 'D:\project\src\plugins\bytestream\bytestream.vcproj'
    20. WARNING: Ignored (not found) 'D:\project\src\plugins\filetransfer\filetransfer.vcproj'
    21. WARNING: Ignored (not found) 'D:\project\src\plugins\rosterexchange\rosterexchange.vcproj'
    22. WARNING: Ignored (not found) 'D:\project\src\plugins\muc\muc.vcproj'
    23. WARNING: Ignored (not found) 'D:\project\src\zlib\zlib.vcproj'
    24. WARNING: Ignored (not found) 'D:\project\src\libcrypt\crypt.vcproj'
    25. WARNING: Ignored (not found) 'D:\project\src\libidn\idn.vcproj'
    26. WARNING: Ignored (not found) 'D:\project\src\minizip\minizip.vcproj'
    27. WARNING: Ignored (not found) 'D:\project\src\libmess\mess.vcproj'
    28. WARNING: Ignored (not found) 'D:\project\src\mess\mess.vcproj'
    29. WARNING: Ignored (not found) 'D:\project\src\plugins\disco\disco.vcproj'
    30. WARNING: Ignored (not found) 'D:\project\src\plugins\register\register.vcproj'
    31. WARNING: Ignored (not found) 'D:\project\src\plugins\privacy\privacy.vcproj'
    32. WARNING: Ignored (not found) 'D:\project\src\plugins\search\search.vcproj'
    33. WARNING: Ignored (not found) 'D:\project\src\plugins\xhtml\xhtml.vcproj'
    34. WARNING: Ignored (not found) 'D:\project\src\plugins\chatstate\chatstate.vcproj'
    35. WARNING: Ignored (not found) 'D:\project\src\plugins\autostatus\autostatus.vcproj'
    36. WARNING: Ignored (not found) 'D:\project\src\plugins\vcard\vcard.vcproj'
    37. WARNING: Ignored (not found) 'D:\project\src\plugins\history\history.vcproj'
    38. WARNING: Ignored (not found) 'D:\project\src\plugins\bytestream\bytestream.vcproj'
    39. WARNING: Ignored (not found) 'D:\project\src\plugins\filetransfer\filetransfer.vcproj'
    40. WARNING: Ignored (not found) 'D:\project\src\plugins\rosterexchange\rosterexchange.vcproj'
    41. WARNING: Ignored (not found) 'D:\project\src\plugins\muc\muc.vcproj'
    42. WARNING: Ignored (not found) 'D:\project\src\zlib\zlib.vcproj'
    43. WARNING: Ignored (not found) 'D:\project\src\libcrypt\crypt.vcproj'
    44. WARNING: Ignored (not found) 'D:\project\src\libidn\idn.vcproj'
    45. WARNING: Ignored (not found) 'D:\project\src\minizip\minizip.vcproj'
    46. WARNING: Ignored (not found) 'D:\project\src\libmess\mess.vcproj'
    47. WARNING: Ignored (not found) 'D:\project\src\mess\mess.vcproj'
    48. WARNING: Ignored (not found) 'D:\project\src\plugins\disco\disco.vcproj'
    49. WARNING: Ignored (not found) 'D:\project\src\plugins\register\register.vcproj'
    50. WARNING: Ignored (not found) 'D:\project\src\plugins\privacy\privacy.vcproj'
    51. WARNING: Ignored (not found) 'D:\project\src\plugins\search\search.vcproj'
    52. WARNING: Ignored (not found) 'D:\project\src\plugins\xhtml\xhtml.vcproj'
    53. WARNING: Ignored (not found) 'D:\project\src\plugins\chatstate\chatstate.vcproj'
    54. WARNING: Ignored (not found) 'D:\project\src\plugins\autostatus\autostatus.vcproj'
    55. WARNING: Ignored (not found) 'D:\project\src\plugins\vcard\vcard.vcproj'
    56. WARNING: Ignored (not found) 'D:\project\src\plugins\history\history.vcproj'
    57. WARNING: Ignored (not found) 'D:\project\src\plugins\bytestream\bytestream.vcproj'
    58. WARNING: Ignored (not found) 'D:\project\src\plugins\filetransfer\filetransfer.vcproj'
    59. WARNING: Ignored (not found) 'D:\project\src\plugins\rosterexchange\rosterexchange.vcproj'
    60. WARNING: Ignored (not found) 'D:\project\src\plugins\muc\muc.vcproj'
    To copy to clipboard, switch view to plain text mode 
    Microsoft Visual C++ 2005 Express - V: 8.0.50727.42
    QT 4.2.0 Open Source - Installed in D:\qt-win-4.2.0

  3. #3
    Join Date
    Feb 2008
    Posts
    26
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Visual Studio 2005 Express

    Here's how I get Qt snapshots fully working, configured and built with MSVC2005:

    - Install MVSC2005 (or the other more recent version)
    - Install the most recent Platform SDK (see MSDN)
    - Afaik you'll need the Internet SDK as well, not sure, but better safe than sorry
    - Then, download and extract a recent snapshot or the preview release to D:\Qt\4.x.x
    - Open up a console with the MSVC settings loaded and go to your Qt directory
    - Type "configure -platform win32-msvc2005" without the quotation marks
    - That will build you the project files you'll need
    - After that, it's as simple as running "qmake" and drinking a lot of coffee

    Then, add D:\Qt\4.x.x\bin and D:\Qt\4.x.x\lib to your path environment variable, and you'll be able to use this version of Qt from everywhere on your system.

    Hope that helps!
    Last edited by Stukfruit; 13th February 2008 at 07:54.

  4. #4
    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: Visual Studio 2005 Express

    Quote Originally Posted by Stukfruit View Post
    - After that, it's as simple as running "qmake" and drinking a lot of coffee
    I suppose you mean "nmake".
    J-P Nurmi

  5. #5
    Join Date
    Feb 2008
    Posts
    26
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Visual Studio 2005 Express

    Afaik it doesn't really matter, but yeah, use whatever you like to use and then start drinking the coffee

  6. #6
    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: Visual Studio 2005 Express

    Quote Originally Posted by Stukfruit View Post
    Afaik it doesn't really matter, but yeah, use whatever you like to use and then start drinking the coffee
    In fact, there's a significant difference. qmake is a tool which generates makefiles (or project files) but doesn't build anything whereas nmake is the actual tool which builds projects based on provided makefiles. Very nice summary, though.
    J-P Nurmi

  7. #7
    Join Date
    Feb 2008
    Posts
    26
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Visual Studio 2005 Express

    I know, I know

    I wasn't able to edit my previous post anymore, but I've got some updates. Just had a new system, so had to do everything right out of the box again. I was close, but some things could have been described better, so here goes:

    -------

    Here's how I get Qt snapshots fully working, configured and built with MSVC2005. The same list of routines is valid for MSVC2008 (aka Visual C++ 9.0) as well, it can open the project files from 2005 without any conversions (at least, I haven't seen it doing any).

    - Install MSVC2005 or MSVC2008
    - Install the most recent Platform SDK (@ MSDN: "Platform SDK for Windows Server 2003 R2")
    - From the Platform SDK, you'll need to install at least the base + internet options
    - Then, download and extract a recent snapshot or the preview release to D:\Qt\4.x.x
    - Open up a console with the MSVC settings loaded (see MSVC Tools-menu) and go to your Qt directory
    - Type "configure -platform win32-msvc2005" without the quotation marks
    - That will build you the project files you'll need
    - After that, it's as simple as running "nmake" and drinking a lot of coffee

    Then, add D:\Qt\4.x.x\bin and D:\Qt\4.x.x\lib to your path environment variable, and you'll be able to use this version of Qt from everywhere on your system. The latter could be added to the library section in the options from MSVC as well.

    When you run into a build error which tells you that QNetworkProxy is undefined, that's caused because one of the headers in Qt tells the compiler to forward declare QNetworkProxy only. Including QNetworkProxy.h in the source file giving the error, should solve it.

  8. #8
    Join Date
    May 2007
    Posts
    91
    Thanks
    60
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Visual Studio 2005 Express


  9. #9
    Join Date
    Mar 2006
    Posts
    58
    Thanks
    2
    Thanked 3 Times in 3 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Visual Studio 2005 Express

    I would just add that you can use Visual C++ 2008 express edition, and use the command prompt initiall. 'qmake -project' 'qmake -tp vc' then open project with vc express 2008...you do not have to worry about any .bat files, etc. then. And use Qt 4.3.3, no reason to use 4.3.2

    Also, if you use web install, it will download and install the needed sdk for you. Personally I think this setup with building Qt statically, and building static apps is better than the mingw setup.
    Last edited by ksqt; 28th February 2008 at 14:33. Reason: Clarify install of SDK with visual c++ 9

  10. #10

    Default Re: Visual Studio 2005 Express

    hi ksqt,

    will u please tell me the steps from the beginning how to write a sample Qt application on windows mobile 5.0 .

    I am trying to write one sample application i am getting the following error fopr mobile but it is working fine for desktop.

    "use of c runtime library internal header file"

    thanx in advance

    Thanks & regards
    pallavi

Similar Threads

  1. Set up the Qt4.3.2 with Visual Studio 2005
    By lamoda in forum Installation and Deployment
    Replies: 6
    Last Post: 30th January 2008, 06:51
  2. Qt configure with msvc.net
    By jivanr in forum Installation and Deployment
    Replies: 1
    Last Post: 11th June 2007, 08:17
  3. Qt Cryptographic Architecture
    By vermarajeev in forum Qt Programming
    Replies: 6
    Last Post: 9th February 2007, 13:15
  4. Qt-4.2.2 qmake won't compile under visual studio 2005 on vista
    By moowy in forum Installation and Deployment
    Replies: 7
    Last Post: 13th January 2007, 21:06
  5. Qt Designer & Visual Studio 2005
    By pSiCho in forum Qt Tools
    Replies: 6
    Last Post: 9th February 2006, 13:40

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.