Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add godot engine #137

Open
RhythmLunatic opened this issue Jun 6, 2023 · 1 comment · May be fixed by #138
Open

Add godot engine #137

RhythmLunatic opened this issue Jun 6, 2023 · 1 comment · May be fixed by #138

Comments

@RhythmLunatic
Copy link

Godot engine is fully functional on the switch, but it needs to be compiled from source. Raspberry pi builds don't work due to some kind of version issue.

In short: sudo apt-get install build-essential scons pkg-config libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm clang

Edit /usr/bin/scons so the shebang says /usr/bin/python3 instead of Python

Download godot tar.xz, I did godot 3.5.2 https://github.com/godotengine/godot/releases

Extract, change to directory and do scons platform=x11 target=release_debug tools=yes use_llvm=yes CCFLAGS="-march=armv8-a+fp+simd" arch=arm64 -j4. Instructions taken from https://github.com/hiulit/Unofficial-Godot-Engine-Raspberry-Pi/blob/main/compiling/raspberry_pi_4.md

It will take 2 hours to compile. use_llvm is required, g++ has a linker error. I tested debugging games and clicking around and there were no issues, but I didn't test it super extensively. It seemed to handle GLES3 perfectly.

Or alternatively a download for compiled builds can be hosted, but I don't have anywhere to host builds.

@RhythmLunatic
Copy link
Author

This issue can be closed if nobody wants to write a script for compiling it, I'm only writing it down in case someone wants to use godot engine on their switch for whatever reason so they don't have to spend time googling how to do it and what to install.

@SegoGithub SegoGithub linked a pull request Jun 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant