HcashOrg / hcwallet

Hc Cli wallet
ISC License
11 stars 43 forks source link

hcwallet compile error #16

Open Seymour-w opened 5 years ago

Seymour-w commented 5 years ago

github.com/HcashOrg/hcwallet/omnilib

/usr/bin/ld: cannot find -lomnicored /usr/bin/ld: cannot find -lbitcoin_server /usr/bin/ld: cannot find -lbitcoin_common /usr/bin/ld: cannot find -lunivalue /usr/bin/ld: cannot find -lbitcoin_util /usr/bin/ld: cannot find -lbitcoin_wallet /usr/bin/ld: cannot find -lbitcoin_consensus /usr/bin/ld: cannot find -lbitcoin_crypto /usr/bin/ld: cannot find -lleveldb /usr/bin/ld: cannot find -lmemenv /usr/bin/ld: cannot find -lsecp256k1 collect2: error: ld returned 1 exit status i use go1.9 version

coolsnady commented 5 years ago

Hi, You missed omnilib.you need build it and copy it to right path.

git clone https://github.com/HcashOrg/hcOMNI.git cd hcOMNI $ chmod 777 autogen.sh $ chmod 777 share/genbuild.sh

$ sudo apt-get install make pkg-config autoconf libtool $ sudo apt-get install libboost-all-dev libssl-dev libevent-dev libdb-dev libdb++-dev

$ ./autogen.sh $ ./configure --with-incompatible-bdb --disable-tests --disable-bench $ make clean $ make

cd src ar rc libomnicored.a omnicored-bitcoind.o omnicored-omnicoreApi.o cp univalue/.libs/libunivalue.a . cp crypto/libbitcoin_crypto.a . cp leveldb/libleveldb.a . cp leveldb/libmemenv.a . cp secp256k1/.libs/libsecp256k1.a .

copy all .a to hcwallent/omnilib dir,refer below cmd,then build

hcwallet and hcd cp *.a $GOPATH/src/github.com/HcashOrg/hcwallet/omnilib

https://github.com/HcashOrg/hcOMNI

Seymour-w notifications@github.com 于2019年4月3日周三 下午2:45写道:

github.com/HcashOrg/hcwallet/omnilib

/usr/bin/ld: cannot find -lomnicored /usr/bin/ld: cannot find -lbitcoin_server /usr/bin/ld: cannot find -lbitcoin_common /usr/bin/ld: cannot find -lunivalue /usr/bin/ld: cannot find -lbitcoin_util /usr/bin/ld: cannot find -lbitcoin_wallet /usr/bin/ld: cannot find -lbitcoin_consensus /usr/bin/ld: cannot find -lbitcoin_crypto /usr/bin/ld: cannot find -lleveldb /usr/bin/ld: cannot find -lmemenv /usr/bin/ld: cannot find -lsecp256k1 collect2: error: ld returned 1 exit status i use go1.9 version

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HcashOrg/hcwallet/issues/16, or mute the thread https://github.com/notifications/unsubscribe-auth/AHkpZb7XGRQP1dn8f7GJs9TYNFXeQlKhks5vdE4AgaJpZM4cZvGd .

Seymour-w commented 5 years ago

Thx! Is the code unverified?

undefined reference to `event_enable_debug_logging' and qt/splashscreen.cpp:10:2: error: #endif without #if

I've already annotated it. But the compilation still fails

github.com/HcashOrg/hcwallet/omnilib

omnilib/libbitcoin_server.a(libbitcoin_server_a-init.o): In function AppInit2(boost::thread_group&, CScheduler&)': /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/init.cpp:1264: undefined reference toCZMQNotificationInterface::CreateWithArguments(std::map<std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::cxx11::basic_string<char, std::char_traits, std::allocator >, std::less<std::cxx11::basic_string<char, std::char_traits, std::allocator > >, std::allocator<std::pair<std::cxx11::basic_string<char, std::char_traits, std::allocator > const, std::__cxx11::basic_string<char, std::char_traits, std::allocator > > > > const&)' omnilib/libbitcoin_server.a(libbitcoin_server_a-net.o): In function ThreadMapPort()': /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/net.cpp:1385: undefined reference toupnpDiscover' /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/net.cpp:1396: undefined reference to UPNP_GetValidIGD' /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/net.cpp:1401: undefined reference toUPNP_GetExternalIPAddress' /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/net.cpp:1431: undefined reference to strupnperror' /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/net.cpp:1426: undefined reference toUPNP_AddPortMapping' /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/net.cpp:1449: undefined reference to freeUPNPDevlist' /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/net.cpp:1441: undefined reference toUPNP_DeletePortMapping' /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/net.cpp:1443: undefined reference to freeUPNPDevlist' /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/net.cpp:1444: undefined reference toFreeUPNPUrls' /home/btcpool/hcash/src/github.com/HcashOrg/hcOMNI/src/net.cpp:1451: undefined reference to `FreeUPNPUrls' collect2: error: ld returned 1 exit status

Seymour-w commented 5 years ago

hi coolsnady Hcwallet could not be compiled. Where can I download the binaries?