Pages:
Author

Topic: [HOWTO] compile altcoin for windows on linux using mxe and mingw - page 7. (Read 49055 times)

jr. member
Activity: 40
Merit: 1
now I have a new error

Code:
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -llibdir
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lsecp256k1
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_system-mgw49-mt-s-1_57
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_filesystem-mgw49-mt-s-1_57
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_program_options-mgw49-mt-s-1_57
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_chrono-mgw49-mt-s-1_57
collect2: error: ld returned 1 exit status
make: *** [release/mycoin-qt.exe] Error 1
root@p466918:/mnt/mycoin# ./configure --host=i686-w64-mingw32.static
newbie
Activity: 24
Merit: 0
Hi everyone.
I'm trying to compile db, and getting this error. How to fix it?
Code:
...
checking if --enable-dtrace option specified... no
checking if --enable-systemtap option specified... no
checking if --enable-perfmon-statistics option specified... no
checking if --enable-uimutexes option specified... no
checking if --enable-umrw option specified... no
checking if --enable-atomicfileread option specified... no
checking if --with-cryptography option specified... yes
checking if --with-mutex=MUTEX option specified... no
checking if --with-tcl=DIR option specified... no
checking if --with-uniquename=NAME option specified... no
checking for x86-chmod... no
checking for chmod... chmod
checking for x86-cp... no
checking for cp... cp
checking for x86-ln... no
checking for ln... ln
checking for x86-mkdir... no
checking for mkdir... mkdir
checking for x86-rm... no
checking for rm... rm
checking for x86-mv... no
checking for mv... mv
checking for x86-sh... no
checking for sh... /bin/sh
checking for a BSD-compatible install... /usr/bin/install -c
checking for x86-cc... /home/mahin/Downloads/mxe/usr/bin/i686-w64-mingw32.static-gcc
checking whether the C compiler works... no
configure: error: in `/home/machin/Downloads/db-5.3.28/build_mxe':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target 'install'.  Stop.

And I also have the same problem like saddam1997.
Does anybody know a way to fix it?
jr. member
Activity: 40
Merit: 1
hello, I have this problem
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lsecp256k1
collect2: error: ld returned 1 exit status

I can not solve this problem in any way...

I did
Code:
$ ./autogen.sh
$ ./configure
$ make
$ ./tests
$ sudo make install

but it did not help
 Angry

Check all PATHs and compilation of secp256k1


with compiling spect everything is fine. But from the way I do not know how to register there spect
newbie
Activity: 11
Merit: 5
Hi,

This error is because the OpenSSL version in MXE is now 1.1.x, and the coin you are trying to compile is not compatible with OpenSSL 1.1 since there have been API breaking changes in OpenSSL 1.1.
This happens to most of the coins sadly...
You can either try to fix the errors and make the coin compile with OpenSSL 1.1 or try to use MXE with OpenSSL 1.0. Both seem to be a pita :-/
newbie
Activity: 1
Merit: 0
Hi,

I am gettting this error please help me!!!!


/mnt/mxe/usr/i686-w64-mingw32.static/qt5/bin/uic src/qt/forms/optionsdialog.ui -o build/ui_optionsdialog.h
i686-w64-mingw32.static-g++ -c -pipe -fno-keep-inline-dllexport -O2 -std=gnu++11 -fdiagnostics-show-option -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter -Wstack-protector -fexceptions -mthreads -DUNICODE -D_UNICODE -DWIN32 -DENABLE_WALLET -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -DQT_DISABLE_DEPRECATED_BEFORE=0 -DUSE_UPNP=1 -DMINIUPNP_STATICLIB -DSTATICLIB -DWIN32 -D_MT -DBOOST_THREAD_PROVIDES_GENERIC_SHARED_MUTEX_ON_WIN -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -Isrc -Isrc/json -Isrc/qt -I../mxe/usr/i686-w64-mingw32.static/include -Isrc/leveldb/include -Isrc/leveldb/helpers -I../mxe/usr/i686-w64-mingw32.static/include/boost -I../mxe/usr/i686-w64-mingw32.static/include -I../mxe/usr/i686-w64-mingw32.static/include/openssl -I../mxe/usr/i686-w64-mingw32.static/qt5/include -I../mxe/usr/i686-w64-mingw32.static/qt5/include/QtWidgets -I../mxe/usr/i686-w64-mingw32.static/qt5/include/QtGui -I../mxe/usr/i686-w64-mingw32.static/qt5/include/QtNetwork -I../mxe/usr/i686-w64-mingw32.static/qt5/include/QtCore -Ibuild -Ibuild -I../mxe/usr/i686-w64-mingw32.static/qt5/mkspecs/win32-g++  -o build/txdb-leveldb.o src/txdb-leveldb.cpp
In file included from src/script.h:18:0,
                 from src/core.h:11,
                 from src/main.h:8,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/bignum.h:57:24: error: invalid use of incomplete type 'BIGNUM {aka struct bignum_st}'
 class CBigNum : public BIGNUM
                        ^
In file included from /mnt/mxe/usr/i686-w64-mingw32.static/include/openssl/crypto.h:31:0,
                 from src/allocators.h:12,
                 from src/serialize.h:22,
                 from src/core.h:9,
                 from src/main.h:8,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
/mnt/mxe/usr/i686-w64-mingw32.static/include/openssl/ossl_typ.h:80:16: note: forward declaration of 'BIGNUM {aka struct bignum_st}'
 typedef struct bignum_st BIGNUM;
                ^
In file included from src/script.h:18:0,
                 from src/core.h:11,
                 from src/main.h:8,
                 from src/kernel.h:7,
                 from src/txdb-leveldb.cpp:17:
src/bignum.h: In constructor 'CBigNum::CBigNum()':
src/bignum.h:62:21: error: 'BN_init' was not declared in this scope
         BN_init(this);
                     ^
src/bignum.h: In copy constructor 'CBigNum::CBigNum(const CBigNum&)':
src/bignum.h:67:21: error: 'BN_init' was not declared in this scope
         BN_init(this);
                     ^
src/bignum.h:68:30: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)'
         if (!BN_copy(this, &b))
                              ^
src/bignum.h:70:31: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'void BN_clear_free(BIGNUM*)'
             BN_clear_free(this);
                               ^
src/bignum.h: In member function 'CBigNum& CBigNum::operator=(const CBigNum&)':
src/bignum.h:77:30: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'BIGNUM* BN_copy(BIGNUM*, const BIGNUM*)'
         if (!BN_copy(this, &b))
                              ^
src/bignum.h: In destructor 'CBigNum::~CBigNum()':
src/bignum.h:84:27: error: cannot convert 'CBigNum*' to 'BIGNUM* {aka bignum_st*}' for argument '1' to 'void BN_clear_free(BIGNUM*)'
         BN_clear_free(this);
                           ^
src/bignum.h: In constructor 'CBigNum::CBigNum(signed char)':
src/bignum.h:88:49: error: 'BN_init' was not declared in this scope
     CBigNum(signed char n)        { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(short int)':
src/bignum.h:89:49: error: 'BN_init' was not declared in this scope
     CBigNum(short n)              { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(int)':
src/bignum.h:90:49: error: 'BN_init' was not declared in this scope
     CBigNum(int n)                { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(long int)':
src/bignum.h:91:49: error: 'BN_init' was not declared in this scope
     CBigNum(long n)               { BN_init(this); if (n >= 0) setulong(n); else setint64(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(long long int)':
src/bignum.h:92:49: error: 'BN_init' was not declared in this scope
     CBigNum(long long n)          { BN_init(this); setint64(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(unsigned char)':
src/bignum.h:93:49: error: 'BN_init' was not declared in this scope
     CBigNum(unsigned char n)      { BN_init(this); setulong(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(short unsigned int)':
src/bignum.h:94:49: error: 'BN_init' was not declared in this scope
     CBigNum(unsigned short n)     { BN_init(this); setulong(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(unsigned int)':
src/bignum.h:95:49: error: 'BN_init' was not declared in this scope
     CBigNum(unsigned int n)       { BN_init(this); setulong(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(long unsigned int)':
src/bignum.h:96:49: error: 'BN_init' was not declared in this scope
     CBigNum(unsigned long n)      { BN_init(this); setulong(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(long long unsigned int)':
src/bignum.h:97:49: error: 'BN_init' was not declared in this scope
     CBigNum(unsigned long long n) { BN_init(this); setuint64(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(uint256)':
src/bignum.h:98:49: error: 'BN_init' was not declared in this scope
     explicit CBigNum(uint256 n)   { BN_init(this); setuint256(n); }
                                                 ^
src/bignum.h: In constructor 'CBigNum::CBigNum(const std::vector&)':
src/bignum.h:102:21: error: 'BN_init' was not declared in this scope
copper member
Activity: 124
Merit: 0
AXS.GOLD (AXSG)
hello, I have this problem
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lsecp256k1
collect2: error: ld returned 1 exit status

I can not solve this problem in any way...

I did
Code:
$ ./autogen.sh
$ ./configure
$ make
$ ./tests
$ sudo make install

but it did not help
 Angry

Check all PATHs and compilation of secp256k1
jr. member
Activity: 40
Merit: 1
hello, I have this problem
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lsecp256k1
collect2: error: ld returned 1 exit status

I can not solve this problem in any way...

I did
Code:
$ ./autogen.sh
$ ./configure
$ make
$ ./tests
$ sudo make install

but it did not help
 Angry
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
hello i tried to compile but
Code:
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*)'
 inline bool 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: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*)'
 inline bool 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*)'
 inline bool operator>(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) > 0); }
getting these error all over anyone know how to fix this .
tx.

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. I wish I had more details, but wanted you to know I am in the same boat.

sadly i still cant resolve this. tried every solution i came up with. fresh system also didnt help. lemme know if u find anything


Just a shot in the dark here, but try downgrading the libssl/openssl version.
newbie
Activity: 2
Merit: 0
hello i tried to compile but
Code:
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*)'
 inline bool 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: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*)'
 inline bool 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*)'
 inline bool operator>(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) > 0); }
getting these error all over anyone know how to fix this .
tx.

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. I wish I had more details, but wanted you to know I am in the same boat.

sadly i still cant resolve this. tried every solution i came up with. fresh system also didnt help. lemme know if u find anything
newbie
Activity: 7
Merit: 0
I experience this error:

Code:
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_thread-mgw46-mt-sd-1_53
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_system-mgw46-mt-sd-1_53
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_filesystem-mgw46-mt-sd-1_53
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_program_options-mgw46-mt-sd-1_53
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_chrono-mgw46-mt-sd-1_53
collect2: error: ld returned 1 exit status
make: * [release/Eryllium-qt.exe] Error 1

my bash file looks like that:

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

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 coin-qt.pro

make -f Makefile.Release

Can someone explain me how to fix that? Thanks!!

I am having the same question actually. Any help?
full member
Activity: 750
Merit: 100
hello i tried to compile but
Code:
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*)'
 inline bool 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: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*)'
 inline bool 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*)'
 inline bool operator>(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) > 0); }
getting these error all over anyone know how to fix this .
tx.

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. I wish I had more details, but wanted you to know I am in the same boat.
newbie
Activity: 2
Merit: 0
hello i tried to compile but
Code:
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*)'
 inline bool 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: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*)'
 inline bool 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*)'
 inline bool operator>(const CBigNum& a, const CBigNum& b)  { return (BN_cmp(&a, &b) > 0); }
getting these error all over anyone know how to fix this .
tx.
newbie
Activity: 3
Merit: 0
Hello all, i have tried to compile Ignition coin https://github.com/ignitioncoin/ignitioncoin.

I am using :
Quote

with 4gb of ram, 4 cores of i5 processor, 40gb of hdd, swap size 10gb.
In virtual machine there is boost installed version 1.57, miniupnpc-1.6.20120509, and OpenSSL 1.0.2d 9 (/mnt/user/i686-w64-mingw32.static/include/openssl/opensslv.h).

I had an error with secp256k1, then i tried

Code:
./configure --host=i686-w64-mingw32.static
make

and now error that i have is as follows :

Code:


empty space, like full page A4

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


Anyone has an idea what might be causing this error?



newbie
Activity: 1
Merit: 0
I experience this error:

Code:
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_thread-mgw46-mt-sd-1_53
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_system-mgw46-mt-sd-1_53
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_filesystem-mgw46-mt-sd-1_53
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_program_options-mgw46-mt-sd-1_53
/mnt/mxe/usr/bin/i686-w64-mingw32.static-ld: cannot find -lboost_chrono-mgw46-mt-sd-1_53
collect2: error: ld returned 1 exit status
make: * [release/Eryllium-qt.exe] Error 1

my bash file looks like that:

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

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 coin-qt.pro

make -f Makefile.Release

Can someone explain me how to fix that? Thanks!!
copper member
Activity: 133
Merit: 1

For compile wallet mac.
any opinion


In fact, thanks to mezzovide, you no longer need to build bdb separately.

https://github.com/mxe/mxe/pull/791

BitcoinDark, making it easier to build on Windows


Matthew
copper member
Activity: 133
Merit: 1
error in route.

cd /mnt/mxe
export PATH=/mnt/mxe/usr/bin:$PATH

and Compile !!!


**************************************



I have compiled the lb * .a in / src / leveldb
you take a look



*************************************

make -f Makefile.Release
make[1]: Entering directory `/root/mnt/scoin'
cd /root/mnt/scoin/src/leveldb && CC=i686-w64-mingw32.static-gcc CXX=i686-w64-mingw32.static-g++ TARGET_OS=OS_WINDOWSxport -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && i686-w64-mingw32.static-ranlib /root/mnt/suc.static-ranlib /root/mnt/scoin/src/leveldb/libmemenv.a
make[2]: Entering directory `/root/mnt/soin/src/leveldb'
make[2]: `libleveldb.a' is up to date.
make[2]: `libmemenv.a' is up to date.
make[2]: Leaving directory `/root/mnt/scoin/src/leveldb'
/bin/sh: 1: i686-w64-mingw32.static-ranlib: not found
make[1]: *** [/root/mnt/scoin/src/leveldb/libleveldb.a] Error 127
make[1]: Leaving directory `/root/mnt/scoin'
make: *** [release] Error 2

copper member
Activity: 133
Merit: 1
I have compiled the lb * .a in / src / leveldb
you take a look



*************************************

make -f Makefile.Release
make[1]: Entering directory `/root/mnt/scoin'
cd /root/mnt/scoin/src/leveldb && CC=i686-w64-mingw32.static-gcc CXX=i686-w64-mingw32.static-g++ TARGET_OS=OS_WINDOWSxport -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O2" libleveldb.a libmemenv.a && i686-w64-mingw32.static-ranlib /root/mnt/suc.static-ranlib /root/mnt/scoin/src/leveldb/libmemenv.a
make[2]: Entering directory `/root/mnt/soin/src/leveldb'
make[2]: `libleveldb.a' is up to date.
make[2]: `libmemenv.a' is up to date.
make[2]: Leaving directory `/root/mnt/scoin/src/leveldb'
/bin/sh: 1: i686-w64-mingw32.static-ranlib: not found
make[1]: *** [/root/mnt/scoin/src/leveldb/libleveldb.a] Error 127
make[1]: Leaving directory `/root/mnt/scoin'
make: *** [release] Error 2
copper member
Activity: 193
Merit: 2
Hey @gjhiggins thanks for the reply.
How do you link to that directory?

Take a look at xtrabytes examples, compile-win.sh which shows how to cross-compile the leveldb/memenv libraries https://github.com/borzalom/XtraBYtes/blob/master/compile-win.sh#L12 and xtrabytes-qt.pro which shows how to bind the environment variables to pick up the newly cross-compiled libraries: https://github.com/borzalom/XtraBYtes/blob/master/xtrabytes-qt.pro#L113

Just follow the examples, copynpasta, swapping out leveldb for secp256k1, (dunno if you need to add secp256k1 files to SOURCES and HEADERS, depends on how the interface to the library is implemented in your specific codebase). Begin edit-compile-debug cycle, hope it terminates successfully.

Cheers

Graham


Can you be more specific? I've tried working around with those files but i keep getting the same error.
Thanks

Hey @gjhiggins thanks for the reply.
How do you link to that directory?

I did download the option others posted here from Windows (pre-built) and tried to copy it pretty much everywhere @_@.

I tried to copy the content of the folder secp256k1 directly to /home/zeus/Desktop/mxe/usr/i686-w64-mingw32.static and also the folder itself.
And I tried to copy the contents of the same folder to /home/zeus/Desktop/mxe/usr/i686-w64-mingw32.static/bin (as this we add it to on the PATH= as per the tutorial) and the folder itself.

I also tried to merge the contents of /home/zeus/Desktop/AltCoin/src/secp256k1 with the ones from Windows.

None of the options worked.

Am I missing something on my file /home/zeus/Desktop/AltCoin/compile-win.sh?

Code:
#!/bin/bash
MXE_INCLUDE_PATH=~/Desktop/mxe/usr/i686-w64-mingw32.static/include
MXE_LIB_PATH=~/Desktop/mxe/usr/i686-w64-mingw32.static/lib

chmod 755 src/leveldb/build_detect_platform
chmod 755 src/secp256k1/autogen.sh
cd src/leveldb
make libleveldb.a libmemenv.a
cd ../..

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=~/Desktop/mxe/usr/i686-w64-mingw32.static/qt5/bin/lrelease altcoi[Suspicious link removed]o

make -f Makefile.Release


its needs to be in you /mnt/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.4.0 folder that worked past my errors now im getting this

Code:
pi32 -lwinmm -lz -lpcre2-16 build/bitcoin-qt_res.o 
build/key.o:key.cpp:(.text+0x181): undefined reference to `secp256k1_context_destroy'
build/key.o:key.cpp:(.text+0x2ee): undefined reference to `secp256k1_ec_privkey_import'
build/key.o:key.cpp:(.text+0x353): undefined reference to `secp256k1_ec_pubkey_create'
build/key.o:key.cpp:(.text+0x48f): undefined reference to `secp256k1_ec_privkey_import'
build/key.o:key.cpp:(.text+0x181b): undefined reference to `secp256k1_ec_pubkey_verify'
build/key.o:key.cpp:(.text+0x1890): undefined reference to `secp256k1_ec_pubkey_decompress'
build/key.o:key.cpp:(.text+0x1a83): undefined reference to `secp256k1_ec_pubkey_tweak_add'
build/key.o:key.cpp:(.text+0x2ad6): undefined reference to `secp256k1_ec_privkey_tweak_add'
build/key.o:key.cpp:(.text+0x32fa): undefined reference to `secp256k1_nonce_function_rfc6979'
build/key.o:key.cpp:(.text+0x3337): undefined reference to `secp256k1_ecdsa_sign'
build/key.o:key.cpp:(.text+0x39ac): undefined reference to `secp256k1_nonce_function_rfc6979'
build/key.o:key.cpp:(.text+0x39e3): undefined reference to `secp256k1_ecdsa_sign_compact'
build/key.o:key.cpp:(.text+0x3ea5): undefined reference to `secp256k1_ec_privkey_export'
build/key.o:key.cpp:(.text.startup+0x30): undefined reference to `secp256k1_context_create'
collect2: error: ld returned 1 exit status


Code:

  CC       src/libsecp256k1_la-secp256k1.lo
  CCLD     libsecp256k1.la
libtool: warning: undefined symbols not allowed in i686-w64-mingw32 shared libraries; building static only
/usr/bin/ar: `u' modifier ignored since `D' is the default (see `U')
  CC       src/tests-tests.o
  CCLD     tests



I try to compile the secp256k1 with ming and i get this

maybe should try to compile on windows like other have done? this coin has older version of the secp256k1 so i cannot use the binary that are on here it seems
didnt know if error was only refering to the test.o or the libsecp256k1.la
any help would be awesome great guide btw have successfully done other coins


Hey guys, if ya'll haven't found the solution to this yet, here's my code to cross compile Stipend from Ubuntu to Windows, let me know if this helps!

Code:
#!/bin/bash
MXE_PATH=$HOME/mxe
MXE_INCLUDE_PATH=$MXE_PATH/usr/i686-w64-mingw32.static/include
MXE_LIB_PATH=$MXE_PATH/usr/i686-w64-mingw32.static/lib
SECP256K1_LIB_PATH=/usr/local/lib

cd src/leveldb
TARGET_OS=NATIVE_WINDOWS make CC=i686-w64-mingw32.static-g++ CXX=i686-w64-mingw32.static-g++ libleveldb.a libmemenv.a
cd ../..

cd ./src/secp256k1
sudo ./autogen.sh
sudo ./configure --host=i686-w64-mingw32.static --with-bignum=no --enable-module-recovery
TARGET_OS=NATIVE_WINDOWS make CC=i686-w64-mingw32.static-g++ CXX=i686-w64-mingw32.static-g++ libsecp256k1.la libsecp256k1.so
sudo make install
cd ../..

$MXE_PATH/usr/bin/i686-w64-mingw32.static-qmake-qt5 \
BOOST_LIB_SUFFIX=-mt \
BOOST_THREAD_LIB_SUFFIX=_win32-mt \
BOOST_INCLUDE_PATH=$MXE_INCLUDE_PATH \
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=$MXE_PATH/usr/i686-w64-mingw32.static/qt5/bin/lrelease stipend.pro

make -f Makefile.Release
jr. member
Activity: 47
Merit: 4
How I can fix this problem. Help me please.
command: 'ranlib src/leveldb/libmemenv.a' not helped
https://duckduckgo.com/?q=%22Archive+has+no+index%3B+run+ranlib+to+add+one%22+site%3Abitcointalk.org&atb=v81-6__&ia=web

in your link they think that person dont generated libleveldb.a and libmemenv.a files, but I have the files...

/mnt/coinm# ls src/leveldb | grep lib
libleveldb.a
libmemenv.a

You might need to summon a little more persistence, then you might progress a little faster.

For people arriving later with the same problem ... from the list of search results I gave:

If you haven't got the RANLIB binding as described here:

https://bitcointalksearch.org/topic/m.10037005

then try with that.

Otherwise:

https://bitcointalksearch.org/topic/m.10037005

Other than that, you're on your own.

Cheers

Graham



that is only one link... and they do not give any solution

i am still having issues with this build and no matter what i do i get

Code:
make[1]: Entering directory '/mnt/*****/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:478: recipe for target '/mnt/****/src/leveldb/libleveldb.a' failed
make: *** [/mnt/*****/src/leveldb/libleveldb.a] Error 127

I see the "i686-w64-mingw32.static-ranlib"   located in its correct spot

I have also done

Code:
#!/bin/bash
MXE_PATH=/mnt/mxe
sed -i "s/WinIoCtl.h/winioctl.h/g" src/dbinc/win_db.h
mkdir build_mxe
cd build_mxe

RANLIB=$MXE_PATH/usr/bin/i686-w64-mingw32.static-ranlib \
      CC=$MXE_PATH/usr/bin/i686-w64-mingw32.static-gcc \
      CXX=$MXE_PATH/usr/bin/i686-w64-mingw32.static-g++ \
      ../dist/configure \
      --disable-replication \
      --enable-mingw \
      --enable-cxx \
      --host x86 \
      --prefix=$MXE_PATH/usr/i686-w64-mingw32.static

make

make install


and gave this a shot too

Code:
cd %coin_folder%/src/leveldb
TARGET_OS=NATIVE_WINDOWS make libleveldb.a libmemenv.a CC=/mnt/mxe/usr/bin/i686-w64-mingw32.static-gcc CXX=/mnt/mxe/usr/bin/i686-w64-mingw32.static-g++ RANLIB=/mnt/mxe/usr/bin/i686-w64-mingw32.static-ranlib

I followed the links  but there was only one and it gave no actual solution

been stuck on this over 24+ hours  and there is just so little documentation for help.
newbie
Activity: 19
Merit: 0
Change
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

i686-w64-mingw32.static-qmake-qt5 \
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

/mnt/mxe/usr/i686-w64-mingw32.static/qt5/bin/qmake \

Push +Merit  Smiley

i was also replying to other user did you get my error any advice?
Pages:
Jump to: