With `libminiupnpc` installed:
mkdir buildcmake && cd buildcmake
cmake -DENABLE_UPNP=OFF -GNinja ..
ninja
./src/qt/bitcoin-qt
Go to `Settings->Options...`
Click on the `Network` tab.
Check the `Map port using UPnP` checkbox is dimmed.
Close `bitcoin-qt`.
rm -rf *
cmake -GNinja ..
ninja
./src/qt/bitcoin-qt
Go to `Settings->Options...`
Click on the `Network` tab.
Check the `Map port using UPnP` checkbox is no longer dimmed.
Uninstall libminiupnpc. On Debian `sudo apt remove libminiupnpc*`
rm -rf *
cmake -GNinja ..
ninja
./src/qt/bitcoin-qt
Go to `Settings->Options...`
Click on the `Network` tab.
Check the `Map port using UPnP` checkbox is dimmed.
rm -rf *
cmake -GNinja -DENABLE_UPNP=ON ..
Should return a CMake Error:
UPnP requested but cannot be built. Use -DENABLE_UPNP=OFF