Results 1 to 5 of 5

Thread: i have a problem in integrating Qt with msvc2005

  1. #1
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Question i have a problem in integrating Qt with msvc2005

    hi,
    i got a source of a Qt and i extracted it on c:\qt\4.3.2
    i configured it from msvc2005 command prompt just like this
    configure -platform win32-msvc2005 -static -release
    until now every thing is fine.
    i built it through
    nmake
    and it is built fine
    but when i tried to write a program and compile it in msvc2005 i got the following error
    "LINK : fatal error LNK1181: cannot open input file 'QtCore4.lib'"
    can you help me
    thank you.

  2. #2
    Join Date
    Oct 2007
    Location
    Munich, Bavaria
    Posts
    144
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: i have a problem in integrating Qt with msvc2005

    you need to add the location of the Qt-libs to the build environment.
    As far as I remember: Project Settings->linker->general there is a property called like "additional lib path"

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: i have a problem in integrating Qt with msvc2005

    Or you should use qmake to manage your projects. You can use -t vc switch to generate a Visual Studio solution from a .pro file.

  4. #4
    Join Date
    Nov 2007
    Posts
    41
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: i have a problem in integrating Qt with msvc2005

    it is already set to "$(QTDIR)\lib"
    form project properties->linker->General->additional library directories.
    can you send me abook name or URL that deal with this situation?
    thank you very much for your efforts to make begginers learn faster and easer.

  5. #5
    Join Date
    Oct 2007
    Location
    Munich, Bavaria
    Posts
    144
    Thanks
    1
    Thanked 19 Times in 19 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: i have a problem in integrating Qt with msvc2005

    I agree with wysota: use qmake to generate the solution and project files.
    http://doc.trolltech.com/4.3/qmake-manual.html

Similar Threads

  1. Replies: 16
    Last Post: 7th March 2006, 15:57

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.