![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | BlueLightningWizard |
Hello, I am new to compiling so I have no idea on how to properly compile a program using Linux terminal.
I had followed the instructions that were provided here (Godot Docs) - GDNative C++ Example
Given below are the commands I had written (by copying) after referring to the instructions -
mkdir GDNative
(‘GDNative’ is the name of the directory, instead of ‘gdnative_cpp_example’ that was given in Godot Docs)cd GDNative
git clone --recursive -b 3.x https://github.com/godotengine/godot-cpp
git submodule update --init --recursive
(The ‘api.json’ file is in the godot-headers sub-folder in godot-cpp folder, but there is another api.json file 'gdnative_api.json)use_custom_api_file=yes custom_api_file=../api.json
(I didn’t know what exactly I had to do with this commmand, but there was no error in the command once I entered)
The next step is where I found the error. I tried to solve it but failed.scons platform=linux generate_bindings=yes -j8
The following code is where the error was mentioned-
scons: Reading SConscript files ...
src/gen: File exists
src/gen: File exists
scons: done reading SConscript files.
scons: Building targets ...
g++ -o src/core/AABB.o -c -fPIC -std=c++14 -Wwrite-strings -Og -g -m64 -I. -Igodot-headers -Iinclude -Iinclude/gen -Iinclude/core src/core/AABB.cpp
sh: 1: g++: not found
g++ -o src/core/Array.o -c -fPIC -std=c++14 -Wwrite-strings -Og -g -m64 -I. -Igodot-headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Array.cpp
g++ -o src/core/Basis.o -c -fPIC -std=c++14 -Wwrite-strings -Og -g -m64 -I. -Igodot-headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Basis.cpp
sh: 1: g++: not found
sh: 1: g++: not found
g++ -o src/core/CameraMatrix.o -c -fPIC -std=c++14 -Wwrite-strings -Og -g -m64 -I. -Igodot-headers -Iinclude -Iinclude/gen -Iinclude/core src/core/CameraMatrix.cpp
sh: 1: g++: not found
g++ -o src/core/Color.o -c -fPIC -std=c++14 -Wwrite-strings -Og -g -m64 -I. -Igodot-headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Color.cpp
sh: 1: g++: not found
g++ -o src/core/Dictionary.o -c -fPIC -std=c++14 -Wwrite-strings -Og -g -m64 -I. -Igodot-headers -Iinclude -Iinclude/gen -Iinclude/core src/core/Dictionary.cpp
sh: 1: g++: not found
g++ -o src/core/GodotGlobal.o -c -fPIC -std=c++14 -Wwrite-strings -Og -g -m64 -I. -Igodot-headers -Iinclude -Iinclude/gen -Iinclude/core src/core/GodotGlobal.cpp
sh: 1: g++: not found
scons: *** [src/core/AABB.o] Error 127
scons: *** [src/core/Array.o] Error 127
scons: *** [src/core/Basis.o] Error 127
scons: *** [src/core/CameraMatrix.o] Error 127
scons: *** [src/core/Color.o] Error 127
scons: *** [src/core/Dictionary.o] Error 127
scons: *** [src/core/GodotGlobal.o] Error 127
g++ -o src/core/NodePath.o -c -fPIC -std=c++14 -Wwrite-strings -Og -g -m64 -I. -Igodot-headers -Iinclude -Iinclude/gen -Iinclude/core src/core/NodePath.cpp
sh: 1: g++: not found
scons: *** [src/core/NodePath.o] Error 127
scons: building terminated because of errors.
Another thing - how can I download Godot 3.x executable? Is the game engine itself the executable. If yes, then the game engine is actually outside the ‘GDNative’ folder. Can someone help me in compiling Godot C++ in a simple way, while solving the problem?
Thanks in advance.
From.
BlueLightningWizard.