Results 1 to 4 of 4

Thread: Problem with making .lib file

  1. #1
    Join Date
    May 2012
    Posts
    33
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Re: Problem with making .lib file

    hi all... Im trying to build a .lib file from my C++ library project in qt. So from >>>"other projects" i choose the >>>C++ library Project and then i set the type-combobox to >>> statical linked library
    .... when i build the project i expect that there would be a .lib file in debug folder >> debug .... but there was just to file with .a and .o .....
    who knows whats the problem?
    Im using:
    Windows 7 ultimate - 64bit
    Qt creator 2.4.1
    beside Qt 4.8.1 for desktop_ mingW

    Many thanks

    here is the .pro file ::

    QT -= gui

    TARGET = untitled
    TEMPLATE = lib
    CONFIG += staticlib

    SOURCES += untitled.cpp

    HEADERS += untitled.h
    unix:!symbian {
    maemo5 {
    target.path = /opt/usr/lib
    } else {
    target.path = /usr/lib
    }
    INSTALLS += target
    }

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Problem with making .lib file

    There is no problem. The MingW tool chain uses GCC and ld which produc static libraries named libname.a.

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

    k.qasempour (27th August 2012)

  4. #3
    Join Date
    May 2012
    Posts
    33
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    3

    Default Re: Problem with making .lib file

    thanks.. i got it.... then how can i produce .lib file

  5. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Problem with making .lib file

    Use the Microsoft compiler suite.

Similar Threads

  1. Errors in making SIS file
    By bilalsaeed in forum Qt Programming
    Replies: 1
    Last Post: 26th October 2011, 13:08
  2. Problem in making sis file in qt creator. please help
    By bilalsaeed in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 23rd January 2011, 22:44
  3. Need some insight on making a graph using .txt file
    By soulz9 in forum Installation and Deployment
    Replies: 0
    Last Post: 14th April 2010, 10:46
  4. making .dll file
    By omprakash in forum Qt Programming
    Replies: 3
    Last Post: 29th July 2008, 20:49
  5. making help file
    By deekayt in forum Qt Programming
    Replies: 1
    Last Post: 30th October 2006, 18:38

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.