Results 1 to 8 of 8

Thread: fatal error LNK1181: cannot open input file 'qtmaind.lib'

  1. #1
    Join Date
    Sep 2009
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default fatal error LNK1181: cannot open input file 'qtmaind.lib'

    Hello to you, i have compile the latest qt sdk with normal command prompt and add the necessary environment variable.

    I encounter error when create a project in Visual Studio.

    fatal error LNK1181: cannot open input file 'qtmaind.lib'

    Please help.

    Thanks.

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

    Default Re: fatal error LNK1181: cannot open input file 'qtmaind.lib'

    Problem now get worst because cannot add the QT Version.

    I try to add QT version but there is no OK button display.
    I have setup the necessary environment variable and cannot open the Designer and display error message like make sure the Designer.exe in your path.

    Please help.

    Thanks.
    Last edited by Peter_APIIT; 10th September 2009 at 13:51.

  3. #3
    Join Date
    Sep 2009
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: fatal error LNK1181: cannot open input file 'qtmaind.lib'

    Please help.

  4. #4
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,042
    Thanks
    8
    Thanked 133 Times in 128 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: fatal error LNK1181: cannot open input file 'qtmaind.lib'

    instead of qt sdk, download and compile the qt sources only.. ,,, qt sdk wont work with visual studio.

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

    Peter_APIIT (18th September 2009)

  6. #5
    Join Date
    Sep 2009
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: fatal error LNK1181: cannot open input file 'qtmaind.lib'

    The version problem has been solved but the qtmaind.lib need to be edit the qtmaind.lib to qtmain.lib then it working.

    Thanks.

  7. #6
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: fatal error LNK1181: cannot open input file 'qtmaind.lib'

    yeah because qtmaind.lib is a Debug version and qtmain.lib is a Release version. You should NOT do that.
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

  8. #7
    Join Date
    Sep 2009
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: fatal error LNK1181: cannot open input file 'qtmaind.lib'

    The default of QT SDK integration with VS is with d one. How to solve this issue ?

    I lazy to compile with QT source.

    Thanks.

  9. #8
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: fatal error LNK1181: cannot open input file 'qtmaind.lib'

    Like the other guy said, the Qt SDK doesn't work with Visual Studio. You'll have to compile the sources yourself to get it to work.
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

Similar Threads

  1. Open file without run again the program
    By avis_phoenix in forum Qt Programming
    Replies: 1
    Last Post: 8th August 2009, 00:01
  2. Replies: 10
    Last Post: 15th June 2009, 20:44
  3. Replies: 1
    Last Post: 27th March 2009, 07:22
  4. Replies: 4
    Last Post: 24th November 2007, 14:33
  5. 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, 17: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.