I successfully compiled the official C++ demo project on Visual Studio 2019, and demo models worked fine. Therefore I decided to move all the live2d framework to my personal engine which also based on D3D11. Adding framework project into solution complied successfully, but when I tried to use it in my engine, it always popup several similar error messages.
" error LNK2019: unresolved external symbol "public: static bool _cdecl Live2D::Cubism::Framework::CubismFramework::StartUp(class Live2D::Cubism::Framework::ICubismAllocator *,class Live2D::Cubism::Framework::CubismFramework::Option const *)" (?StartUp@CubismFramework@Framework@Cubism@Live2D@
@SA_NPEAVICubismAllocator@234@PEBVOption@1234@@Z) referenced in function "public: void _cdecl RenderContext::InitializeCubism(void)" (?InitializeCubism@RenderContext@
@QEAAXXZ)"I already included CubismFramework.hpp, Rendering/D3D11/CubismNativeInclude_D3D11.hpp, Rendering/D3D11/CubismRenderer_D3D11.hpp and LAppAllocator.
I just tried to initialized the cubism and call CubismFramework::StartUp and CubismFramework::Initialize().
Comments
error LNK2019: unresolved external symbol csmGetVersion referenced in function "public: static bool __cdecl Live2D::Cubism::Framework::CubismFramework::StartUp(class Live2D::Cubism::Framework::ICubismAllocator *,class Live2D::Cubism::Framework::CubismFramework::Option const *)" (?StartUp@CubismFramework@Framework@Cubism@Live2D@@SA_NPEAVICubismAllocator@234@PEBVOption@1234@@Z)
Does it mean that I need to include lib or something?