qmake -project qmake name.pro 在Qt中工程通过.pro文件管理,所以库文件要在.pro文件中添加。 1.添加库文件 静态库 linux:LIBS += your_lib_path/your_lib/动态库 。 动态库