Results 1 to 6 of 6

Thread: Trying to understand about integrating Qt with VS 2005

  1. #1
    Join Date
    Feb 2010
    Posts
    99
    Thanks
    31
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Trying to understand about integrating Qt with VS 2005

    Hi,

    I am trying to integrate Qt 4.6, which comes along with Qt SDK 2009.05, with VS 2005 on my Win XP machine. I have downloaded and installed Qt-Vs add-in and I am able to create new Qt Gui project from VS-2005. But when I compile and run the project (I haven't added any new controls on the Window- Plain window only), linker fails saying that its not able to find qtmaind.lib. Then I build Qt src (which comes along with SDK). I find that mainly 3 libraries are needed qtmaind.lib,QtCored4.lib and QtGuid4.lib. My build eventually fails while trying to build WebKit, but still I can now compile and run Qt application from VS-2005.

    So my question is what all libraries do we need to build other than those which come along with the SDK, so that I can create Qt projects from VS without any issue in future?
    Any ideas?

    Thanks.

  2. #2
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to understand about integrating Qt with VS 2005

    Maybe I don't understand your question correctly, but you can download Qt for VS from Nokias website which contains all the libraries required in a pre-compiled form.

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

    dpatel (24th February 2010)

  4. #3
    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 understand about integrating Qt with VS 2005

    If You want to use Qt with Visual Studio don't use Qt SDK. Qt SDK is prepared to work with mingw. Download from Qt library precompiled for Visual Studio (2005 or 2008) or source packet and rebuild it with Yours prefered compiler.

  5. The following user says thank you to Lesiok for this useful post:

    dpatel (24th February 2010)

  6. #4
    Join Date
    Feb 2010
    Posts
    99
    Thanks
    31
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Trying to understand about integrating Qt with VS 2005

    Thanks Lesiok for the rely.

    I even tried to compile the source code with nmake (which comes along with the VS 2005). But the compilation fails when it tries to build it with Webkit. But by them time it has built the necessary libraries for Qt -VS integration to work.

    I guess I will have to try to solve with build failure issue.

    Thanks,
    DPatel

  7. #5
    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 understand about integrating Qt with VS 2005

    If You don't need Webkit just switch them off. We have a problem with build Webkit on WS-2003. Linker is unable to build DLL. On XP and Vista Webkit compiles without problems.

  8. #6
    Join Date
    Aug 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Trying to understand about integrating Qt with VS 2005

    Hello,

    Do i understand this correct? Can I use the precompiled version for VS2008 in my VS2005? Or do I need to recompile this? If I need to recompile, is there a precompiled version for VS2005?

    Thankx!

    Niki

Similar Threads

  1. Something i am not understand about Qt.
    By HeX0R in forum Newbie
    Replies: 8
    Last Post: 12th February 2010, 04:37
  2. I don't quite understand this multithread example
    By HelloDan in forum Qt Programming
    Replies: 2
    Last Post: 9th April 2009, 08:58
  3. need help .not able to understand.......
    By sh123 in forum Qt Programming
    Replies: 1
    Last Post: 20th January 2009, 01:50
  4. Replies: 6
    Last Post: 25th February 2008, 10:52
  5. Integrating C with Qt
    By deepakn in forum Qt Programming
    Replies: 2
    Last Post: 4th December 2007, 09:12

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.