Giter Club home page Giter Club logo

Comments (9)

razcore-rad avatar razcore-rad commented on July 24, 2024

I assume you're using linux, on windows I have no idea. You have to create a symbolic link to godot (and it has to be named exactly godot) inside of your godot-python folder, so:

cd $GODOT_PYTHON
ln -s $ABSOLUTE_PATH_TO_GODOT godot

where $GODOT_PYTHON is the folder where you downloaded/cloned the touilleMan/godot-python repository and the other variable is you know... self explanatory.

It seems that you liked godot inside of godot-python/godot, it has to be inside of godot-python.

from godot-python.

 avatar commented on July 24, 2024

@razvanc-r
For some reason no matter what I am running i get that extra gotdot...

ry@X1Carbon:~/G/GODOT-PYTHON/godot-python$ make setup GODOT_TARGET_DIR=/home/ry/G/GODOT-PYTHON/godot

ln -s /home/ry/G/GODOT-PYTHON/ /home/ry/.MyShit/G/GODOT-PYTHON/godot-python/godot/godot
ln: failed to create symbolic link '/home/ry/G/GODOT-PYTHON/godot-python/godot/godot': Not a directory
Makefile:67: recipe for target 'setup' failed
make: *** [setup] Error 1

from godot-python.

razcore-rad avatar razcore-rad commented on July 24, 2024

It's difficult to understand what you're doing without knowing where your godot directory is and where godot-python is (absolute paths). Tell me those and I'll give you the command lines to run to set it up properly (without make setup)

from godot-python.

 avatar commented on July 24, 2024

@razvanc-r

There is a
.godot located in the ry@X1Carbon:~/.godot$

ry@X1Carbon:~/GDK/Godot_v2.1.4-stable_x11.64

and the
ry@X1Carbon:~/GDK/godot-python$ This is the one I cloned from github
with
git clone --recursive https://github.com/touilleMan/godot-python.git

Thanks again, I really appreciate it.

from godot-python.

razcore-rad avatar razcore-rad commented on July 24, 2024

No... I guess you misunderstood how this works. I'll give you the fresh steps from start to finish:

cd $HOME
mkdir godot-tmp
cd godot-tmp
git clone https://github.com/godotengine/godot.git
git clone --recursive https://github.com/touilleMan/godot-python.git
# there's a bug in the `Makefile` so `make setup` doesn't work
ln -s $HOME/godot-tmp/godot $HOME/godot-tmp/godot-python/godot
ln -s $HOME/godot-tmp/godot-python/pythonscript $HOME/godot-tmp/godot/modules/pythonscript
make generate_gdnative_cffidefs
make generate_cffi_bindings
make compile
# optional
make tests
make example

from godot-python.

 avatar commented on July 24, 2024

@razvanc-r

When running this command:
ry@X1Carbon:~/godot-tmp/godot-python$ make generate_gdnative_cffidefs

I am getting this error:
/home/ry/godot-tmp/godot-python/tools/generate_gdnative_cffidefs.py --output /home/ry/godot-tmp/godot-python/pythonscript/cffi_bindings/cdef.gen.h /home/ry/godot-tmp/godot-python/godot
cpp: error: /home/ry/godot-tmp/godot-python/godot/modules/gdnative/godot/gdnative.h: No such file or directory
cpp: warning: ā€˜-x cā€™ after last input file has no effect
cpp: fatal error: no input files
compilation terminated.
Traceback (most recent call last):
File "/home/ry/godot-tmp/godot-python/tools/generate_gdnative_cffidefs.py", line 61, in
fd.write(generate(args.godot_root_path))
File "/home/ry/godot-tmp/godot-python/tools/generate_gdnative_cffidefs.py", line 47, in generate
first_line = next(i for i, line in enumerate(splitted_src) if 'godot' in line.lower())
StopIteration
Makefile:117: recipe for target 'generate_gdnative_cffidefs' failed
make: *** [generate_gdnative_cffidefs] Error 1

Seems like I am missing the last DIR gotdot in the godot-tmp/godot-python/godot/modules/gdnative/godot/

from godot-python.

razcore-rad avatar razcore-rad commented on July 24, 2024

I think there's a bug in that script, might be that gdnative changed places meanwhile, I haven't tried recompiling lately. Given that you have very limited knowledge in compiling & command line, you should just use the release: https://github.com/touilleMan/godot-python/releases/download/v0.9.0/godot-python-0.9.0.tar.bz2 for now at least. There's a readme inside the archive, but basically all you need to do is execute ./run_godot in the extracted folder.

from godot-python.

 avatar commented on July 24, 2024

@razvanc-r

Super Cool!

Thank you for taking the time to do that.

from godot-python.

touilleMan avatar touilleMan commented on July 24, 2024

hi @Ry10p !

I suggest you have a look at the travis builds in order to know which version of Godot works.
Truth is Godot's GDnative is moving really fast right now, so build breaks often. As a matter of fact I'm currently working on this and hope the build system for godot python will eventually be much easier once GDnative will be mature enough (e.i. once Godot v3.0 is released basically).

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.