Bitcoin Forum
November 04, 2024, 03:19:45 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 [12] 13 14 15 »  All
  Print  
Author Topic: [HOWTO] compile altcoin for windows on linux using mxe and mingw  (Read 49102 times)
widecash
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
June 10, 2018, 03:18:28 AM
 #221

Error when enabled QRCODE.

lude/QtCore -Ibuild -Ibuild -I../mxe/usr/i686-w64-mingw32.static/qt5/mkspecs/win32-g++  -o build/qrcodedialog.o src/qt/qrcodedialog.cpp
src/qt/qrcodedialog.cpp:12:22: fatal error: qrencode.h: No such file or directory
compilation terminated.
Makefile.Release:94227: recipe for target 'build/qrcodedialog.o' failed
make: *** [build/qrcodedialog.o] Error 1


How to fix it ?

scroll up to post 217 and install qrencode as shown.

Follow post 217 already it is still error.
Cedric161
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
June 10, 2018, 08:05:41 PM
Last edit: June 14, 2018, 09:15:56 PM by Cedric161
 #222

Does anyone have a solution for this error?

make[1]: Entering directory '/mnt/coinm/src/leveldb'
make[1]: 'libleveldb.a' is up to date.
make[1]: 'libmemenv.a' is up to date.
make[1]: Leaving directory '/mnt/coinm/src/leveldb'
/bin/sh: 1: i686-w64-mingw32.static-ranlib: not found
Makefile.Release:454: recipe for target '/mnt/coinm/src/leveldb/libleveldb.a' failed
make: *** [/mnt/coinm/src/leveldb/libleveldb.a] Error 127

I have tried several tips but nothing seems to work.  I did notice the question has been post before but no solution to be found in reply.

[edit] I found a solution:
Code:
export PATH=/mnt/mxe/usr/bin:$PATH
that got me over the error mentioned above.  Now I am
the happy owner of a dozen other errors  Tongue
cryptob22
Copper Member
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
June 12, 2018, 07:32:25 AM
 #223

Hello everyone!
Is there any guide to clone a POS/POW/Masternode coin? Is this guide working for it too? Thanks!
quynhkun177
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
June 12, 2018, 07:37:58 AM
 #224

How to mod this to compile Bitcoin?
sic_null
Newbie
*
Offline Offline

Activity: 99
Merit: 0


View Profile
June 13, 2018, 12:10:38 AM
 #225

How do we fix thee BIGNUM error, I think that could help a lot.

Okay, easiest way i've found is this.

Head to

Code:
cd /mnt/mxe/src

Then

Code:
gedit openssl.mk

Change

Code:
$(PKG)_VERSION  := 1.1.0h

$(PKG)_CHECKSUM := 5835626cde9e99656585fc7aaa2302a73a7e1340bf8c14fd635a62c66802a517

To

Code:
$(PKG)_VERSION  := 1.0.2o

$(PKG)_CHECKSUM := ec3f5c9714ba0fd45cb4e087301eb1336c317e0d20b575a125050470e8089e4d

Then rebuild.

Code:
cd ..

make build-only-openssl_i686-w64-mingw32.static
Cedric161
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
June 13, 2018, 04:07:56 AM
 #226

How to mod this to compile Bitcoin?


What do you want to make exactly?  here we speak off a Wallet to old coin's.  Where the code is already written.  This tuto is only the compiling stage
if you would want to do this, you first will need to find a QT wallet for BTC, and then follow true this tuto.  But my guess would be that they have their own
tutorial to guide you true.
yahata142
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
June 14, 2018, 09:08:58 AM
 #227

I wasn't running into if before my system restore, but setting everything back up I am getting this same error. So far, I have only found references to the ssl being an incorrect version possibly.
cryptomaster87
Newbie
*
Offline Offline

Activity: 5
Merit: 0


View Profile
June 17, 2018, 05:10:08 AM
 #228

Can I compile masternode wallet using this ?
alkaiser
Jr. Member
*
Offline Offline

Activity: 123
Merit: 1


View Profile WWW
June 18, 2018, 09:53:51 AM
Last edit: June 19, 2018, 03:48:32 AM by alkaiser
 #229

stuck with this error , tried everything but no luck , need enlightment

Code:
build/key.o:key.cpp:(.text+0x106): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x454): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x4a1): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x54b): undefined reference to `secp256k1_ec_pubkey_create'
build/key.o:key.cpp:(.text+0x581): undefined reference to `secp256k1_ec_pubkey_serialize'
build/key.o:key.cpp:(.text+0x82f): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x89a): undefined reference to `secp256k1_context_destroy'
build/main.o:main.cpp:(.text+0xeeaf): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x18cab): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x1aa18): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x1f0c3): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x2b030): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text$_ZN5CTxDBD1Ev[__ZN5CTxDBD1Ev]+0xe): more undefined references to `leveldb::WriteBatch::~WriteBatch()' follow
build/smessage.o:smessage.cpp:(.text+0x4f23): undefined reference to `leveldb::WriteBatch::WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x4f71): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x70af): undefined reference to `leveldb::Options::Options()'
build/smessage.o:smessage.cpp:(.text+0x7104): undefined reference to `leveldb::DB::Open(leveldb::Options const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, leveldb::DB**)'
build/smessage.o:smessage.cpp:(.text+0x713f): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x73e1): undefined reference to `leveldb::WriteBatch::Iterate(leveldb::WriteBatch::Handler*) const'
build/smessage.o:smessage.cpp:(.text+0x7407): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x7475): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text+0x7bbb): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x7bec): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x813a): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x843e): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x87dd): undefined reference to `leveldb::WriteBatch::Put(leveldb::Slice const&, leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x89e5): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x903a): undefined reference to `leveldb::WriteBatch::Put(leveldb::Slice const&, leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x9205): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x947d): undefined reference to `leveldb::WriteBatch::Delete(leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x9594): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0xa1ba): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0xb2a7): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xb34f): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xb74b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xbab6): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x1928b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x19712): more undefined references to `leveldb::WriteBatch::~WriteBatch()' follow
build/smessage.o:smessage.cpp:(.text$_ZN18SecMsgBatchScannerD1Ev[__ZN18SecMsgBatchScannerD1Ev]+0x25): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text$_ZN18SecMsgBatchScannerD0Ev[__ZN18SecMsgBatchScannerD0Ev]+0x21): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text$_ZN8SecMsgDBD1Ev[__ZN8SecMsgDBD1Ev]+0xe): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/messagemodel.o:messagemodel.cpp:(.text+0x1def): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/messagemodel.o:messagemodel.cpp:(.text+0x1e3b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/rpcsmessage.o:rpcsmessage.cpp:(.text+0x6a00): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/rpcsmessage.o:rpcsmessage.cpp:(.text+0x8e17): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
/mnt/mxe/usr/i686-w64-mingw32.static/lib/libdb_cxx.a(os_pid.o):os_pid.c:(.text+0x25): undefined reference to `pthread_self'
collect2: error: ld returned 1 exit status

Provider Of Block Explorer - Portfolio : https://blockxplorer.info/ , PM me if you interested to use my service.
sic_null
Newbie
*
Offline Offline

Activity: 99
Merit: 0


View Profile
June 19, 2018, 08:22:59 PM
 #230

stuck with this error , tried everything but no luck , need enlightment

Code:
build/key.o:key.cpp:(.text+0x106): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x454): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x4a1): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x54b): undefined reference to `secp256k1_ec_pubkey_create'
build/key.o:key.cpp:(.text+0x581): undefined reference to `secp256k1_ec_pubkey_serialize'
build/key.o:key.cpp:(.text+0x82f): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x89a): undefined reference to `secp256k1_context_destroy'
build/main.o:main.cpp:(.text+0xeeaf): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x18cab): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x1aa18): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x1f0c3): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x2b030): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text$_ZN5CTxDBD1Ev[__ZN5CTxDBD1Ev]+0xe): more undefined references to `leveldb::WriteBatch::~WriteBatch()' follow
build/smessage.o:smessage.cpp:(.text+0x4f23): undefined reference to `leveldb::WriteBatch::WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x4f71): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x70af): undefined reference to `leveldb::Options::Options()'
build/smessage.o:smessage.cpp:(.text+0x7104): undefined reference to `leveldb::DB::Open(leveldb::Options const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, leveldb::DB**)'
build/smessage.o:smessage.cpp:(.text+0x713f): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x73e1): undefined reference to `leveldb::WriteBatch::Iterate(leveldb::WriteBatch::Handler*) const'
build/smessage.o:smessage.cpp:(.text+0x7407): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x7475): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text+0x7bbb): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x7bec): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x813a): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x843e): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x87dd): undefined reference to `leveldb::WriteBatch::Put(leveldb::Slice const&, leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x89e5): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x903a): undefined reference to `leveldb::WriteBatch::Put(leveldb::Slice const&, leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x9205): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x947d): undefined reference to `leveldb::WriteBatch::Delete(leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x9594): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0xa1ba): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0xb2a7): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xb34f): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xb74b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xbab6): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x1928b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x19712): more undefined references to `leveldb::WriteBatch::~WriteBatch()' follow
build/smessage.o:smessage.cpp:(.text$_ZN18SecMsgBatchScannerD1Ev[__ZN18SecMsgBatchScannerD1Ev]+0x25): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text$_ZN18SecMsgBatchScannerD0Ev[__ZN18SecMsgBatchScannerD0Ev]+0x21): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text$_ZN8SecMsgDBD1Ev[__ZN8SecMsgDBD1Ev]+0xe): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/messagemodel.o:messagemodel.cpp:(.text+0x1def): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/messagemodel.o:messagemodel.cpp:(.text+0x1e3b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/rpcsmessage.o:rpcsmessage.cpp:(.text+0x6a00): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/rpcsmessage.o:rpcsmessage.cpp:(.text+0x8e17): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
/mnt/mxe/usr/i686-w64-mingw32.static/lib/libdb_cxx.a(os_pid.o):os_pid.c:(.text+0x25): undefined reference to `pthread_self'
collect2: error: ld returned 1 exit status

I kept getting this error as well and ended up going a different route. I believe it's related to improper build of secp256k1. From what i've seen, it needs to be compiled for windows inside of MXE.
alkaiser
Jr. Member
*
Offline Offline

Activity: 123
Merit: 1


View Profile WWW
June 20, 2018, 02:46:39 AM
 #231

mind to share the "route" sir ?

stuck with this error , tried everything but no luck , need enlightment

Code:
build/key.o:key.cpp:(.text+0x106): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x454): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x4a1): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x54b): undefined reference to `secp256k1_ec_pubkey_create'
build/key.o:key.cpp:(.text+0x581): undefined reference to `secp256k1_ec_pubkey_serialize'
build/key.o:key.cpp:(.text+0x82f): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x89a): undefined reference to `secp256k1_context_destroy'
build/main.o:main.cpp:(.text+0xeeaf): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x18cab): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x1aa18): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x1f0c3): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x2b030): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text$_ZN5CTxDBD1Ev[__ZN5CTxDBD1Ev]+0xe): more undefined references to `leveldb::WriteBatch::~WriteBatch()' follow
build/smessage.o:smessage.cpp:(.text+0x4f23): undefined reference to `leveldb::WriteBatch::WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x4f71): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x70af): undefined reference to `leveldb::Options::Options()'
build/smessage.o:smessage.cpp:(.text+0x7104): undefined reference to `leveldb::DB::Open(leveldb::Options const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, leveldb::DB**)'
build/smessage.o:smessage.cpp:(.text+0x713f): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x73e1): undefined reference to `leveldb::WriteBatch::Iterate(leveldb::WriteBatch::Handler*) const'
build/smessage.o:smessage.cpp:(.text+0x7407): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x7475): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text+0x7bbb): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x7bec): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x813a): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x843e): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x87dd): undefined reference to `leveldb::WriteBatch::Put(leveldb::Slice const&, leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x89e5): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x903a): undefined reference to `leveldb::WriteBatch::Put(leveldb::Slice const&, leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x9205): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x947d): undefined reference to `leveldb::WriteBatch::Delete(leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x9594): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0xa1ba): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0xb2a7): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xb34f): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xb74b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xbab6): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x1928b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x19712): more undefined references to `leveldb::WriteBatch::~WriteBatch()' follow
build/smessage.o:smessage.cpp:(.text$_ZN18SecMsgBatchScannerD1Ev[__ZN18SecMsgBatchScannerD1Ev]+0x25): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text$_ZN18SecMsgBatchScannerD0Ev[__ZN18SecMsgBatchScannerD0Ev]+0x21): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text$_ZN8SecMsgDBD1Ev[__ZN8SecMsgDBD1Ev]+0xe): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/messagemodel.o:messagemodel.cpp:(.text+0x1def): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/messagemodel.o:messagemodel.cpp:(.text+0x1e3b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/rpcsmessage.o:rpcsmessage.cpp:(.text+0x6a00): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/rpcsmessage.o:rpcsmessage.cpp:(.text+0x8e17): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
/mnt/mxe/usr/i686-w64-mingw32.static/lib/libdb_cxx.a(os_pid.o):os_pid.c:(.text+0x25): undefined reference to `pthread_self'
collect2: error: ld returned 1 exit status

I kept getting this error as well and ended up going a different route. I believe it's related to improper build of secp256k1. From what i've seen, it needs to be compiled for windows inside of MXE.

Provider Of Block Explorer - Portfolio : https://blockxplorer.info/ , PM me if you interested to use my service.
sic_null
Newbie
*
Offline Offline

Activity: 99
Merit: 0


View Profile
June 21, 2018, 02:23:04 AM
 #232

mind to share the "route" sir ?

stuck with this error , tried everything but no luck , need enlightment

Code:
build/key.o:key.cpp:(.text+0x106): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x454): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x4a1): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x54b): undefined reference to `secp256k1_ec_pubkey_create'
build/key.o:key.cpp:(.text+0x581): undefined reference to `secp256k1_ec_pubkey_serialize'
build/key.o:key.cpp:(.text+0x82f): undefined reference to `secp256k1_ec_seckey_verify'
build/key.o:key.cpp:(.text+0x89a): undefined reference to `secp256k1_context_destroy'
build/main.o:main.cpp:(.text+0xeeaf): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x18cab): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x1aa18): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x1f0c3): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text+0x2b030): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/main.o:main.cpp:(.text$_ZN5CTxDBD1Ev[__ZN5CTxDBD1Ev]+0xe): more undefined references to `leveldb::WriteBatch::~WriteBatch()' follow
build/smessage.o:smessage.cpp:(.text+0x4f23): undefined reference to `leveldb::WriteBatch::WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x4f71): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x70af): undefined reference to `leveldb::Options::Options()'
build/smessage.o:smessage.cpp:(.text+0x7104): undefined reference to `leveldb::DB::Open(leveldb::Options const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, leveldb::DB**)'
build/smessage.o:smessage.cpp:(.text+0x713f): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x73e1): undefined reference to `leveldb::WriteBatch::Iterate(leveldb::WriteBatch::Handler*) const'
build/smessage.o:smessage.cpp:(.text+0x7407): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x7475): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text+0x7bbb): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x7bec): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x813a): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x843e): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x87dd): undefined reference to `leveldb::WriteBatch::Put(leveldb::Slice const&, leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x89e5): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x903a): undefined reference to `leveldb::WriteBatch::Put(leveldb::Slice const&, leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x9205): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0x947d): undefined reference to `leveldb::WriteBatch::Delete(leveldb::Slice const&)'
build/smessage.o:smessage.cpp:(.text+0x9594): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0xa1ba): undefined reference to `leveldb::Status::ToString[abi:cxx11]() const'
build/smessage.o:smessage.cpp:(.text+0xb2a7): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xb34f): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xb74b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0xbab6): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x1928b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/smessage.o:smessage.cpp:(.text+0x19712): more undefined references to `leveldb::WriteBatch::~WriteBatch()' follow
build/smessage.o:smessage.cpp:(.text$_ZN18SecMsgBatchScannerD1Ev[__ZN18SecMsgBatchScannerD1Ev]+0x25): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text$_ZN18SecMsgBatchScannerD0Ev[__ZN18SecMsgBatchScannerD0Ev]+0x21): undefined reference to `leveldb::WriteBatch::Handler::~Handler()'
build/smessage.o:smessage.cpp:(.text$_ZN8SecMsgDBD1Ev[__ZN8SecMsgDBD1Ev]+0xe): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/messagemodel.o:messagemodel.cpp:(.text+0x1def): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/messagemodel.o:messagemodel.cpp:(.text+0x1e3b): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/rpcsmessage.o:rpcsmessage.cpp:(.text+0x6a00): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
build/rpcsmessage.o:rpcsmessage.cpp:(.text+0x8e17): undefined reference to `leveldb::WriteBatch::~WriteBatch()'
/mnt/mxe/usr/i686-w64-mingw32.static/lib/libdb_cxx.a(os_pid.o):os_pid.c:(.text+0x25): undefined reference to `pthread_self'
collect2: error: ld returned 1 exit status

I kept getting this error as well and ended up going a different route. I believe it's related to improper build of secp256k1. From what i've seen, it needs to be compiled for windows inside of MXE.

Ended up going the Gitian route. was a pain in the ass.
RedR00t
Newbie
*
Offline Offline

Activity: 141
Merit: 0


View Profile
June 21, 2018, 04:07:54 PM
 #233

Why Everytime i get this ERROR !!! Huh Huh Huh Huh Huh

bignum.h:701:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_nnmod(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
sic_null
Newbie
*
Offline Offline

Activity: 99
Merit: 0


View Profile
June 21, 2018, 07:06:11 PM
 #234

Why Everytime i get this ERROR !!! Huh Huh Huh Huh Huh

bignum.h:701:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_nnmod(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'

openssl. downgrade it. see a few posts up
RedR00t
Newbie
*
Offline Offline

Activity: 141
Merit: 0


View Profile
June 21, 2018, 07:21:34 PM
 #235

Why Everytime i get this ERROR !!! Huh Huh Huh Huh Huh

bignum.h:701:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_nnmod(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'

openssl. downgrade it. see a few posts up

ok i will try
jacky5550
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
June 21, 2018, 09:35:23 PM
 #236

i followed your guide step by step and installed all required packages, but when i try to run ./compile-blk.sh i get this output:






In file included from src/main.h:8:0,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/bignum.h:531:61: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_prime(const BIGNUM*, int, void (*)(int, int, void*), BN_CTX*, void*)'
         int ret = BN_is_prime(this, checks, NULL, pctx, NULL);
                                                             ^
src/bignum.h: In member function 'bool CBigNum::isOne() const':
src/bignum.h:539:30: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_one(const BIGNUM*)'
         return BN_is_one(this);
                              ^
src/bignum.h: In member function 'bool CBigNum::operator!() const':
src/bignum.h:545:31: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_zero(const BIGNUM*)'
         return BN_is_zero(this);
                               ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator+=(const CBigNum&)':
src/bignum.h:550:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)'
         if (!BN_add(this, this, &b))
                                   ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator*=(const CBigNum&)':
src/bignum.h:564:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
         if (!BN_mul(this, this, &b, pctx))
                                         ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator<<=(unsigned int)':
src/bignum.h:583:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_lshift(BIGNUM*, const BIGNUM*, int)'
         if (!BN_lshift(this, this, shift))
                                         ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator>>=(unsigned int)':
src/bignum.h:594:28: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
         if (BN_cmp(&a, this) > 0)
                            ^
src/bignum.h:600:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_rshift(BIGNUM*, const BIGNUM*, int)'
         if (!BN_rshift(this, this, shift))
                                         ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator++()':
src/bignum.h:609:47: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)'
         if (!BN_add(this, this, BN_value_one()))
                                               ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator--()':
src/bignum.h:626:45: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)'
         if (!BN_sub(&r, this, BN_value_one()))
                                             ^
src/bignum.h: In function 'const CBigNum operator+(const CBigNum&, const CBigNum&)':
src/bignum.h:653:27: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)'
     if (!BN_add(&r, &a, &b))
                           ^
src/bignum.h: In function 'const CBigNum operator-(const CBigNum&, const CBigNum&)':
src/bignum.h:661:27: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)'
     if (!BN_sub(&r, &a, &b))
                           ^
src/bignum.h: In function 'const CBigNum operator-(const CBigNum&)':
src/bignum.h:669:43: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_negative(const BIGNUM*)'
     BN_set_negative(&r, !BN_is_negative(&r));
                                           ^
src/bignum.h: In function 'const CBigNum operator*(const CBigNum&, const CBigNum&)':
src/bignum.h:677:33: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
     if (!BN_mul(&r, &a, &b, pctx))
                                 ^
src/bignum.h: In function 'const CBigNum operator/(const CBigNum&, const CBigNum&)':
src/bignum.h:686:39: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
     if (!BN_div(&r, NULL, &a, &b, pctx))
                                       ^
src/bignum.h: In function 'const CBigNum operator%(const CBigNum&, const CBigNum&)':
src/bignum.h:695:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_nnmod(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
     if (!BN_nnmod(&r, &a, &b, pctx))
                                   ^
src/bignum.h: In function 'const CBigNum operator<<(const CBigNum&, unsigned int)':
src/bignum.h:703:33: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_lshift(BIGNUM*, const BIGNUM*, int)'
     if (!BN_lshift(&r, &a, shift))
                                 ^
src/bignum.h: In function 'bool operator==(const CBigNum&, const CBigNum&)':
src/bignum.h:715:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); }
                                                                      ^
src/bignum.h: In function 'bool operator!=(const CBigNum&, const CBigNum&)':
src/bignum.h:716:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); }
                                                                      ^
src/bignum.h: In function 'bool operator<=(const CBigNum&, const CBigNum&)':
src/bignum.h:717:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); }
                                                                      ^
src/bignum.h: In function 'bool operator>=(const CBigNum&, const CBigNum&)':
src/bignum.h:718:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); }
                                                                      ^
src/bignum.h: In function 'bool operator<(const CBigNum&, const CBigNum&)':
src/bignum.h:719:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 operator<(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) < 0); }
                                                                       ^
src/bignum.h: In function 'bool operator>(const CBigNum&, const CBigNum&)':
src/bignum.h:720:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 operator>(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) > 0); }
                                                                       ^
In file included from src/addrman.h:9:0,
                 from src/net.h:20,
                 from src/main.h:10,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/util.h: In function 'std::__cxx11::string i64tostr(int64_t)':
src/util.h:182:69: warning: unknown conversion type character 'l' in format [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/util.h:251:12: note: in expansion of macro 'strprintf'
     return strprintf("%"PRId64, n);
            ^
src/util.h:182:69: warning: too many arguments for format [-Wformat-extra-args]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/util.h:251:12: note: in expansion of macro 'strprintf'
     return strprintf("%"PRId64, n);
            ^
In file included from src/main.h:10:0,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/net.h: In member function 'void CNode::AskFor(const CInv&)':
src/net.h:380:149: warning: unknown conversion type character 'l' in format [-Wformat=]
 (), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
                                                                              ^
src/net.h:380:149: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'int64_t {aka long long int}' [-Wformat=]
src/net.h:380:149: warning: too many arguments for format [-Wformat-extra-args]
In file included from src/addrman.h:9:0,
                 from src/net.h:20,
                 from src/main.h:10,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/main.h: In member function 'std::__cxx11::string CBlockIndex::ToString() const':
src/util.h:182:69: warning: unknown conversion type character 'l' in format [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%x' expects argument of type 'unsigned int', but argument 13 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%s' expects argument of type 'char*', but argument 14 has type 'unsigned int' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%d' expects argument of type 'int', but argument 16 has type 'const char*' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%s' expects argument of type 'char*', but argument 17 has type 'unsigned int' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: too many arguments for format [-Wformat-extra-args]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/txdb-leveldb.cpp: In member function 'bool CTxDB::LoadBlockIndex()':
src/txdb-leveldb.cpp:409:160: warning: unknown conversion type character 'l' in format [-Wformat=]
 nt height=%d, modifier=0x%016"PRIx64, pindex->nHeight, pindex->nStakeModifier);
                                                                              ^
src/txdb-leveldb.cpp:409:160: warning: too many arguments for format [-Wformat-extra-args]
Makefile.Release:10241: recipe for target 'build/txdb-leveldb.o' failed
make: *** [build/txdb-leveldb.o] Error 1








i sent you as much of it as i could, because i dont know what/where the mistake is
alonseider007
Full Member
***
Offline Offline

Activity: 176
Merit: 100


View Profile
June 23, 2018, 04:12:57 PM
 #237

good when putting in cd / mnt / mxe.

make MXE_TARGETS = "i686-w64-mingw32.static" qttools

I get the error of

Failed to build package fontconfig for target i686-w64-mingw32.static!
-------------------------------------------------- ----------
               is older Please upgrade to gettext-0.19.8 or newer.
autopoint: *** Stop.
autoreconf: autopoint failed with exit status: 1
Makefile: 787: failure in the instructions for the target 'build-only-fontconfig_i686-w64-mingw32.static'
make [1]: *** [build-only-fontconfig_i686-w64-mingw32.static] Error 1
make [1]: it leaves the directory '/ home / alonso / mnt / mxe'
real 0m4.582s
user 0m2.913s
sys 0m0.226s
-------------------------------------------------- ----------
[log] /home/alonso/mnt/mxe/log/fontconfig_i686-w64-mingw32.static

Makefile: 787: failure in the instructions for the target '/home/alonso/mnt/mxe/usr/i686-w64-mingw32.static/installed/fontconfig'
make: *** [/home/alonso/mnt/mxe/usr/i686-w64-mingw32.static/installed/fontconfig] Error 1

how do I solve it
widecash
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
June 25, 2018, 02:25:04 AM
 #238

i followed your guide step by step and installed all required packages, but when i try to run ./compile-blk.sh i get this output:






In file included from src/main.h:8:0,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/bignum.h:531:61: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_prime(const BIGNUM*, int, void (*)(int, int, void*), BN_CTX*, void*)'
         int ret = BN_is_prime(this, checks, NULL, pctx, NULL);
                                                             ^
src/bignum.h: In member function 'bool CBigNum::isOne() const':
src/bignum.h:539:30: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_one(const BIGNUM*)'
         return BN_is_one(this);
                              ^
src/bignum.h: In member function 'bool CBigNum::operator!() const':
src/bignum.h:545:31: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_zero(const BIGNUM*)'
         return BN_is_zero(this);
                               ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator+=(const CBigNum&)':
src/bignum.h:550:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)'
         if (!BN_add(this, this, &b))
                                   ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator*=(const CBigNum&)':
src/bignum.h:564:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
         if (!BN_mul(this, this, &b, pctx))
                                         ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator<<=(unsigned int)':
src/bignum.h:583:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_lshift(BIGNUM*, const BIGNUM*, int)'
         if (!BN_lshift(this, this, shift))
                                         ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator>>=(unsigned int)':
src/bignum.h:594:28: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
         if (BN_cmp(&a, this) > 0)
                            ^
src/bignum.h:600:41: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_rshift(BIGNUM*, const BIGNUM*, int)'
         if (!BN_rshift(this, this, shift))
                                         ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator++()':
src/bignum.h:609:47: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)'
         if (!BN_add(this, this, BN_value_one()))
                                               ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator--()':
src/bignum.h:626:45: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)'
         if (!BN_sub(&r, this, BN_value_one()))
                                             ^
src/bignum.h: In function 'const CBigNum operator+(const CBigNum&, const CBigNum&)':
src/bignum.h:653:27: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_add(BIGNUM*, const BIGNUM*, const BIGNUM*)'
     if (!BN_add(&r, &a, &b))
                           ^
src/bignum.h: In function 'const CBigNum operator-(const CBigNum&, const CBigNum&)':
src/bignum.h:661:27: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_sub(BIGNUM*, const BIGNUM*, const BIGNUM*)'
     if (!BN_sub(&r, &a, &b))
                           ^
src/bignum.h: In function 'const CBigNum operator-(const CBigNum&)':
src/bignum.h:669:43: error: cannot convert 'CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_is_negative(const BIGNUM*)'
     BN_set_negative(&r, !BN_is_negative(&r));
                                           ^
src/bignum.h: In function 'const CBigNum operator*(const CBigNum&, const CBigNum&)':
src/bignum.h:677:33: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_mul(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
     if (!BN_mul(&r, &a, &b, pctx))
                                 ^
src/bignum.h: In function 'const CBigNum operator/(const CBigNum&, const CBigNum&)':
src/bignum.h:686:39: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_div(BIGNUM*, BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
     if (!BN_div(&r, NULL, &a, &b, pctx))
                                       ^
src/bignum.h: In function 'const CBigNum operator%(const CBigNum&, const CBigNum&)':
src/bignum.h:695:35: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_nnmod(BIGNUM*, const BIGNUM*, const BIGNUM*, BN_CTX*)'
     if (!BN_nnmod(&r, &a, &b, pctx))
                                   ^
src/bignum.h: In function 'const CBigNum operator<<(const CBigNum&, unsigned int)':
src/bignum.h:703:33: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'int BN_lshift(BIGNUM*, const BIGNUM*, int)'
     if (!BN_lshift(&r, &a, shift))
                                 ^
src/bignum.h: In function 'bool operator==(const CBigNum&, const CBigNum&)':
src/bignum.h:715:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator==(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) == 0); }
                                                                      ^
src/bignum.h: In function 'bool operator!=(const CBigNum&, const CBigNum&)':
src/bignum.h:716:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator!=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) != 0); }
                                                                      ^
src/bignum.h: In function 'bool operator<=(const CBigNum&, const CBigNum&)':
src/bignum.h:717:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator<=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) <= 0); }
                                                                      ^
src/bignum.h: In function 'bool operator>=(const CBigNum&, const CBigNum&)':
src/bignum.h:718:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 perator>=(const CBigNum& a, const CBigNum& b) { return (BN_cmp(&a, &b) >= 0); }
                                                                      ^
src/bignum.h: In function 'bool operator<(const CBigNum&, const CBigNum&)':
src/bignum.h:719:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 operator<(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) < 0); }
                                                                       ^
src/bignum.h: In function 'bool operator>(const CBigNum&, const CBigNum&)':
src/bignum.h:720:83: error: cannot convert 'const CBigNum*' to 'const BIGNUM* {aka const bignum_st*}' for argument '1' to 'int BN_cmp(const BIGNUM*, const BIGNUM*)'
 operator>(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) > 0); }
                                                                       ^
In file included from src/addrman.h:9:0,
                 from src/net.h:20,
                 from src/main.h:10,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/util.h: In function 'std::__cxx11::string i64tostr(int64_t)':
src/util.h:182:69: warning: unknown conversion type character 'l' in format [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/util.h:251:12: note: in expansion of macro 'strprintf'
     return strprintf("%"PRId64, n);
            ^
src/util.h:182:69: warning: too many arguments for format [-Wformat-extra-args]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/util.h:251:12: note: in expansion of macro 'strprintf'
     return strprintf("%"PRId64, n);
            ^
In file included from src/main.h:10:0,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/net.h: In member function 'void CNode::AskFor(const CInv&)':
src/net.h:380:149: warning: unknown conversion type character 'l' in format [-Wformat=]
 (), nRequestTime, DateTimeStrFormat("%H:%M:%S", nRequestTime/1000000).c_str());
                                                                              ^
src/net.h:380:149: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'int64_t {aka long long int}' [-Wformat=]
src/net.h:380:149: warning: too many arguments for format [-Wformat-extra-args]
In file included from src/addrman.h:9:0,
                 from src/net.h:20,
                 from src/main.h:10,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/main.h: In member function 'std::__cxx11::string CBlockIndex::ToString() const':
src/util.h:182:69: warning: unknown conversion type character 'l' in format [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%x' expects argument of type 'unsigned int', but argument 13 has type 'uint64_t {aka long long unsigned int}' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%s' expects argument of type 'char*', but argument 14 has type 'unsigned int' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%d' expects argument of type 'int', but argument 16 has type 'const char*' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: format '%s' expects argument of type 'char*', but argument 17 has type 'unsigned int' [-Wformat=]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/util.h:182:69: warning: too many arguments for format [-Wformat-extra-args]
 #define strprintf(format, ...) real_strprintf(format, 0, __VA_ARGS__)
                                                                     ^
src/main.h:1302:16: note: in expansion of macro 'strprintf'
         return strprintf("CBlockIndex(nprev=%p, pnext=%p, nFile=%u, nBlockPos=%
                ^
src/txdb-leveldb.cpp: In member function 'bool CTxDB::LoadBlockIndex()':
src/txdb-leveldb.cpp:409:160: warning: unknown conversion type character 'l' in format [-Wformat=]
 nt height=%d, modifier=0x%016"PRIx64, pindex->nHeight, pindex->nStakeModifier);
                                                                              ^
src/txdb-leveldb.cpp:409:160: warning: too many arguments for format [-Wformat-extra-args]
Makefile.Release:10241: recipe for target 'build/txdb-leveldb.o' failed
make: *** [build/txdb-leveldb.o] Error 1








i sent you as much of it as i could, because i dont know what/where the mistake is


Downgrade SSL is the solution.
hesdeadjim
Sr. Member
****
Offline Offline

Activity: 468
Merit: 250


View Profile
June 26, 2018, 12:53:55 AM
 #239

Hey everyone.

I am getting the error:  cannot find -lsecp256k1

After reading back I believe i have to add the -L switch to the secp256k1 path but i don't know where.

Here is my compile.sh file.

Please help if you can.

Thanks.

Code:
#!/bin/bash
MXE_INCLUDE_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/include
MXE_LIB_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/lib
SECP256K1_PATH=/mnt/k2x-source/src/secp256k1/include

i686-w64-mingw32.static-qmake-qt5 \
BOOST_LIB_SUFFIX=-mt \
BOOST_THREAD_LIB_SUFFIX=_win32-mt \
BOOST_INCLUDE_PATH=$MXE_INCLUDE_PATH/boost \
BOOST_LIB_PATH=$MXE_LIB_PATH \
OPENSSL_INCLUDE_PATH=$MXE_INCLUDE_PATH/openssl \
OPENSSL_LIB_PATH=$MXE_LIB_PATH \
BDB_INCLUDE_PATH=$MXE_INCLUDE_PATH \
BDB_LIB_PATH=$MXE_LIB_PATH \
MINIUPNPC_INCLUDE_PATH=$MXE_INCLUDE_PATH \
MINIUPNPC_LIB_PATH=$MXE_LIB_PATH \
SECP256K1_INCLUDE_PATH=$SECP256K1_PATH \
QMAKE_LRELEASE=/mnt/mxe/usr/i686-w64-mingw32.static/qt/bin/lrelease katana.pro

make -f Makefile.Release

Awesome New Exchange  -  http://www.cryproquo.com/addcoin.html  -  Awesome New Exchange
Put  -  Referred By hesdeadjim  -  In The Box Marked Additional Notes And Receive 1/2 Off Listing Fees From 07/01/18  -  07/07/18
skyler06
Copper Member
Newbie
*
Offline Offline

Activity: 69
Merit: 0


View Profile
June 29, 2018, 10:23:53 PM
 #240

/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lsecp256k1
collect2: error: ld returned 1 exit status
make: *** [release/klm-qt.exe] Error 1


same error here

which file and which line need to be changed for get the good patch plz ?

qt.pro or compile.sh ? other ?

#!/bin/bash
MXE_INCLUDE_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/include
MXE_LIB_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/lib
export PATH=/mnt/mxe/usr/bin:$PATH

i686-w64-mingw32.static-qmake-qt5 \
        BOOST_LIB_SUFFIX=-mt \
        BOOST_THREAD_LIB_SUFFIX=_win32-mt \
        BOOST_INCLUDE_PATH=$MXE_INCLUDE_PATH/boost \
        BOOST_LIB_PATH=$MXE_LIB_PATH \
        OPENSSL_INCLUDE_PATH=$MXE_INCLUDE_PATH/openssl \
        OPENSSL_LIB_PATH=$MXE_LIB_PATH \
        BDB_INCLUDE_PATH=$MXE_INCLUDE_PATH \
        BDB_LIB_PATH=$MXE_LIB_PATH \
        MINIUPNPC_INCLUDE_PATH=$MXE_INCLUDE_PATH \
        MINIUPNPC_LIB_PATH=$MXE_LIB_PATH \
        QMAKE_LRELEASE=/mnt/mxe/usr/i686-w64-mingw32.static/qt5/bin/lrelease klm-qt.pro

make -j 16 -f Makefile.Release


qt.pro ===> https://ufile.io/o0v2a

thx for help
Pages: « 1 2 3 4 5 6 7 8 9 10 11 [12] 13 14 15 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!