This diff adds support for UPnP and an option to disable it by setting
-DENABLE_UPNP=OFF on the cmake command line.
It also adds an option START_WITH_UPNP which can be turned ON to set
UPnP as the default to map ports (OFF by default).
Differential D2997
[CMAKE] Add support for Miniupnpc Fabien on May 8 2019, 19:22. Authored by Tags None Subscribers None
Details
This diff adds support for UPnP and an option to disable it by setting It also adds an option START_WITH_UPNP which can be turned ON to set With libminiupnpc installed: mkdir buildcmake && cd buildcmake cmake -GNinja .. -DENABLE_UPNP=OFF ninja ./src/qt/bitcoin-qt Go to Settings->Options... rm -rf * cmake -GNinja .. ninja ./src/qt/bitcoin-qt Go to Settings->Options... Remove the line fUseUPnP=false from ~/.config/BitcoinABC/BitcoinABC-Qt.conf. rm -rf * cmake -GNinja -DSTART_WITH_UPNP=ON .. ninja ./src/qt/bitcoin-qt Go to Settings->Options... Uninstall libminiupnpc. On Debian sudo apt remove libminiupnpc* rm -rf * cmake -GNinja .. Should return a CMake Error: Could NOT find MiniUPnPc (missing: MINIUPNPC_INCLUDE_DIR MINIUPNPC_LIBRARY)
Diff Detail
Event TimelineComment Actions Fix the windows case.
Comment Actions Move header check to the find file. |