如何在linux中为qml项目链接第三方库



如何在Qt Creator中为Qt Quick UI应用程序链接第三方库。我有linux内置的库文件(.so)提前感谢

您应该创建"Qt快速应用程序*"项目和.pro文件应该看起来像:

QT += core quick gui network
TEMPLATE = app
HEADERS += some .h files
SOURCES += some .cpp files
INCLUDEPATH += ../include
OTHER_FILES += *.qml #or path to qml files
LIBS += -lprotobuf  # list of Libs, which you wish

最新更新