Results 1 to 2 of 2

Thread: VS2008 Professional: fatal error LNK1181: cannot open input file 'qtmain.lib'

  1. #1
    Join Date
    Dec 2009
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default VS2008 Professional: fatal error LNK1181: cannot open input file 'qtmain.lib'

    Hello,
    I installed Visual Studio 2008 Professional with SP1, I installed QT 4.6 Open Source Version, then I installed QT-VS addin.
    I created a new QT Application Project and I inserted a HelloWorld source cose.
    When I press "Build Solution", it returns with error:

    Qt Code:
    1. 1>Linking...
    2. 1>LINK : fatal error LNK1181: cannot open input file 'qtmain.lib'
    To copy to clipboard, switch view to plain text mode 

    Now this error is common in the web and I can't find any solution.

    I hope you can help me.

  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: VS2008 Professional: fatal error LNK1181: cannot open input file 'qtmain.lib'

    Do you have the visual studio version of Qt, or the QtCreator version? If the later, go download the former, or build it yourself.

    If you already have the libs, set QTDIR variable correctly.

Similar Threads

  1. Replies: 7
    Last Post: 18th September 2009, 14:44
  2. Replies: 1
    Last Post: 27th March 2009, 06:22
  3. Replies: 4
    Last Post: 24th November 2007, 13:33
  4. Qt 4.1.4 on VS2005 error- cannot open input file 'qtmain.lib'
    By Ashish in forum Installation and Deployment
    Replies: 10
    Last Post: 11th October 2006, 16:05

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.