PDA

View Full Version : Unable to add library to the .pro file of the target file



binnet
23rd December 2014, 10:19
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?

anda_skoa
23rd December 2014, 11:01
The .so is the library's binary, it will be generated by the compiler once you build the library project.

Cheers,
_