virtual-puppet-project / godot-cubism

A Godot 3.4 binding for Live2D
Apache License 2.0
21 stars 2 forks source link

Cannot find native static library Live2DCubismCore #2

Closed Moebits closed 2 years ago

Moebits commented 2 years ago

I try to build this project but it says that it cannot find the native static library Live2DCubismCore. I put cubism-rs as well as the Core and Samples folders of Live2D native SDK into the third party folder.

Also I am on Mac and you did not provide build instructions for Mac, but I suppose that setting the target to x86_64-apple-darwin should be enough.

you-win commented 2 years ago

The build instructions from the upstream cubism-rs should be followed.

Note that there are special considerations made for OSX, namely that static linking must be used.

Moebits commented 2 years ago

There are no build instructions in that repo, It just says to set CUBISM_CORE to the third party folder, which I see is already done in the sh script. Also, I believe that static linking is used by default. This is the full output:

Screen Shot 2022-08-15 at 5 47 05 PM
you-win commented 2 years ago

Ah I should've been clearer, I was referring to the instructions under the "General Usage Notes" section. Namely, the part talking about setting an environment variable called CUBISM_CORE to the path to the static library.

In any case, this library is not fit for usage just yet. There are still problems with rendering Live2D models due to how Godot does not expose the stencil buffer to user code.

Moebits commented 2 years ago

Do you mean like this? However it still gets the same error.

CUBISM_CORE=$(pwd)/third-party/Core/lib/macos/arm64/libLive2DCubismCore.a

Also I want to know if this lets me load Live2D models in Godot and animate their parameters in the editor or if its something else. I like using Live2D to animate and it would help my workflow if i can just import models into Godot instead of animating in Live2D and exporting the image sequence. Thanks!

you-win commented 2 years ago

Regarding the build errors, I would need to look into this more. The last commit in this repo is the last time I worked with this code. Most of this is new territory for me as well.

Also I want to know if this lets me load Live2D models in Godot and animate their parameters in the editor This is meant for displaying a Live2D model and animating it with face tracking data. In either case, this library is not ready for use because of the aforementioned rendering issues.

If you are trying to hack on this project, I'm happy to explain the design choices. However, my time is mostly devoted to the related vpuppr and real-time-lip-sync projects at this point.

Moebits commented 2 years ago

Ah, so this isn't what I was looking for. However I appreciate the help and good luck on your other projects!