我正在尝试在qt项目中添加vtk库(使用VS 2013)。我添加这些像外部库和.pro文件中得到的代码是这样的:
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/D:/VTK2/bin/lib/release/ -lvtkCommonCore-6.2
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/D:/VTK2/bin/lib/debug/ -lvtkCommonCore-6.2
else:unix: LIBS += -L$$PWD/D:/VTK2/bin/lib/ -lvtkCommonCore-6.2
INCLUDEPATH += $$PWD/D:/VTK2/install/include
DEPENDPATH += $$PWD/D:/VTK2/install/include
当我运行程序时返回:
错误:LNK1104:无法打开文件'vtkCommonCore-6.2.lib'
答案 0 :(得分:0)
尝试:
INCLUDEPATH + = D:/ VTK2 / install / include
LIBS + = -LD:/ VTK2 / bin / lib / debug
LIBS + = -lvtkCommonCore-6.2