You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cause of missing header file is that CMake script variable CSM_CORE_INCLUDE_DIR was not set, and it is better to fix include path instead of copy the header file. The CMakeLists.txt has checked the header file:
# Check Live2D source/header filesif(NOTEXISTS"${CMAKE_CURRENT_SOURCE_DIR}/live2d/Core/include/Live2DCubismCore.h")
message(FATAL_ERROR"Live2D Cubism 3 SDK for Native is missing!")
endif()
and includes these:
target_include_directories(Live2LOVE PRIVATE include live2d/Framework/src ${CSM_CORE_INCLUDE_DIR})
so, I tried to:
set(CSM_CORE_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/live2d/Core/include)
# Check Live2D source/header filesif(NOTEXISTS"${CSM_CORE_INCLUDE_DIR}/Live2DCubismCore.h")
message(FATAL_ERROR"Live2D Cubism 3 SDK for Native is missing!")
endif()
...
# add_subdirectory("live2d/Core")
Hi, thanks for your cool project 👍
I'm not entirely certain about the accuracy of my findings, so I'm opting to leave an issue instead of a direct PR.
I confirmed that this is compatible with Live2D Cubism 4 SDK, with some tweaks needed:
add_subdirectory("live2d/Core")
, as Core no longer provides a cmakefile.CubismSdkForNative-4-r.7/Core/Live2dCubismCore.h
file tolive2d/framework/src
#include <stdexcept>
inLive2LOVE.h
asstd
doesn't provide runtime_error by default?I've only tested this with Linux, so I can't speak for its functionality with MSVC.
The text was updated successfully, but these errors were encountered: