Giter Site home page Giter Site logo

Comments (5)

badlogic avatar badlogic commented on June 2, 2024

You are working off of the 4.2-beta branch. That is currently not stable for spine-cpp based runtimes. Please use the 4.1 branch for now.

from spine-runtimes.

dreed-sd avatar dreed-sd commented on June 2, 2024

I tried ensuring I am on 4.1 of spine-runtimes and then tried both 4.1 and 4.1-stable for the godot repo, but same result:

$ ./build/setup.sh 4.1 false false
# <successfully checks out godot into the build folder>

$ ./build/build-v4.sh
<snip beginning of godot compilation output>

[Initial build] Compiling /Users/dreed/git/spine-runtimes/spine-godot/spine_godot/spine-cpp/src/spine/PointAttachment.cpp ...
In file included from /Users/dreed/git/spine-runtimes/spine-godot/spine_godot/spine-cpp/src/spine/PhysicsConstraint.cpp:30:
/Users/dreed/git/spine-runtimes/spine-godot/spine_godot/spine-cpp/include/spine/PhysicsConstraint.h:155:29: error: unknown type name 'Physics'
        virtual void update(Physics physics);
                            ^
/Users/dreed/git/spine-runtimes/spine-godot/spine_godot/spine-cpp/src/spine/PhysicsConstraint.cpp:287:24: error: no member named 'getTime' in 'spine::Skeleton'
        _lastTime = _skeleton.getTime();
                    ~~~~~~~~~ ^
/Users/dreed/git/spine-runtimes/spine-godot/spine_godot/spine-cpp/src/spine/PhysicsConstraint.cpp:308:32: error: unknown type name 'Physics'
void PhysicsConstraint::update(Physics physics) {
                               ^
/Users/dreed/git/spine-runtimes/spine-godot/spine_godot/spine-cpp/src/spine/PhysicsConstraint.cpp:318:18: error: '_data' is a private member of 'spine::Bone'
        float l = bone->_data.getLength();
                        ^
/Users/dreed/git/spine-runtimes/spine-godot/spine_godot/spine-cpp/include/spine/Bone.h:259:13: note: declared private here
                BoneData &_data;
                          ^
/Users/dreed/git/spine-runtimes/spine-godot/spine_godot/spine-cpp/src/spine/PhysicsConstraint.cpp:321:8: error: use of undeclared identifier 'Physics'
                case Physics::Physics_None:

<snip many more of these kinds of errors>

from spine-runtimes.

badlogic avatar badlogic commented on June 2, 2024

from spine-runtimes.

dreed-sd avatar dreed-sd commented on June 2, 2024

Yup that was it, thank you! I had originally tried on 4.2 as you said.

from spine-runtimes.

dreed-sd avatar dreed-sd commented on June 2, 2024

I don't suppose you have any idea why when I build spine-runtimes as a custom_module from my godot repository, it fails with missing spine/Animation.h? It's like the spine/src/include folder is an include directory when your script builds godot, but not when I just run scons from my own godot (with custom_modules='../spine-runtimes/spine-godot/spine_godot'). The only difference is that with your setup and build, the godot repository being built is a directory inside spine-godot, and mine is a sibling of spine-runtimes. I admit ignorance on how scons works and figures out include directories.

Here's the scons line I'm using, starting in my godot repository directory (sibling directory of spine-runtimes):

+ scons compiledb=yes opengl3=yes custom_modules=../spine-runtimes/spine-godot/spine_godot --jobs 1
scons: Reading SConscript files ...
Automatically detected platform: macos
Building for macOS 11.0+.
MoltenVK found at: /Users/dreed/VulkanSDK/1.3.261.1/MoltenVK/MoltenVK.xcframework/macos-arm64_x86_64/
Building for platform "macos", architecture "arm64", target "editor".
Checking for C header file mntent.h... (cached) no
scons: done reading SConscript files.
scons: Building targets ...
[Initial build] Compiling /Users/dreed/git/spine-runtimes/spine-godot/spine_godot/spine-cpp/src/spine/Animation.cpp ...
/Users/dreed/git/spine-runtimes/spine-godot/spine_godot/spine-cpp/src/spine/Animation.cpp:30:10: fatal error: 'spine/Animation.h' file not found
#include <spine/Animation.h>
         ^~~~~~~~~~~~~~~~~~~

from spine-runtimes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.