您需要在您的pro文件中添加includepath和libs。 如下所示,只需更改您的路径。 LIBS += -ltinyxml LIBS += -L/libs/tinyxml/lib INCLUDEPATH += /libs/tinyxml/include/