This guide will help you compile the GoZen GDExtension.
-
For dependencies you will mainly need Python and SCons. These are needed for compiling the GDExtension which gives access to FFmpeg, which also needs to be installed.
pacman -Syu python scons ffmpeg
-
Install MSYS2 from www.msys2.org
-
Add
path\to\msys64\mingw64\bin
andpath\to\msys64\usr\bin
to thePath
environment variable. The default installation path isC:\msys64\
-
Update all packages by executing the following command in the terminal:
pacman -Suy
Note: In some cases pacman will prompt you to close all terminals. After confiming start a new terminal and re-run the above command.
-
Install the required dependencies using the following command:
pacman -S mingw-w64-cross-binutils mingw-w64-x86_64-toolchain mingw-w64-x86_64-scons mingw-w64-x86_64-yasm diffutils make
-
Open a terminal in the desired directory and clone the GoZen repository
git clone --recurse-submodules https://github.com/VoylinsGamedevJourney/GoZen.git
-
Move to the GoZen directory
cd GoZen
-
Clone the godot-cpp repository
git clone https://github.com/godotengine/godot-cpp.git src/bin/gde_ffmpeg/godot-cpp
-
Execute the build script
sh build.sh
Note: You will need to compile FFmpeg at least once when compiling for Windows. Enter
y
when prompted. -
Once the build is complete, you can now open the Godot project located in
./src
directorycd src && /path/to/godot -e .