godotengine / godotengine/godot-docs

v3.2 Plugins - GDNative c++ example possibly wrong SConstruct file

Open
#3,325 2 comments 0 reactions 0 assignees View on GitHub
area:manual bug
Dominant language
reStructuredText
Stars
5.7k
Forks
3.8k
Avg merge
1d 20h
Merged PRs (30d)
25

Description

When in the section of "Compiling the plugin" the "hardcoded SConstruct file" given in the docs don't work used with the given scons command. I've just setup the module as described in the docs. I have successfully created the new api.json based on my installed Godot version (3.2).

Platform: MacOS 10.15.3
Target platform = "osx"

Errors (partial, a long list of errors shows up):
`godot-cpp/include/core/Basis.hpp:294:25: error: no member named 'elements' in
'godot::Basis'
elements[0] = p_basis.elements[0];
~~~~~~~ ^
godot-cpp/include/core/Basis.hpp:295:3: error: use of undeclared identifier
'elements'
elements[1] = p_basis.elements[1];
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
5 warnings and 20 errors generated.
scons: *** [src/firebase.os] Error 1
scons: building terminated because of errors.`

I tried using the SConstruct file from the [gdnative_cpp_example repo](https://github.com/BastiaanOlij/gdnative_cpp_example) given in the docs and it works correctly.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.