FBX SDK のダウンロードサイト
https://www.autodesk.com/products/fbx/overview
https://www.autodesk.com/developer-network/platform-technologies/fbx-sdk-archives
そのままインストールすると,以下の様になる.
C:\Program Files\Autodesk\FBX\FBX SDK\2019.0\ include\fbxsdk.h lib\vs2012\ vs2013\ vs2015\ x64\debug\ x64\release\ x86\debug\ x86\release\ libfbxsdk.dll libfbxsdk.lib libfbxsdk-mt.lib libfbxsdk-md.lib C:\Program Files\Autodesk\FBX\FBX SDK\2013.3\ include\fbxsdk.h lib\vs2005\ vs2008\ vs2010\ x64\ x86\ fbxsdk-2013.3.dll fbxsdk-2013.3d.dll fbxsdk-2013.3-mt.lib fbxsdk-2013.3-mtd.lib fbxsdk-2013.3-md.lib fbxsdk-2013.3-mdd.lib
追加のインクルードディレクトリ
C:\Program Files\Autodesk\FBX\FBX SDK\2016.0\include;%(AdditionalIncludeDirectories)
追加のライブラリディレクトリ
C:\Program Files\Autodesk\FBX\FBX SDK\2016.0\lib\vs2013\x86\Release;%(AdditionalLibraryDirectories)
FBXSDK_VERSION_MAJOR などが定義されているのは 2013.3 以降
これを利用して次の様に lib を振り分けている.
#include <FbxSdk.h> #ifdef FBXSDK_VERSION_STRING #if (FBXSDK_VERSION_MAJOR >= 2014) #define FS_VER_GT_2014_00 #endif #if (FBXSDK_VERSION_MAJOR >= 2019) #if (FBXSDK_VERSION_MINOR >= 1) #define FS_VER_GT_2019_01 #endif #endif #if (FBXSDK_VERSION_MAJOR >= 2020) #define FS_VER_GT_2019_01 #endif #if defined (FS_VER_GT_2019_01) #if defined (_DLL) #pragma comment (lib, "LibXml2-MD.lib") #pragma comment (lib, "Zlib-MD.lib") #else // ! (_DLL) #pragma comment (lib, "LibXml2-MT.lib") #pragma comment (lib, "Zlib-MT.lib") #endif // (_DLL) #endif #if defined (FS_VER_GT_2014_00) #if defined (_DLL) #pragma comment (lib, "LibFbxSDK-MD.lib") #else // ! (_DLL) #pragma comment (lib, "LibFbxSDK-MT.lib") #endif // (_DLL) #endif #endif // FBXSDK_VERSION_STRING
2013.3 以前にも対応する方法は未確認.
#if defined (_DLL) #if defined (FS_Ver200508) // #pragma comment (lib, "FbxSDK_MD.lib") #elif defined (FS_Ver200512A) // #pragma comment (lib, "FbxSDK_MD.lib") #elif defined (FS_Ver2011_3_1) #ifdef _DEBUG #pragma comment (lib, "FbxSDK_md2005D.lib") #else #pragma comment (lib, "FbxSDK_md2005.lib") #endif #elif defined (FS_Ver2013_3) #ifdef _DEBUG #pragma comment (lib, "FbxSDK-2013.3-mdD.lib") #else #pragma comment (lib, "FbxSDK-2013.3-md.lib") #endif #endif #else // ! (_DLL) #if defined (FS_Ver200508) // #pragma comment (lib, "FbxSDK_MT.lib") #elif defined (FS_Ver200512A) // #pragma comment (lib, "FbxSDK_MT.lib") #elif defined (FS_Ver2011_3_1) #ifdef _DEBUG #pragma comment (lib, "FbxSDK_mt2005D.lib") #else #pragma comment (lib, "FbxSDK_mt2005.lib") #endif #elif defined (FS_Ver2013_3) #ifdef _DEBUG #pragma comment (lib, "FbxSDK-2013.3-mtD.lib") #else #pragma comment (lib, "FbxSDK-2013.3-mt.lib") #endif #endif #endif // (_DLL)
https://mish.myds.me/wordpress/dev/2020/12/15/fbx-sdk-hxx-pragma-comment/
プリプロセッサの定義
K_PLUGIN K_FBXSDK K_NODLL
FS_Ver2016_0
https://mish.myds.me/wordpress/dev/category/fbx/
1998 2005 2008 2010 2012 2013 2015 2017 2019 VC 6 VC 8 VC 9 VC10 VC11 VC12 VC14 VC14.1 VC14.2 2005.08 〇 2005.12 〇 〇? 2006.11 〇 〇 2011.3 〇 〇 〇? 2013.3 〇 〇 〇 2014.1 〇 〇 〇 2014.2 〇 〇 〇 2015.1 〇 〇 〇 〇? 2016.0 〇 〇 〇? 2016.1 〇 〇 〇? 〇 2017.0 〇 〇? 〇 2017.1 〇 〇? 〇 2018.0 〇 〇 〇 2018.1 〇 〇 〇 2019.0 〇 〇 〇 2019.2 〇? 〇? 〇? 〇? 2019.5 〇? 〇? 〇? 〇? 2020.0 〇? 〇? 〇? 〇? 2020.11 〇? 〇? 〇? 〇? 2020.2 〇 〇 〇 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J 2005.08 2005.12 2006.11 2011.3 2013.3 2014.1 2014.2 2015.1 2016.0 2016.1 2017.0 2017.1 2018.0 2018.1 2019.0 2019.2 2019.5 2020.0 2020.11 2020.2 VC 6 1998 〇 〇 〇 2005.08 2006.11 VC 8 2005 〇? 〇 〇 〇 2006.11 2013.3 VC 9 2008 〇 〇 〇 〇 〇 2011.3 2015.1 VC10 2010 〇? 〇 〇 〇 〇 〇 〇 2013.3 2016.1 VC11 2012 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇 〇? 〇? 〇? 〇? 2014.1 2019.0 VC12 2013 〇? 〇? 〇? 〇? 〇? 〇 〇 〇 〇? 〇? 〇? 〇? 2018.0 2019.0 VC14 2015 〇 〇 〇 〇 〇 〇 〇? 〇? 〇? 〇? 2016.1 2019.5 VC14.1 2017 〇? 〇? 〇? 〇? 2019.2 2020.11 VC14.2 2019 〇 〇 〇 2020.2 202x.xx 2005.08 2006.11 2011.3 2013.3 2014.1 2019.2 /ML ( < 2005) fbxsdk_mL.lib fbxsdk_ml(d).lib fbxsdk_20113_1(d).lib fbxsdk-2013.3(d).lib libfbxsdk.lib /MT (MFC) fbxsdk_mT.lib fbxsdk_mt(d).lib fbxsdk_mt20xx(d).lib fbxsdk-2013.3-mt(d).lib libfbxsdk-mt.lib libxml2-mt.lib zlib-mt.lib /MD (MFC DLL) fbxsdk_mD.lib fbxsdk_md(d).lib fbxsdk_md20xx(d).lib fbxsdk-2013.3-md(d).lib libfbxsdk-md.lib libxml2-md.lib zlib-md.lib