New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
init.cpp #2
Comments
Don't build with USE_UPNP if you have no libminiupnpc with its headers installed. MINIUPNPC_VERSION and MINIUPNPC_API_VERSION are defined in miniupnpc/miniupnpc.h |
I did try with and without the USE_UPNP flag. I as well have libminiupnpc files installed. I did have the same issue on my pool with Orbit but no other coins on my neoscrypt machine. |
What error do you get with it? |
From fresh repo download same error |
so you can`t enable or disable with command. if you leave no flag on miniUPnP it builds without it looks to be |
init.cpp lines 20 to 22: You haven't included it apparently. Set USE_UPNP=- to exclude all uPnP code. |
and to include? |
trezarcoin-qt.pro lines 80 to 82: # use: qmake "USE_UPNP=1" ( enabled by default; default)# or: qmake "USE_UPNP=0" (disabled by default)# or: qmake "USE_UPNP=-" (not supported)First two options compile the UPnP support in, the last one doesn't. If you have libminiupnpc installed in /usr/local/lib and its headers in /usr/local/include, add -I/usr/local/include to make sure the compiler doesn't miss them. |
make -f makefile.unix USE_UPNP=1 make -f makefile.unix USE_UPNP=0 make -f makefile.unix USE_UPNP= built just fine (notice no -) |
The same thing. Add -I/usr/local/include or where it is. |
Oh I`ve never had it not take it from the environment variables. I will remember this one as searching came up with almost nothing. Thanks maybe this will help the next person that runs in to it and are baffled Cheers |
Please remove lines 613 to 615 in init.cpp as it tosses errors and stops build on stock Ubuntu 16.04LTS
#ifdef USE_UPNP
printf("Using miniUPnP Client v%s API v%d\n", MINIUPNPC_VERSION, MINIUPNPC_API_VERSION);
#endif
when removed I get no errors and build goes great. Thanks
TeG5nkcRmdJBYVke6eMyRb31qtAzCVQUwh
The text was updated successfully, but these errors were encountered: