Linux, Qt calls the shared library .so

Modify the existing pro file, add the following few words:

+ = INCLUDEPATH / Home / Ubuntu / Camera / Camera /
LIBS + = -L / Home / Ubuntu / Camera / Camera -ltest
INCLUDEPATH adds a directory of the project in order to find the header file, and add LIBS is a shared library file, -L add directory, -l specify the shared library name.
 

Guess you like

Origin www.cnblogs.com/hshy/p/11351714.html