You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to compile a GDextension written in c++ (code found here). The code requires FFmpeg found here and the C++ bindings for Godot v4.3 found here. FFmpeg and the Godot C++ binding compile without issue individually. However, if I try to compile the entire GDExtension I get an error. I have a Mac m1 running macOs ventura 13.1.
I tried different two version of the c/c++ standard library (xcode command-line tools 13.1 and 13.3) and tried changing the compiler from clang to gcc/g++. In all cases I get the similar errors. This is the ouput for clang -cc1 version 14.0.3 (clang-1403.0.22.14.1) default target arm64-apple-darwin22.2.0
These are the last line of the error log
In file included from godot-cpp/src/classes/wrapped.cpp:39:
In file included from godot-cpp/include/godot_cpp/core/class_db.hpp:38:
In file included from godot-cpp/include/godot_cpp/core/method_bind.hpp:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/iostream:38:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/istream:163:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/ostream:140:
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/locale:2383:24: error: member access into incomplete type 'tm'
__get_year(__tm->tm_year, __b, __e, __err, __ct);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/wchar.h:131:19: note: forward declaration of 'tm'
const struct tm * __restrict) __DARWIN_ALIAS(wcsftime);
^
In file included from godot-cpp/src/classes/wrapped.cpp:39:
In file included from godot-cpp/include/godot_cpp/core/class_db.hpp:38:
In file included from godot-cpp/include/godot_cpp/core/method_bind.hpp:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/iostream:38:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/istream:163:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/ostream:140:
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/locale:2386:25: error: member access into incomplete type 'tm'
__get_year4(__tm->tm_year, __b, __e, __err, __ct);
^
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/wchar.h:131:19: note: forward declaration of 'tm'
const struct tm * __restrict) __DARWIN_ALIAS(wcsftime);
^
scons: *** [godot-cpp/src/core/method_bind.macos.template_debug.universal.o] Error 1
52 errors generated.
scons: *** [godot-cpp/src/godot.macos.template_debug.universal.o] Error 1
52 errors generated.
52 errors generated.
scons: *** [godot-cpp/src/core/object.macos.template_debug.universal.o] Error 1
scons: *** [godot-cpp/src/classes/low_level.macos.template_debug.universal.o] Error 1
24 errors generated.
scons: *** [godot-cpp/src/classes/wrapped.macos.template_debug.universal.o] Error 1
52 errors generated.
scons: *** [godot-cpp/src/core/class_db.macos.template_debug.universal.o] Error 1
scons: building terminated because of errors.
Steps to reproduce
My SConstruct file with irrelevant parts deleted looks like this:
However is use current versions of godot_cpp and FFmpeg. Using the godot_cpp 4.2.2gives me an error related to iOS when I try to compile godot_cpp as described here
The text was updated successfully, but these errors were encountered:
Godot version
v4.3.beta3.official [82cedc83c]
godot-cpp version
master, 4.3 as of #1513
System information
macOS Ventura 13.1 (22C65)
Issue description
I try to compile a GDextension written in c++ (code found here). The code requires FFmpeg found here and the C++ bindings for Godot v4.3 found here. FFmpeg and the Godot C++ binding compile without issue individually. However, if I try to compile the entire GDExtension I get an error. I have a Mac m1 running macOs ventura 13.1.
I tried different two version of the c/c++ standard library (xcode command-line tools 13.1 and 13.3) and tried changing the compiler from clang to gcc/g++. In all cases I get the similar errors. This is the ouput for clang -cc1 version 14.0.3 (clang-1403.0.22.14.1) default target arm64-apple-darwin22.2.0
These are the last line of the error log
Steps to reproduce
My SConstruct file with irrelevant parts deleted looks like this:
Minimal reproduction project
I use https://github.com/VoylinsGamedevJourney/GoZen_GDExtension/tree/master.
GoZen_GDExtension-master-modified_SConstruct.zip
However is use current versions of godot_cpp and FFmpeg. Using the godot_cpp 4.2.2gives me an error related to iOS when I try to compile godot_cpp as described here
The text was updated successfully, but these errors were encountered: