Results 1 to 2 of 2

Thread: Unable to add library to the .pro file of the target file

  1. #1
    Join Date
    Dec 2014
    Posts
    1
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11

    Default Unable to add library to the .pro file of the target file

    I have created a shared library in Qt 5.0.2 called "something". Now, 4 files have been created (something.pro,something.h,something_global.h and something.cpp).
    I want to use this library in another project called "trial". How to use the library "something" in "trial"?

    Please help me as I am new to Qt as well as Linux(Fedora 16).
    I know that I should use
    LIBS += [path to library files]
    INCLUDEPATH+= [path to header files]

    I am unable find the library file (something.so).
    Will "something.so" be auto generated if I have created the library?

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Unable to add library to the .pro file of the target file

    The .so is the library's binary, it will be generated by the compiler once you build the library project.

    Cheers,
    _

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

    binnet (12th January 2015)

Similar Threads

  1. Control config target names from PRO file
    By RolandHughes in forum Qt Tools
    Replies: 0
    Last Post: 23rd February 2014, 17:48
  2. Replies: 8
    Last Post: 27th December 2013, 03:47
  3. QMake how to define install target of lib in the .pro file
    By thgis in forum Qt Tools
    Replies: 1
    Last Post: 15th April 2013, 13:59
  4. Replies: 0
    Last Post: 12th April 2010, 08:05
  5. Replies: 4
    Last Post: 18th December 2009, 19:55

Tags for this Thread

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.