I'm trying to compile 32 windows wallet.
I'm using this guide:
https://bitcointalk.org/index.php?topic=149479.0I'm able to build the wallet without UPNP support, but when I try to build the wallet with UPNP support I get this error:
./build\net.o:net.cpp:(.text+0x9125): undefined reference to `_imp__upnpDiscover'
./build\net.o:net.cpp:(.text+0x9154): undefined reference to `_imp__UPNP_GetValidIGD'
./build\net.o:net.cpp:(.text+0x917a): undefined reference to `_imp__freeUPNPDevlist'
./build\net.o:net.cpp:(.text+0x91c1): undefined reference to `_imp__FreeUPNPUrls'
./build\net.o:net.cpp:(.text+0x9202): undefined reference to `_imp__UPNP_GetExternalIPAddress'
./build\net.o:net.cpp:(.text+0x9315): undefined reference to `_imp__strupnperror'
./build\net.o:net.cpp:(.text+0x93b9): undefined reference to `_imp__UPNP_AddPortMapping'
./build\net.o:net.cpp:(.text+0x96aa): undefined reference to `_imp__UPNP_DeletePortMapping'
./build\net.o:net.cpp:(.text+0x96d1): undefined reference to `_imp__freeUPNPDevlist'
./build\net.o:net.cpp:(.text+0x96e0): undefined reference to `_imp__FreeUPNPUrls'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: ./build\ne
t.o: bad reloc address 0x7 in section `.text$_ZN5boost6detail17sp_counted_impl_pINS_8signals219optio
nal_last_valueIbEEED0Ev[__ZN5boost6detail17sp_counted_impl_pINS_8signals219optional_last_valueIbEEED
0Ev]'
C:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: final link
failed: Invalid operation
collect2.exe: error: ld returned 1 exit status
Makefile.Release:382: recipe for target 'release\graviton-qt.exe' failed
mingw32-make[1]: *** [release\graviton-qt.exe] Error 1
mingw32-make[1]: Leaving directory 'C:/graviton'
makefile:34: recipe for target 'release' failed
mingw32-make: *** [release] Error 2
I can see it's a problem with miniupnpc, I compiled it as in the guide and I tried different versions but always the same error:
mingw32-make -f Makefile.mingw init upnpc-static
I added these to .pro file:
CONFIG += static
BOOST_LIB_SUFFIX=-mgw49-mt-s-1_57
BOOST_INCLUDE_PATH=C:/deps/boost_1_57_0
BOOST_LIB_PATH=C:/deps/boost_1_57_0/stage/lib
BDB_INCLUDE_PATH=C:/deps/db-4.8.30.NC/build_unix
BDB_LIB_PATH=C:/deps/db-4.8.30.NC/build_unix
OPENSSL_INCLUDE_PATH=C:/deps/openssl-1.0.1l/include
OPENSSL_LIB_PATH=C:/deps/openssl-1.0.1l
MINIUPNPC_INCLUDE_PATH=C:/deps/
MINIUPNPC_LIB_PATH=C:/deps/miniupnpc
QRENCODE_INCLUDE_PATH=C:/deps/qrencode-3.4.4
QRENCODE_LIB_PATH=C:/deps/qrencode-3.4.4/.libs
SECP256K1_LIB_PATH = C:\deps\secp256k1\.libs
SECP256K1_INCLUDE_PATH = C:\deps\secp256k1\include
Any ideas how to fix this?