Skip to content
This repository has been archived by the owner on Aug 24, 2023. It is now read-only.

Cannot find native static library Live2DCubismCore #2

Closed
Tenpi opened this issue Aug 14, 2022 · 6 comments
Closed

Cannot find native static library Live2DCubismCore #2

Tenpi opened this issue Aug 14, 2022 · 6 comments

Comments

@Tenpi
Copy link

Tenpi commented Aug 14, 2022

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
Copy link
Member

you-win commented Aug 15, 2022

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.

@Tenpi
Copy link
Author

Tenpi commented Aug 15, 2022

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
Copy link
Member

you-win commented Aug 15, 2022

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.

@Tenpi
Copy link
Author

Tenpi commented Aug 17, 2022

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
Copy link
Member

you-win commented Aug 17, 2022

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.

@Tenpi
Copy link
Author

Tenpi commented Aug 18, 2022

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

@Tenpi Tenpi closed this as completed Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants