Search code examples
c++visual-studiovisual-studio-2019fbx

Compile errors when building a project using fbx SDK in Visual Studio/C++


I am trying to build a project about loading fbx objects in OpenGL. I used this resource's codes: https://github.com/sho3la/FBX-Loader-OpenGL-C-

But I got these compile errors:
'GetCacheChannel': is not a member of 'fbxsdk::FbxVertexCacheDeformer'
'IsActive': is not a member of 'fbxsdk::FbxVertexCacheDeformer'
'lHasVertexCache': an object of const-qualified type must be initialized
'SetActive': is not a member of 'fbxsdk::FbxVertexCacheDeformer'

I have also seen Compile error when building fbxsdk headers in visual studios and https://learn.microsoft.com/en-us/dotnet/visual-basic/misc/bc30456 and done their suggestions, but still, there are not any changes in these errors.


Solution

  • AutoDesk has changed its libraries. Therefore for using these functions in those errors, instead of using FBX SDK 2020, I used FBX SDK 2014.2.1 VS2012, and it works for me.