From: Adrian Iain Lam Date: Fri, 17 Mar 2023 23:09:55 +0000 (+0000) Subject: Upgrade to Cubism 4 Release R6.2. No incompatible API changes. X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=9eb8117fc5c17674c7d49cd93ef96092762d143c;p=mouse-tracker-for-cubism.git Upgrade to Cubism 4 Release R6.2. No incompatible API changes. --- diff --git a/README.md b/README.md index a734ed0..65e1cce 100644 --- a/README.md +++ b/README.md @@ -50,17 +50,17 @@ if you don't have C++17 support. To build the example program: -4. Download "Cubism 4 SDK for Native R5.1" from the Live2D website: +4. Download "Cubism 4 SDK for Native R6.2" from the Live2D website: . - Extract the archive -- put the "CubismSdkForNative-4-r.5.1" folder under + Extract the archive -- put the "CubismSdkForNative-4-r.6.2" folder under the "example" folder of this repo. Note: The Cubism SDK is the property of Live2D and is not part of this project. You must agree to Live2D's license agreements to use it. 5. Go into the - "example/CubismSdkForNative-4-r.5.1/Samples/OpenGL/thirdParty/scripts" + "example/CubismSdkForNative-4-r.6.2/Samples/OpenGL/thirdParty/scripts" directory and run ./setup_glew_glfw diff --git a/example/build.sh b/example/build.sh index b1b789e..aeaaa1c 100755 --- a/example/build.sh +++ b/example/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -e mkdir -p demo_build -cp -r CubismSdkForNative-4-r.5.1/Samples/OpenGL/Demo/proj.linux.cmake/* ./demo_build/ +cp -r CubismSdkForNative-4-r.6.2/Samples/OpenGL/Demo/proj.linux.cmake/* ./demo_build/ patch -d demo_build -p2 < demo.patch ./demo_build/scripts/make_gcc diff --git a/example/demo.patch b/example/demo.patch index 0bd80ae..5127a8e 100644 --- a/example/demo.patch +++ b/example/demo.patch @@ -6,7 +6,7 @@ diff -pruN --exclude build ./demo_clean/CMakeLists.txt ./demo_dev/CMakeLists.txt set(APP_NAME Demo) # Set directory paths. -set(SDK_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../../..) -+set(SDK_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../CubismSdkForNative-4-r.5.1) ++set(SDK_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../CubismSdkForNative-4-r.6.2) set(CORE_PATH ${SDK_ROOT_PATH}/Core) set(FRAMEWORK_PATH ${SDK_ROOT_PATH}/Framework) set(THIRD_PARTY_PATH ${SDK_ROOT_PATH}/Samples/OpenGL/thirdParty) diff --git a/example/generate_patch.sh b/example/generate_patch.sh index 1c822b6..40b4380 100755 --- a/example/generate_patch.sh +++ b/example/generate_patch.sh @@ -1,5 +1,5 @@ #!/bin/sh mkdir -p demo_clean -cp -p -r CubismSdkForNative-4-r.5.1/Samples/OpenGL/Demo/proj.linux.cmake/* ./demo_clean/ +cp -p -r CubismSdkForNative-4-r.6.2/Samples/OpenGL/Demo/proj.linux.cmake/* ./demo_clean/ diff -pruN --exclude build ./demo_clean ./demo_dev > ./demo.patch