我有共享库(.so文件),我想将该文件添加到Qt .pro文件中。
我该怎么做?
您应该使用vahancho建议的LIBS变量:
LIBS += -lQtSolutions_SingleApplication-2.6
# and more:
unix:LIBS += -lQxtCore -lQxtWeb -lQxtNetwork -lQtSolutions_IOCompressor-2.3
CONFIG(release, debug|release) {
win32:LIBS += -lbfd -liberty -limagehlp
}
# and so on
http://qt-project.org/doc/qt-4.8/qmake-variable-reference.html#libs
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句