Post
Topic
Board Development & Technical Discussion
Re: Building headless Bitcoin and Bitcoin-qt on Windows
by
fsb4000
on 19/05/2015, 07:39:07 UTC
I wanted to compile LTC but I have a problem:

I use qmake "USE_QRCODE=1" "USE_UPNP=1" "USE_IPV6=1" litecoin-qt.pro and then mingw32-make -f Makefile.Release and I see...

Code:
./build\net.o:net.cpp:(.text+0x85f3): undefined reference to `_imp__upnpDiscover
'
./build\net.o:net.cpp:(.text+0x862a): undefined reference to `_imp__UPNP_GetVali
dIGD'
./build\net.o:net.cpp:(.text+0x866b): undefined reference to `_imp__UPNP_GetExte
rnalIPAddress'
./build\net.o:net.cpp:(.text+0x86e7): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x86fa): undefined reference to `_imp__FreeUPNPUrls
'
./build\net.o:net.cpp:(.text+0x87e7): undefined reference to `_imp__strupnperror
'
./build\net.o:net.cpp:(.text+0x8873): undefined reference to `_imp__UPNP_AddPort
Mapping'
./build\net.o:net.cpp:(.text+0x88fb): undefined reference to `_imp__UPNP_DeleteP
ortMapping'
./build\net.o:net.cpp:(.text+0x891a): undefined reference to `_imp__freeUPNPDevl
ist'
./build\net.o:net.cpp:(.text+0x8929): undefined reference to `_imp__FreeUPNPUrls

If I use UPNP=- the same errors :/

Please help...

1. open build folder.
2. delete net.o
3. open cmd
4. cd to folder with .pro file
5. qmake "USE_QRCODE=1" "USE_UPNP=1" "USE_IPV6=1"
6. mingw32-make -f Makefile.Release