Results 1 to 7 of 7

Thread: cannot open input file "c:\Qt\4.3.3\lib\qtmain.lib?

  1. #1
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Question cannot open input file "c:\Qt\4.3.3\lib\qtmain.lib?

    Hi All,

    I have downloaded Qt 4.3.3 open source edition and installed it on my window 2000 having visual studio 2006.

    I have set the environment variables on my pc.

    I have successfully run the command qmake and have make the .dsw project for vc.
    when I build the project from the vc editor it give the following error ....

    LINK : fatal error LNK1181: cannot open input file "c:\Qt\4.3.3\lib\qtmain.lib"

    the qtmain.lib does not exists in the lib directory of qt.

    If any body knows how I can Build my project then plz help me.


    Thanks.
    Vishal

  2. #2
    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: cannot open input file "c:\Qt\4.3.3\lib\qtmain.lib?

    What files are in that directory?

  3. #3
    Join Date
    Dec 2006
    Posts
    211
    Thanks
    27
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: cannot open input file "c:\Qt\4.3.3\lib\qtmain.lib?

    Actually the lib folder contains the .a and .prl files.

  4. #4
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: cannot open input file "c:\Qt\4.3.3\lib\qtmain.lib?

    You downloaded the mingw version but compile with msvc - this can't work.
    You need to compile Qt by your own.

  5. #5
    Join Date
    May 2007
    Posts
    110
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: cannot open input file "c:\Qt\4.3.3\lib\qtmain.lib?

    Quote Originally Posted by ChristianEhrlicher View Post
    You downloaded the mingw version but compile with msvc - this can't work.
    You need to compile Qt by your own.
    Yeah we have downloaded the mingw version so that this is not working..
    Which Qt should be dowload and install so that it will support VC6.0 and not give this type of
    lib error...

  6. #6
    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: cannot open input file "c:\Qt\4.3.3\lib\qtmain.lib?

    Look at our homepage and choose the version without MinGW.

  7. #7
    Join Date
    Feb 2008
    Posts
    154
    Thanks
    12
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: cannot open input file "c:\Qt\4.3.3\lib\qtmain.lib?

    you must rebuild it but note that you must configure it for msvc as follows:
    configure -release -platform win32-msvc2005
    and build it.
    for more information to konw how to build Qt source visit :
    http://mismael85.blogspot.com/

Similar Threads

  1. Replies: 4
    Last Post: 24th November 2007, 13:33
  2. open large file in qt?
    By vishal.chauhan in forum Qt Programming
    Replies: 11
    Last Post: 29th May 2007, 07:25
  3. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15:21
  4. How to open a Pdf file from Qt
    By vishal.chauhan in forum Newbie
    Replies: 2
    Last Post: 28th March 2007, 08:24
  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, 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.