Hey, I want to add ".so " shared library file in my application .
how do I do it??
Printable View
Hey, I want to add ".so " shared library file in my application .
how do I do it??
If you are using Qt creator, you need to modify .pro file as below.
INCLUDE += your include pathLIBS += path where your .so presents & .so fileQuote:
//Ex: INCLUDEPATH += /boost/1.46.1.p1_64/include
above is to use boost library in my applicationQuote:
//Ex: LIBS += -L/boost/1.46.1.p1_64/lib -lboost_regex
where /boost/1.46.1.p1_64/include is where my .h files of library presents &
-L/boost/1.46.1.p1_64/lib -lboost_regex // here -L should be preceded by lib path (/boost/1.46.1.p1_64/lib is where boost_regex.so presents) & boost_regex should be preceded by -l
& if you search in google, you will get lots of pages with detailed explanation .
It is giving .so file is crashed , could not read file
but .so is working properly