Finally I could compile Bitcoin 0.18.1 on Win7 with MinGW-w64-i686-posix-sjlj. I tried many combination all of it, but the successfully versions of libs is:
boost 1.57
libdb 4.8.30
openssl 1.0.1
libevent 2.0.22
Here my bitcoin.conf:
server=1
rpcuser=username
rpcpassword=password
rpcallowip=127.0.0.1
rpcport=8332
onlynet=ipv4
datadir=F:\BitcoinData
I use bitcoind and bitcoin-cli without any additional parameters.
When I start installed Bitcoin 0.18.1 official version everything works fine, BUT...
when I start my compiled 0.18.1 version and getbalance I get:
error: Could not connect to the server 127.0.0.1:8332
Make sure the bitcoind server is running and that you are connecting to the correct RPC port.
Same thing with other bitcoin-cli requests. Both versions use the same conf file and wallet data. Both version works with turned-on firewall and windows RPC services. What is wrong with compiled version? I can't realise which parameters in ./configure I missed. ((