Giter Site home page Giter Site logo

Documentation about godot-python HOT 7 CLOSED

touilleman avatar touilleman commented on May 13, 2024
Documentation

from godot-python.

Comments (7)

touilleMan avatar touilleMan commented on May 13, 2024 1

Hi there !

Thanks for offering your help ;-)

I've tried a couple times with varying levels of success on 64-bit Linux to build the project working following the README.md

As you say the project is currently not really stabilized due to GDNative API being developed in the same time. However this is getting better since we've almost reached the final Godot 3.0.

Considering building for yourself the project I would recommend you to follow what's done on travis/appveyor (this way you get to know which Godot-python commit compile with which Godot commit). Obviously the final 3.0 would easier this a lot by providing a single gdnative wrapper archive containing both include headers and the static library for each architectures (comparing to now where we have to curl the godot's github build repo for a specific library version&architecture).

I'm thinking about taking a stab at updating the examples / README as a PR now that we're closer to 3.0 (and saw your latest PR was merged) but wanted to make sure I don't do work that's already in progress.

I'm not working on documentation (most of my time on the project right now is dedicated to suffer on the windows version...) so I'll be really happy if you start working on this part.

Considering the tests&examples folders. The tests/bindings is the only project I'm running really frequently so I'm sure it is up to date. Then I'm trying to keep examples/pong up to date. Then there is the others which I planned to update once the library is stabilized, so you can work on them if you want ;-)

from godot-python.

cridenour avatar cridenour commented on May 13, 2024

Great! The travis file was a definite help on the new build system. Using the released pegged in the SConstruct got everything to build nice and easy!

That said, running

scons platform=x11-64 test

builds everything fine, but errors out with

ERROR: open_dynamic_library: Method/Function Failed, returning ERR_CANT_OPEN

Any ideas?

--

P.S. My overall plan is to get build instructions as part of the README.md from a clean Ubuntu docker container. Then do the same for Windows once you are free from that hell!

from godot-python.

touilleMan avatar touilleMan commented on May 13, 2024

My guess is either Godot cannot find libpythonscript.so (so you should check the symlinks and the pythonscript.gdnlib in the project) or libpython3.so cannot be loaded here:

// Make sure the shared library has all it symbols loaded
// (strange bug with libpython3.6 otherwise...)
{
const wchar_t *wpath = godot_string_wide_str(options->active_library_path);
char path[300];
wcstombs(path, wpath, 300);
dlopen(path, RTLD_NOW | RTLD_GLOBAL);

You should put a breakpoint there to find that out (and check if you got information about pythonscript loading in Godot output log)

from godot-python.

cridenour avatar cridenour commented on May 13, 2024

Ah, looks like another moving target issue.

Error: tests/bindings/pythonscript/libpythonscript.so: undefined symbol: godot_char_string_destroy

I'll play around with later builds.

from godot-python.

cridenour avatar cridenour commented on May 13, 2024

Have both tests and example working again with the 20180113-2 build on my branch here. Will start on some of the docs this weekend!

from godot-python.

touilleMan avatar touilleMan commented on May 13, 2024

Error: tests/bindings/pythonscript/libpythonscript.so: undefined symbol: godot_char_string_destroy

godot_char_string_* has been added very recently to Godot main codebase. You must be using an old version... (the patch is from 2018-01-10, not even sure it is in rc1)

from godot-python.

touilleMan avatar touilleMan commented on May 13, 2024

Closing the issue now that #49 have been merged

from godot-python.

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.