Closed bruvzg closed 3 months ago
@bruvzg Now that the Godot PR is merged, could you please rebase this and take it out of draft? It also needs the updates to the gdextension_interface.h
that were made later (adding @deprecated
). Thanks!
When I compile on the latest Godot master and the latest godot-cpp master on macOS, I get this error:
Compiling addons/secondext/src/godot-cpp/src/classes/low_level.cpp ...
addons/secondext/src/godot-cpp/src/classes/low_level.cpp:59:17: error: out-of-line definition of 'ptrw' does not match any declaration in 'godot::Image'
uint8_t *Image::ptrw() {
^~~~
addons/secondext/src/godot-cpp/src/classes/low_level.cpp:63:23: error: out-of-line definition of 'ptr' does not match any declaration in 'godot::Image'
const uint8_t *Image::ptr() {
^~~
2 errors generated.
scons: *** [addons/secondext/src/godot-cpp/src/classes/low_level.macos.template_debug.universal.o] Error 1
Does the generated image.hpp
have the ptr()
and ptrw()
methods? It's sounds like maybe it didn't get re-generated after the update?
@dsnopek Apologies, it was a case of a bad cache / lack of regeneration. I tried nuking the generated files and compiling again and it worked.
Part of https://github.com/godotengine/godot/pull/92715