How to include so files (libraries).
-
@jenya7 Did you read https://doc.qt.io/qtcreator/creator-project-qmake-libraries.html ?
/home/pi/pawn/build looks like a build folder, include files are usually not copied to build folder.
INCLUDEPATH should point to source folder containing the header files.
You also have to add LIBS which points to the library files you want to link.
https://doc.qt.io/qt-5/qmake-variable-reference.html#libs -
@jsulm said in How to include so files (libraries).:
@jenya7 Did you read https://doc.qt.io/qtcreator/creator-project-qmake-libraries.html ?
/home/pi/pawn/build looks like a build folder, include files are usually not copied to build folder.
INCLUDEPATH should point to source folder containing the header files.
You also have to add LIBS which points to the library files you want to link.
https://doc.qt.io/qt-5/qmake-variable-reference.html#libsI see. So I included
INCLUDEPATH += /home/pi/pawn/amx
and now it's OK. I don't understand why do I need so files if all sources included in amx folder.
It makes sense to include LIBS+= l???? just can't figure what is a library in the folder. -
@jenya7 said in How to include so files (libraries).:
I don't understand why do I need so files
Well, you want to use a library (.so), right? How else should it work? Or is your library header-only?
" just can't figure what is a library in the folder" - it is a *.so file in the build folder of your library project. -
@jsulm said in How to include so files (libraries).:
@jenya7 said in How to include so files (libraries).:
I don't understand why do I need so files
Well, you want to use a library (.so), right? How else should it work? Or is your library header-only?
" just can't figure what is a library in the folder" - it is a *.so file in the build folder of your library project.Thank you. Now it makes sense to me. :)