Closed Irrawa closed 2 months ago
@Irrawa Thank you for reporting the issue that occurred during the build process.
Upon reviewing the build logs, it appears that Visual Studio is not installed in your environment, and MinGW is being used instead.
While Godot Engine supports building with MinGW, the CubismSDK used by GDCubism is provided as a library intended for Visual Studio.
The following information is available on Live2D's webpage:
https://github.com/Live2D/CubismNativeSamples/blob/develop/README.md
Visual Studio 2013 Update 5
Visual Studio 2015 Update 3
Visual Studio 2017 15.9.60
Visual Studio 2019 16.11.34
Visual Studio 2022 17.9.4
Since the libraries included with CubismSDK are provided only as binaries and not as source code, using a development environment other than those listed above may result in link failures due to runtime discrepancies or symbol information mismatches, even if the compilation succeeds.
As I am not well-versed in MinGW, I cannot propose a specific solution, but it is likely that some work will be required to convert the Visual Studio libraries for use with MinGW.
If it is not inconvenient, I recommend installing Visual Studio 2022 Community.
Thank you for your kind suggestion, and I finally solved the problem. I used Visual Studio all the time actually, but since I works on other projects, UE and other toolkits are also installed. After I completely uninstalled Visual Studio and reinstalled it with only C++ desktop toolkit, errors disappeared and the build was successful. I guess there were some conflicts or so.
I followed the building instruction and arrived at the build command:
So added version info in .\SConstruct:
Compilation is complete. During linking, errors like these happened:
Is this a bug? How can I solve this?