vault backup: 2023-08-22 12:09:58

This commit is contained in:
BlueRose 2023-08-22 12:09:58 +08:00
parent 48fd52da70
commit c69e325041
2 changed files with 58 additions and 2 deletions

View File

@ -41,3 +41,59 @@ FChainDecoderFK::DecodePose():
# FBX
https://help.autodesk.com/view/FBX/2020/ENU/?guid=FBX_Developer_Help_welcome_to_the_fbx_sdk_html
使用之前建议**仔细查看文档**。FBX Sdk有三种库分别为动态链接库(dll + lib)、静态链接库(/MD)、静态链接库(/MT)。
- 动态链接库使用Qt的导入库功能导入动态库之后只需要再添加一行`DEFINES += FBXSDK_SHARED`即可。例如:
```qmake
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17
DEFINES += FBXSDK_SHARED
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
Common/Common.cpp \
main.cpp \
mainwindow.cpp
HEADERS += \
Common/Common.h \
mainwindow.h
FORMS += \
mainwindow.ui
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/FBXSdk/lib/vs2022/x64/release/ -llibfbxsdk
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/FBXSdk/lib/vs2022/x64/debug/ -llibfbxsdk
INCLUDEPATH += $$PWD/FBXSdk/lib/vs2022/x64/debug
DEPENDPATH += $$PWD/FBXSdk/lib/vs2022/x64/debug
INCLUDEPATH += $$PWD/FBXSdk/include
```
- 静态链接库(/MD)使用Qt的导入库功能导入静态库之后
- 静态链接库(/MT)使用Qt的导入库功能导入静态库之后
## Qt相关设置添加
https://blog.csdn.net/libaineu2004/article/details/105718847
Qt在pro中设置运行时库MT、MTd、MD、MDd重点关注QMAKE_CFLAGS
多线程调试Dll (/MDd) 对应的是MD_DynamicDebug
多线程Dll (/MD) 对应的是MD_DynamicRelease
多线程(/MT) 对应的是MD_StaticRelease
多线程(/MTd)对应的是MD_StaticDebug
##  /NODEFAULTLIB:library
```cpp
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../LIBRARYNAME/Lib/ -lLIBRARY /NODEFAULTLIB:library
```

View File

@ -8,7 +8,7 @@ INDIVIDUAL
米粒儿
reimu
Reimu
## 向日葵
blueroseslol
orkj694780U9t7r1