Closed jujpenabe closed 1 week ago
The signature of the function UPNP_GetValidIGD
has been changed for the latest version of miniupnpc: https://github.com/miniupnp/miniupnp/commit/c0a50ce33e3b99ce8a96fd43049bb5b53ffac62f#diff-5a0d7cff00628c2c64a617edb347c0f283e3a75e7df910e7e8438fc6db23f610L122-R126
just for the records, this is happening when setting builtin_miniupnpc=no
like in the godot-mono-git AUR pkgbuild, godot-git is not affected
I'll see if there's a define we can check to support both versions, but otherwise the solution is to use Godot"s built-in copy of miniupnpc (which is the default behavior).
this following command fixes build with new miniupnpc api 18:
sed -i 's/addr, 16/addr, 16, nullptr, 0/g' modules/upnp/upnp.cpp
Tested versions
System information
Artix (Arch) Linux
Issue description
Hi, I was trying to update and build Godot from Master but due to recent update in arch repositories of UPNP (libminiupnp.17 -> libminiupnp.18) cant finish the compilation step.
Complete building log:
What should I do? Downgrade the library or is planning to update it soon?
Steps to reproduce
Minimal reproduction project (MRP)
N/A