|
1、新建lib项目
1
2、选择动态库方式
2
3、PRO文件配置
配置预定义:
DEFINES += QT_DEPRECATED_WARNINGS
DEFINES += PRO_USE_VAR_ARGS
DEFINES += PRO_MACHINE=36
DEFINES += PRO_OS=4
配置PTC静态库(也可以在项目上右击-添加库-动态链接(或者静态))
win32: LIBS += -L$$PWD/../../Lib-C/CLib_Creo5/protoolkit/x86e_win64/obj/ -lprotk_dllmd_NU
INCLUDEPATH += $$PWD/../../Lib-C/CLib_Creo5/protoolkit/includes
DEPENDPATH += $$PWD/../../Lib-C/CLib_Creo5/protoolkit/includes
win32: LIBS += -L$$PWD/../../Lib-C/CLib_Creo5/protoolkit/x86e_win64/obj/ -lprotkmd_NU
INCLUDEPATH += $$PWD/../../Lib-C/CLib_Creo5/protoolkit/includes
DEPENDPATH += $$PWD/../../Lib-C/CLib_Creo5/protoolkit/includes
win32: LIBS += -L$$PWD/../../Lib-C/CLib_Creo5/protoolkit/x86e_win64/obj/ -lucore
INCLUDEPATH += $$PWD/../../Lib-C/CLib_Creo5/protoolkit/includes
DEPENDPATH += $$PWD/../../Lib-C/CLib_Creo5/protoolkit/includes
win32: LIBS += -L$$PWD/../../Lib-C/CLib_Creo5/protoolkit/x86e_win64/obj/ -ludata
INCLUDEPATH += $$PWD/../../Lib-C/CLib_Creo5/protoolkit/includes
DEPENDPATH += $$PWD/../../Lib-C/CLib_Creo5/protoolkit/includes
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../Lib-C/CLib_Creo5/otk_cpp/x86e_win64/obj/ -lotk_cpp_md
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../Lib-C/CLib_Creo5/otk_cpp/x86e_win64/obj/ -lotk_cpp_md
INCLUDEPATH += $$PWD/../../Lib-C/CLib_Creo5/otk_cpp/include
DEPENDPATH += $$PWD/../../Lib-C/CLib_Creo5/otk_cpp/include
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../Lib-C/CLib_Creo5/otk_cpp/x86e_win64/obj/ -lotk_222_md
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../Lib-C/CLib_Creo5/otk_cpp/x86e_win64/obj/ -lotk_222_md
INCLUDEPATH += $$PWD/../../Lib-C/CLib_Creo5/otk_cpp/include
DEPENDPATH += $$PWD/../../Lib-C/CLib_Creo5/otk_cpp/include
配置系统库
LIBS += netapi32.lib
LIBS += wsock32.lib
LIBS += psapi.lib
LIBS += mpr.lib
LIBS += ws2_32.lib
LIBS += kernel32.lib
LIBS += user32.lib
LIBS += gdi32.lib
LIBS += winspool.lib
LIBS += comdlg32.lib
LIBS += advapi32.lib
LIBS += shell32.lib
LIBS += ole32.lib
LIBS += oleaut32.lib
LIBS += uuid.lib
LIBS += odbc32.lib
LIBS += odbccp32.lib
|
评分
-
查看全部评分
|