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.
Uncheck `Map port using UPnP` and close `bitcoin-qt`.
Remove the line `fUseUPnP=false` from `~/.config/BitcoinABC/BitcoinABC-Qt.conf`.
rm -rf *
cmake -GNinja -DUSE_UPNP_DEFAULT=ON ..
ninja
./src/qt/bitcoin-qt
Go to `Settings->Options...`
Click on the `Network` tab.
Check the `Map port using UPnP` checkbox is not dimmed and is checked.
Uncheck `Map port using UPnP` and close `bitcoin-qt`.
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