Bitcoin Forum
June 26, 2024, 11:45:22 PM *
News: Latest Bitcoin Core release: 27.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 49062 times)
widecash
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
May 26, 2018, 12:32:41 PM
 #201

compile-db.sh  ?  Is this just your script for building the berkeley DB ? That's from the instructions on page 1 of this thread ?

i just confused name.

here is your script:

#!/bin/bash

# Working setup to cross-compile Windows binaries for Qt Coin hosted on a
# Ubuntu 16.04 box using non-Canonical ppas for MXE and Qt5.7:
# deb http://pkg.mxe.cc/repos/apt/debian wheezy main

# Doesn't seem to pass the QT directives through, though.

# Basic path bindings

PATH=/mnt/mxe/usr/bin:$PATH
MXE_PATH=/mnt/mxe
MXE_INCLUDE_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/include
MXE_LIB_PATH=/mnt/mxe/usr/i686-w64-mingw32.static/lib

# Belt and braces

CXXFLAGS="-std=gnu++11 -march=i686"
LDFLAGS="-march=i686"
target="i686-w64-mingw32.static"

# Particulars for cross-compiling

export BOOST_LIB_SUFFIX=-mt
export BOOST_THREAD_LIB_SUFFIX=_win32-mt
export BOOST_INCLUDE_PATH=${MXE_INCLUDE_PATH}/boost
export BOOST_LIB_PATH=${MXE_LIB_PATH}
export OPENSSL_INCLUDE_PATH=${MXE_INCLUDE_PATH}/openssl
export OPENSSL_LIB_PATH=${MXE_INCLUDE_PATH}/openssl/lib
export BDB_INCLUDE_PATH=${MXE_INCLUDE_PATH}
export BDB_LIB_PATH=${MXE_LIB_PATH}
export MINIUPNPC_INCLUDE_PATH=${MXE_INCLUDE_PATH}
export MINIUPNPC_LIB_PATH=${MXE_INCLUDE_LIB}
export MINIUPNP_STATICLIB=${MXE_INCLUDE_LIB}
export QRENCODE_INCLUDE_PATH=/mnt/mxe/qrencode/install/include
export QRENCODE_LIB_PATH=/mnt/mxe/qrencode/install/lib
export SECP256K1_LIB_PATH=/home/ader/coins/AmsterdamCoin/src/secp256k1/libs
export SECP256K1_INCLUDE_PATH=/home/ader/coins/AmsterdamCoin/src/secp256k1/include
export QMAKE_LRELEASE=${MXE_PATH}/usr/${target}/qt5/bin/lrelease

# Call qmake to create Makefile.[Release|Debug]

${target}-qmake-qt5 \
    MXE=1 \
    USE_O3=1 \
    USE_QRCODE=1 \
    FIRST_CLASS_MESSAGING=1 \
    RELEASE=1 \
    O3=1 \
    USE_QRCODE=1 \
    FIRST_CLASS_MESSAGING=1 \
    RELEASE=1 \
    USE_UPNPC=1 \
    BOOST_LIB_SUFFIX=${BOOST_LIB_SUFFIX} \
    BOOST_THREAD_LIB_SUFFIX=${BOOST_THREAD_LIB_SUFFIX} \
    BOOST_INCLUDE_PATH=${BOOST_INCLUDE_PATH} \
    BOOST_LIB_PATH=${BOOST_LIB_PATH} \
    OPENSSL_INCLUDE_PATH=${OPENSSL_INCLUDE_PATH} \
    OPENSSL_LIB_PATH=${OPENSSL_LIB_PATH} \
    BDB_INCLUDE_PATH=${BDB_INCLUDE_PATH} \
    BDB_LIB_PATH=${BDB_LIB_PATH} \
    MINIUPNPC_INCLUDE_PATH=${MINIUPNPC_INCLUDE_PATH} \
    MINIUPNPC_LIB_PATH=${MINIUPNPC_LIB_PATH} \
    MINIUPNP_STATICLIB=${MINIUPNP_STATICLIB} \
    QRENCODE_INCLUDE_PATH=/mnt/mxe/qrencode/install/include \
    QRENCODE_LIB_PATH=/mnt/mxe/qrencode/install/lib \
    QMAKE_LRELEASE=${QMAKE_LRELEASE} WideCash-qt.pro
    SECP256K1_LIB_PATH=/home/ader/coins/DEPS/src/secp256k1/.libs \
    SECP256K1_INCLUDE_PATH=/home/ader/coins/DEPS/src/secp256k1/include \

# Go for it. If successful, Windows binary will be written out to ./release/COin-name-qt.exe
cd 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++


Here is result of compilation:


root@ubuntu:/mnt/wch# ./compile-blk.sh
Project MESSAGE: Building with QRCode support
Project MESSAGE: Building with UPNP support
Project MESSAGE: Building O3 optimization flag
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building with QRCode support
Project MESSAGE: Building with UPNP support
Project MESSAGE: Building O3 optimization flag
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Project MESSAGE: Building with QRCode support
Project MESSAGE: Building with UPNP support
Project MESSAGE: Building O3 optimization flag
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
make: 'libleveldb.a' is up to date.
make: 'libmemenv.a' is up to date.

D3m0nKinGx
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 507


The snake which cannot cast its skin has to die


View Profile
May 26, 2018, 12:50:03 PM
 #202

Add to the end of the script:

make -f Makefile.Release

.
.
.
▬◇
▬◇▬◆
▬◇▬◇▬◆
.
.







███
███░░░███
███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░███
███░░░███
███
.
.
.
◇▬
◆▬◇▬
◆▬◇▬◇▬
.
.
widecash
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
May 26, 2018, 02:11:03 PM
 #203

Add to the end of the script:

make -f Makefile.Release

i added already. error as below

Project MESSAGE: Building with UPNP support
Project MESSAGE: Building O3 optimization flag
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
Removed plural forms as the target language has less forms.
If this sounds wrong, possibly the target language is not set or recognized.
make: 'libleveldb.a' is up to date.
make: 'libmemenv.a' is up to date.
make: Makefile.Release: No such file or directory
make: *** No rule to make target 'Makefile.Release'.  Stop.
D3m0nKinGx
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 507


The snake which cannot cast its skin has to die


View Profile
May 26, 2018, 07:22:09 PM
Last edit: May 26, 2018, 07:42:28 PM by D3m0nKinGx
 #204

Check your paths in the script

I just looked it over there's a error. Make sure it's written as:

export OPENSSL_LIB_PATH=${MXE_LIB_PATH}
OPENSSL_INCLUDE_PATH=${OPENSSL_INCLUDE_PATH}/openssl \

unless ofc you're using a different location that you've installed your openssl files.

Otherwise I just did a test run, and it did create the Makefile.Release within the root folder of the coin.

K, I got the same error as you did,

change the line to:

make release

If you look inside the Makefile file, the first section shows the options for building:

Code:
release: FORCE
        $(MAKE) -f $(MAKEFILE).Release
release-make_first: FORCE
        $(MAKE) -f $(MAKEFILE).Release
release-all: FORCE
        $(MAKE) -f $(MAKEFILE).Release all
release-clean: FORCE
        $(MAKE) -f $(MAKEFILE).Release clean
release-distclean: FORCE
        $(MAKE) -f $(MAKEFILE).Release distclean
release-install: FORCE
        $(MAKE) -f $(MAKEFILE).Release install
release-uninstall: FORCE
        $(MAKE) -f $(MAKEFILE).Release uninstall
debug: FORCE
        $(MAKE) -f $(MAKEFILE).Debug
debug-make_first: FORCE
        $(MAKE) -f $(MAKEFILE).Debug
debug-all: FORCE
        $(MAKE) -f $(MAKEFILE).Debug all
debug-clean: FORCE
        $(MAKE) -f $(MAKEFILE).Debug clean
debug-distclean: FORCE
        $(MAKE) -f $(MAKEFILE).Debug distclean
debug-install: FORCE

so release would be the main choice:

make release

However I'm getting the error: make: *** No rule to make target 'release'.  Stop


I'm not sure why this occurring Huh

.
.
.
▬◇
▬◇▬◆
▬◇▬◇▬◆
.
.







███
███░░░███
███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░███
███░░░███
███
.
.
.
◇▬
◆▬◇▬
◆▬◇▬◇▬
.
.
D3m0nKinGx
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 507


The snake which cannot cast its skin has to die


View Profile
May 26, 2018, 09:42:19 PM
 #205

@widecash

Not totally sure what is going on, seems as if the Makefile is built incorrectly and isn't providing instruction as to where/how to use the Makefile.[Release|Debug] files.

I filed an issue with mxe's github. Hopefully they can shine a light on this one.

https://github.com/mxe/mxe/issues/2132

I also went over the script thoroughly and fixed any typos/errors as well. And the result is still the same.

But this is the proper script:

Code:
#!/bin/bash

# Working setup to cross-compile Windows binaries for Ganja (MRJA coin) hosted on a
# Ubuntu 16.04 box using non-Canonical ppas for MXE and Qt5.7:
# deb http://pkg.mxe.cc/repos/apt/debian wheezy main

# Doesn't seem to pass the QT directives through.

# Basic path bindings

PATH=/home/demon/coins/mxe/usr/bin:$PATH
MXE_PATH=/home/demon/coins/mxe
MXE_INCLUDE_PATH=/home/demon/coins/mxe/usr/x86_64-w64-mingw32.static/include
MXE_LIB_PATH=/home/demon/coins/mxe/usr/x86_64-w64-mingw32.static/lib

# Belt and braces

CXXFLAGS="-std=gnu++11 -march=x86_64"
LDFLAGS="-march=x86_64"
target="x86_64-w64-mingw32.static"

# Particulars for cross-compiling

export BOOST_LIB_SUFFIX=-mt
export BOOST_THREAD_LIB_SUFFIX=_win32-mt
export BOOST_INCLUDE_PATH=${MXE_INCLUDE_PATH}/boost
export BOOST_LIB_PATH=${MXE_LIB_PATH}
export OPENSSL_INCLUDE_PATH=${MXE_INCLUDE_PATH}/openssl
export OPENSSL_LIB_PATH=${MXE_LIB_PATH}
export BDB_INCLUDE_PATH=${MXE_INCLUDE_PATH}
export BDB_LIB_PATH=${MXE_LIB_PATH}
export MINIUPNPC_INCLUDE_PATH=${MXE_INCLUDE_PATH}
export MINIUPNPC_LIB_PATH=${MXE_INCLUDE_LIB}
export MINIUPNP_STATICLIB=${MXE_INCLUDE_LIB}
#export QRENCODE_INCLUDE_PATH=/home/demon/coins/qrencode/install/include
#export QRENCODE_LIB_PATH=/home/demon/coins/qrencode/install/lib
#export SECP256K1_LIB_PATH=/home/demon/coins/AmsterdamCoin/src/secp256k1/libs
#export SECP256K1_INCLUDE_PATH=/home/demon/coins/AmsterdamCoin/src/secp256k1/include
export QMAKE_LRELEASE=${MXE_PATH}/usr/${target}/qt5/bin/lrelease

# Call qmake to create Makefile.[Release|Debug]

${target}-qmake-qt5 \
    MXE=1 \
    USE_O3=1 \
    USE_QRCODE=1 \
    FIRST_CLASS_MESSAGING=1 \
    RELEASE=1 \
    USE_UPNPC=1 \
    BOOST_LIB_SUFFIX=${BOOST_LIB_SUFFIX} \
    BOOST_THREAD_LIB_SUFFIX=${BOOST_THREAD_LIB_SUFFIX} \
    BOOST_INCLUDE_PATH=${BOOST_INCLUDE_PATH} \
    BOOST_LIB_PATH=${BOOST_LIB_PATH} \
    OPENSSL_INCLUDE_PATH=${OPENSSL_INCLUDE_PATH}/openssl \
    OPENSSL_LIB_PATH=${OPENSSL_LIB_PATH} \
    BDB_INCLUDE_PATH=${BDB_INCLUDE_PATH} \
    BDB_LIB_PATH=${BDB_LIB_PATH} \
    MINIUPNPC_INCLUDE_PATH=${MINIUPNPC_INCLUDE_PATH} \
    MINIUPNPC_LIB_PATH=${MINIUPNPC_LIB_PATH} \
    MINIUPNP_STATICLIB=${MINIUPNP_STATICLIB} \
    QMAKE_LRELEASE=${QMAKE_LRELEASE} stratis-qt.pro
    #QRENCODE_INCLUDE_PATH=/home/demon/coins/qrencode/install/include \
    #QRENCODE_LIB_PATH=/home/demon/coins/qrencode/install/lib \
    #SECP256K1_LIB_PATH=/home/demon/coins/DEPS/src/secp256k1/.libs \
    #SECP256K1_INCLUDE_PATH=/home/demon/coins/DEPS/src/secp256k1/include \

# Go for it. If successful, Windows binary will be written out to ./release/COin-name-qt.exe

cd src/leveldb
TARGET_OS=NATIVE_WINDOWS make -j6 libleveldb.a libmemenv.a CC=/home/demon/coins/mxe/usr/bin/x86_64-w64-mingw32.static-gcc CXX=/home/demon/coins/mxe/usr/bin/x86_64-w64-mingw32.static-g++

make -j6 -f Makefile.Release CXXFLAGS="-DQT_GUI -DQT_NO_PRINTER -std=gnu++11 -march=x86_64" LDFLAGS="-march=x86_64"

I have it setup on my system for 64-bit builds.  32-bit builds just change x86_64 to i686

Anybody else that could help out with this would be appreciated.

.
.
.
▬◇
▬◇▬◆
▬◇▬◇▬◆
.
.







███
███░░░███
███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░███
███░░░███
███
.
.
.
◇▬
◆▬◇▬
◆▬◇▬◇▬
.
.
widecash
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
May 27, 2018, 04:34:31 AM
 #206

@widecash

Not totally sure what is going on, seems as if the Makefile is built incorrectly and isn't providing instruction as to where/how to use the Makefile.[Release|Debug] files.

I filed an issue with mxe's github. Hopefully they can shine a light on this one.

https://github.com/mxe/mxe/issues/2132

I also went over the script thoroughly and fixed any typos/errors as well. And the result is still the same.

But this is the proper script:

Code:
#!/bin/bash

# Working setup to cross-compile Windows binaries for Ganja (MRJA coin) hosted on a
# Ubuntu 16.04 box using non-Canonical ppas for MXE and Qt5.7:
# deb http://pkg.mxe.cc/repos/apt/debian wheezy main

# Doesn't seem to pass the QT directives through.

# Basic path bindings

PATH=/home/demon/coins/mxe/usr/bin:$PATH
MXE_PATH=/home/demon/coins/mxe
MXE_INCLUDE_PATH=/home/demon/coins/mxe/usr/x86_64-w64-mingw32.static/include
MXE_LIB_PATH=/home/demon/coins/mxe/usr/x86_64-w64-mingw32.static/lib

# Belt and braces

CXXFLAGS="-std=gnu++11 -march=x86_64"
LDFLAGS="-march=x86_64"
target="x86_64-w64-mingw32.static"

# Particulars for cross-compiling

export BOOST_LIB_SUFFIX=-mt
export BOOST_THREAD_LIB_SUFFIX=_win32-mt
export BOOST_INCLUDE_PATH=${MXE_INCLUDE_PATH}/boost
export BOOST_LIB_PATH=${MXE_LIB_PATH}
export OPENSSL_INCLUDE_PATH=${MXE_INCLUDE_PATH}/openssl
export OPENSSL_LIB_PATH=${MXE_LIB_PATH}
export BDB_INCLUDE_PATH=${MXE_INCLUDE_PATH}
export BDB_LIB_PATH=${MXE_LIB_PATH}
export MINIUPNPC_INCLUDE_PATH=${MXE_INCLUDE_PATH}
export MINIUPNPC_LIB_PATH=${MXE_INCLUDE_LIB}
export MINIUPNP_STATICLIB=${MXE_INCLUDE_LIB}
#export QRENCODE_INCLUDE_PATH=/home/demon/coins/qrencode/install/include
#export QRENCODE_LIB_PATH=/home/demon/coins/qrencode/install/lib
#export SECP256K1_LIB_PATH=/home/demon/coins/AmsterdamCoin/src/secp256k1/libs
#export SECP256K1_INCLUDE_PATH=/home/demon/coins/AmsterdamCoin/src/secp256k1/include
export QMAKE_LRELEASE=${MXE_PATH}/usr/${target}/qt5/bin/lrelease

# Call qmake to create Makefile.[Release|Debug]

${target}-qmake-qt5 \
    MXE=1 \
    USE_O3=1 \
    USE_QRCODE=1 \
    FIRST_CLASS_MESSAGING=1 \
    RELEASE=1 \
    USE_UPNPC=1 \
    BOOST_LIB_SUFFIX=${BOOST_LIB_SUFFIX} \
    BOOST_THREAD_LIB_SUFFIX=${BOOST_THREAD_LIB_SUFFIX} \
    BOOST_INCLUDE_PATH=${BOOST_INCLUDE_PATH} \
    BOOST_LIB_PATH=${BOOST_LIB_PATH} \
    OPENSSL_INCLUDE_PATH=${OPENSSL_INCLUDE_PATH}/openssl \
    OPENSSL_LIB_PATH=${OPENSSL_LIB_PATH} \
    BDB_INCLUDE_PATH=${BDB_INCLUDE_PATH} \
    BDB_LIB_PATH=${BDB_LIB_PATH} \
    MINIUPNPC_INCLUDE_PATH=${MINIUPNPC_INCLUDE_PATH} \
    MINIUPNPC_LIB_PATH=${MINIUPNPC_LIB_PATH} \
    MINIUPNP_STATICLIB=${MINIUPNP_STATICLIB} \
    QMAKE_LRELEASE=${QMAKE_LRELEASE} stratis-qt.pro
    #QRENCODE_INCLUDE_PATH=/home/demon/coins/qrencode/install/include \
    #QRENCODE_LIB_PATH=/home/demon/coins/qrencode/install/lib \
    #SECP256K1_LIB_PATH=/home/demon/coins/DEPS/src/secp256k1/.libs \
    #SECP256K1_INCLUDE_PATH=/home/demon/coins/DEPS/src/secp256k1/include \

# Go for it. If successful, Windows binary will be written out to ./release/COin-name-qt.exe

cd src/leveldb
TARGET_OS=NATIVE_WINDOWS make -j6 libleveldb.a libmemenv.a CC=/home/demon/coins/mxe/usr/bin/x86_64-w64-mingw32.static-gcc CXX=/home/demon/coins/mxe/usr/bin/x86_64-w64-mingw32.static-g++

make -j6 -f Makefile.Release CXXFLAGS="-DQT_GUI -DQT_NO_PRINTER -std=gnu++11 -march=x86_64" LDFLAGS="-march=x86_64"

I have it setup on my system for 64-bit builds.  32-bit builds just change x86_64 to i686

Anybody else that could help out with this would be appreciated.

Do you have Vmware of ubuntu that already configured this environment ? very appreciated if you can share me your VMware.
D3m0nKinGx
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 507


The snake which cannot cast its skin has to die


View Profile
May 27, 2018, 04:57:38 AM
 #207

@widecash

Not totally sure what is going on, seems as if the Makefile is built incorrectly and isn't providing instruction as to where/how to use the Makefile.[Release|Debug] files.

I filed an issue with mxe's github. Hopefully they can shine a light on this one.

https://github.com/mxe/mxe/issues/2132

I also went over the script thoroughly and fixed any typos/errors as well. And the result is still the same.

But this is the proper script:

Code:
#!/bin/bash

# Working setup to cross-compile Windows binaries for Ganja (MRJA coin) hosted on a
# Ubuntu 16.04 box using non-Canonical ppas for MXE and Qt5.7:
# deb http://pkg.mxe.cc/repos/apt/debian wheezy main

# Doesn't seem to pass the QT directives through.

# Basic path bindings

PATH=/home/demon/coins/mxe/usr/bin:$PATH
MXE_PATH=/home/demon/coins/mxe
MXE_INCLUDE_PATH=/home/demon/coins/mxe/usr/x86_64-w64-mingw32.static/include
MXE_LIB_PATH=/home/demon/coins/mxe/usr/x86_64-w64-mingw32.static/lib

# Belt and braces

CXXFLAGS="-std=gnu++11 -march=x86_64"
LDFLAGS="-march=x86_64"
target="x86_64-w64-mingw32.static"

# Particulars for cross-compiling

export BOOST_LIB_SUFFIX=-mt
export BOOST_THREAD_LIB_SUFFIX=_win32-mt
export BOOST_INCLUDE_PATH=${MXE_INCLUDE_PATH}/boost
export BOOST_LIB_PATH=${MXE_LIB_PATH}
export OPENSSL_INCLUDE_PATH=${MXE_INCLUDE_PATH}/openssl
export OPENSSL_LIB_PATH=${MXE_LIB_PATH}
export BDB_INCLUDE_PATH=${MXE_INCLUDE_PATH}
export BDB_LIB_PATH=${MXE_LIB_PATH}
export MINIUPNPC_INCLUDE_PATH=${MXE_INCLUDE_PATH}
export MINIUPNPC_LIB_PATH=${MXE_INCLUDE_LIB}
export MINIUPNP_STATICLIB=${MXE_INCLUDE_LIB}
#export QRENCODE_INCLUDE_PATH=/home/demon/coins/qrencode/install/include
#export QRENCODE_LIB_PATH=/home/demon/coins/qrencode/install/lib
#export SECP256K1_LIB_PATH=/home/demon/coins/AmsterdamCoin/src/secp256k1/libs
#export SECP256K1_INCLUDE_PATH=/home/demon/coins/AmsterdamCoin/src/secp256k1/include
export QMAKE_LRELEASE=${MXE_PATH}/usr/${target}/qt5/bin/lrelease

# Call qmake to create Makefile.[Release|Debug]

${target}-qmake-qt5 \
    MXE=1 \
    USE_O3=1 \
    USE_QRCODE=1 \
    FIRST_CLASS_MESSAGING=1 \
    RELEASE=1 \
    USE_UPNPC=1 \
    BOOST_LIB_SUFFIX=${BOOST_LIB_SUFFIX} \
    BOOST_THREAD_LIB_SUFFIX=${BOOST_THREAD_LIB_SUFFIX} \
    BOOST_INCLUDE_PATH=${BOOST_INCLUDE_PATH} \
    BOOST_LIB_PATH=${BOOST_LIB_PATH} \
    OPENSSL_INCLUDE_PATH=${OPENSSL_INCLUDE_PATH}/openssl \
    OPENSSL_LIB_PATH=${OPENSSL_LIB_PATH} \
    BDB_INCLUDE_PATH=${BDB_INCLUDE_PATH} \
    BDB_LIB_PATH=${BDB_LIB_PATH} \
    MINIUPNPC_INCLUDE_PATH=${MINIUPNPC_INCLUDE_PATH} \
    MINIUPNPC_LIB_PATH=${MINIUPNPC_LIB_PATH} \
    MINIUPNP_STATICLIB=${MINIUPNP_STATICLIB} \
    QMAKE_LRELEASE=${QMAKE_LRELEASE} stratis-qt.pro
    #QRENCODE_INCLUDE_PATH=/home/demon/coins/qrencode/install/include \
    #QRENCODE_LIB_PATH=/home/demon/coins/qrencode/install/lib \
    #SECP256K1_LIB_PATH=/home/demon/coins/DEPS/src/secp256k1/.libs \
    #SECP256K1_INCLUDE_PATH=/home/demon/coins/DEPS/src/secp256k1/include \

# Go for it. If successful, Windows binary will be written out to ./release/COin-name-qt.exe

cd src/leveldb
TARGET_OS=NATIVE_WINDOWS make -j6 libleveldb.a libmemenv.a CC=/home/demon/coins/mxe/usr/bin/x86_64-w64-mingw32.static-gcc CXX=/home/demon/coins/mxe/usr/bin/x86_64-w64-mingw32.static-g++

make -j6 -f Makefile.Release CXXFLAGS="-DQT_GUI -DQT_NO_PRINTER -std=gnu++11 -march=x86_64" LDFLAGS="-march=x86_64"

I have it setup on my system for 64-bit builds.  32-bit builds just change x86_64 to i686

Anybody else that could help out with this would be appreciated.

Do you have Vmware of ubuntu that already configured this environment ? very appreciated if you can share me your VMware.

Sorry, I don't.

.
.
.
▬◇
▬◇▬◆
▬◇▬◇▬◆
.
.







███
███░░░███
███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░███
███░░░███
███
.
.
.
◇▬
◆▬◇▬
◆▬◇▬◇▬
.
.
D3m0nKinGx
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 507


The snake which cannot cast its skin has to die


View Profile
May 27, 2018, 05:21:32 AM
 #208

@widecash

It was a simple fix for the last make command in the script

Add  cd ../.. before the last make command:

Code:
cd ../..
make -f Makefile.Release ...

.
.
.
▬◇
▬◇▬◆
▬◇▬◇▬◆
.
.







███
███░░░███
███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░███
███░░░███
███
.
.
.
◇▬
◆▬◇▬
◆▬◇▬◇▬
.
.
widecash
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
May 27, 2018, 07:17:05 AM
 #209

@widecash

It was a simple fix for the last make command in the script

Add  cd ../.. before the last make command:

Code:
cd ../..
make -f Makefile.Release ...

it showed error as below:

c/qt/transactiontablemodel.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "transactiontablemodel.h"
 ^
src/qt/bitcoingui.cpp:1:0: error: bad value (x86_64) for -march= switch
 /*
 ^
src/txdb-leveldb.cpp:1:0: error: bad value (x86_64) for -march= switch
 // Copyright (c) 2009-2010 Satoshi Nakamoto
 ^
src/qt/bitcoin.cpp:1:0: error: bad value (x86_64) for -march= switch
 /*
 ^
src/qt/addresstablemodel.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "addresstablemodel.h"
 ^
src/qt/optionsdialog.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "optionsdialog.h"
 ^
Makefile.Release:15242: recipe for target 'build/transactiontablemodel.o' failed
make: *** [build/transactiontablemodel.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile.Release:13697: recipe for target 'build/bitcoingui.o' failed
make: *** [build/bitcoingui.o] Error 1
Makefile.Release:12071: recipe for target 'build/bitcoin.o' failed
make: *** [build/bitcoin.o] Error 1
Makefile.Release:10508: recipe for target 'build/txdb-leveldb.o' failed
make: *** [build/txdb-leveldb.o] Error 1
Makefile.Release:16774: recipe for target 'build/addresstablemodel.o' failed
make: *** [build/addresstablemodel.o] Error 1
Makefile.Release:17735: recipe for target 'build/optionsdialog.o' failed
make: *** [build/optionsdialog.o] Error 1
D3m0nKinGx
Hero Member
*****
Offline Offline

Activity: 1638
Merit: 507


The snake which cannot cast its skin has to die


View Profile
May 27, 2018, 07:56:02 AM
 #210

@widecash

It was a simple fix for the last make command in the script

Add  cd ../.. before the last make command:

Code:
cd ../..
make -f Makefile.Release ...

it showed error as below:

c/qt/transactiontablemodel.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "transactiontablemodel.h"
 ^
src/qt/bitcoingui.cpp:1:0: error: bad value (x86_64) for -march= switch
 /*
 ^
src/txdb-leveldb.cpp:1:0: error: bad value (x86_64) for -march= switch
 // Copyright (c) 2009-2010 Satoshi Nakamoto
 ^
src/qt/bitcoin.cpp:1:0: error: bad value (x86_64) for -march= switch
 /*
 ^
src/qt/addresstablemodel.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "addresstablemodel.h"
 ^
src/qt/optionsdialog.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "optionsdialog.h"
 ^
Makefile.Release:15242: recipe for target 'build/transactiontablemodel.o' failed
make: *** [build/transactiontablemodel.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile.Release:13697: recipe for target 'build/bitcoingui.o' failed
make: *** [build/bitcoingui.o] Error 1
Makefile.Release:12071: recipe for target 'build/bitcoin.o' failed
make: *** [build/bitcoin.o] Error 1
Makefile.Release:10508: recipe for target 'build/txdb-leveldb.o' failed
make: *** [build/txdb-leveldb.o] Error 1
Makefile.Release:16774: recipe for target 'build/addresstablemodel.o' failed
make: *** [build/addresstablemodel.o] Error 1
Makefile.Release:17735: recipe for target 'build/optionsdialog.o' failed
make: *** [build/optionsdialog.o] Error 1


Change all instances of -march= to:

-march=native

Secondly, you should be adjusting the script accordingly to your environment, not making it x86_64 just cause mine is. You originally showed that you're using i686 platform, so you must keep it consistent throughout.

.
.
.
▬◇
▬◇▬◆
▬◇▬◇▬◆
.
.







███
███░░░███
███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░░░░░░░███
███░░░░░░░░░░░░░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░███░░░░░░░░░░░░░░░███░░░░███
███░░░░░░░░░███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░███░░░███░░░░░░░░░███
███░░░░░░░░░███░░░░░░░░░███
███░░░░░░░░░░░░░░░███
███░░░░░░░░░███
███░░░███
███
.
.
.
◇▬
◆▬◇▬
◆▬◇▬◇▬
.
.
widecash
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
May 28, 2018, 01:08:13 AM
 #211

@widecash

It was a simple fix for the last make command in the script

Add  cd ../.. before the last make command:

Code:
cd ../..
make -f Makefile.Release ...

it showed error as below:

c/qt/transactiontablemodel.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "transactiontablemodel.h"
 ^
src/qt/bitcoingui.cpp:1:0: error: bad value (x86_64) for -march= switch
 /*
 ^
src/txdb-leveldb.cpp:1:0: error: bad value (x86_64) for -march= switch
 // Copyright (c) 2009-2010 Satoshi Nakamoto
 ^
src/qt/bitcoin.cpp:1:0: error: bad value (x86_64) for -march= switch
 /*
 ^
src/qt/addresstablemodel.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "addresstablemodel.h"
 ^
src/qt/optionsdialog.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "optionsdialog.h"
 ^
Makefile.Release:15242: recipe for target 'build/transactiontablemodel.o' failed
make: *** [build/transactiontablemodel.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile.Release:13697: recipe for target 'build/bitcoingui.o' failed
make: *** [build/bitcoingui.o] Error 1
Makefile.Release:12071: recipe for target 'build/bitcoin.o' failed
make: *** [build/bitcoin.o] Error 1
Makefile.Release:10508: recipe for target 'build/txdb-leveldb.o' failed
make: *** [build/txdb-leveldb.o] Error 1
Makefile.Release:16774: recipe for target 'build/addresstablemodel.o' failed
make: *** [build/addresstablemodel.o] Error 1
Makefile.Release:17735: recipe for target 'build/optionsdialog.o' failed
make: *** [build/optionsdialog.o] Error 1


Change all instances of -march= to:

-march=native

Secondly, you should be adjusting the script accordingly to your environment, not making it x86_64 just cause mine is. You originally showed that you're using i686 platform, so you must keep it consistent throughout.

Could you share me your VMware ?
number435398
Jr. Member
*
Offline Offline

Activity: 260
Merit: 6


View Profile
May 30, 2018, 06:33:02 PM
 #212

Quote
Update:
Well it now seems as though it didn't work, but after ./compile-<coin>.sh, and running make, I got:

Code:
/bin/sh: 1: i686-w64-mingw32.static-ranlib: not found

Okay, So it seems a lot of people are getting this error, or sometimes getting:
Code:
./compile-blk.sh: line 6: i686-w64-mingw32.static-qmake-qt5: command not found
as I did.

The solution is PATH!  For those that don't totally understand it (like me), here's what I did.

With username being the letter "a" and having installed MXE into the first folder called "MXE" (that is technically located under "/home/a/", for a full path of "/home/a/mxe/") you type the following in the terminal:
Code:
export PATH="/home/a/mxe/usr/bin/:$PATH"

Modify that as necessary to match your installation location and that should work.

If you get a problem such as:
Code:
./compile-blk.sh: line 6: /mxe/usr/bin/i686-w64-mingw32.static-qmake-qt5: command not found
after following my instruction, then remove the "/mxe/usr/bin/" from your file, that way it just looks for the last piece, and with the PATH command I gave you it should find it.
bamita125
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile
June 01, 2018, 01:59:36 PM
 #213

So either change the scripts, or download this VM (i used it) and compile it from there. You just have to export path and then run compile script. Instructions are provided in the desktop.
widecash
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
June 02, 2018, 05:55:04 PM
 #214

@widecash

It was a simple fix for the last make command in the script

Add  cd ../.. before the last make command:

Code:
cd ../..
make -f Makefile.Release ...

it showed error as below:

c/qt/transactiontablemodel.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "transactiontablemodel.h"
 ^
src/qt/bitcoingui.cpp:1:0: error: bad value (x86_64) for -march= switch
 /*
 ^
src/txdb-leveldb.cpp:1:0: error: bad value (x86_64) for -march= switch
 // Copyright (c) 2009-2010 Satoshi Nakamoto
 ^
src/qt/bitcoin.cpp:1:0: error: bad value (x86_64) for -march= switch
 /*
 ^
src/qt/addresstablemodel.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "addresstablemodel.h"
 ^
src/qt/optionsdialog.cpp:1:0: error: bad value (x86_64) for -march= switch
 #include "optionsdialog.h"
 ^
Makefile.Release:15242: recipe for target 'build/transactiontablemodel.o' failed
make: *** [build/transactiontablemodel.o] Error 1
make: *** Waiting for unfinished jobs....
Makefile.Release:13697: recipe for target 'build/bitcoingui.o' failed
make: *** [build/bitcoingui.o] Error 1
Makefile.Release:12071: recipe for target 'build/bitcoin.o' failed
make: *** [build/bitcoin.o] Error 1
Makefile.Release:10508: recipe for target 'build/txdb-leveldb.o' failed
make: *** [build/txdb-leveldb.o] Error 1
Makefile.Release:16774: recipe for target 'build/addresstablemodel.o' failed
make: *** [build/addresstablemodel.o] Error 1
Makefile.Release:17735: recipe for target 'build/optionsdialog.o' failed
make: *** [build/optionsdialog.o] Error 1


Change all instances of -march= to:

-march=native

Secondly, you should be adjusting the script accordingly to your environment, not making it x86_64 just cause mine is. You originally showed that you're using i686 platform, so you must keep it consistent throughout.


Can run now but error


src/leveldb/libleveldb.a(version_set.o):version_set.cc:(.text+0x67ab): undefined reference to `leveldb::port::Mutex::Lock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x20): undefined reference to `leveldb::port::Mutex::Lock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x4d): undefined reference to `leveldb::port::Mutex::Unlock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x153): undefined reference to `leveldb::port::Mutex::~Mutex()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x193): undefined reference to `leveldb::port::Mutex::~Mutex()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x205): undefined reference to `leveldb::port::Mutex::~Mutex()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x313): undefined reference to `leveldb::port::Mutex::Lock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x351): undefined reference to `leveldb::port::Mutex::Unlock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x37d): undefined reference to `leveldb::port::Mutex::Unlock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x438): undefined reference to `leveldb::port::Mutex::Lock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x6e2): undefined reference to `leveldb::port::Mutex::Unlock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x8a4): undefined reference to `leveldb::port::Mutex::Unlock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0x915): undefined reference to `leveldb::port::Mutex::~Mutex()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0xa32): undefined reference to `leveldb::port::Mutex::Lock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0xb05): undefined reference to `leveldb::port::Mutex::Unlock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0xb41): undefined reference to `leveldb::port::Mutex::Unlock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0xba6): undefined reference to `leveldb::port::Mutex::Lock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0xc35): undefined reference to `leveldb::port::Mutex::Unlock()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0xcf6): undefined reference to `leveldb::port::Mutex::Mutex()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0xe03): undefined reference to `leveldb::port::Mutex::Mutex()'
/mnt/wch/src/leveldb/libleveldb.a(cache.o):cache.cc:(.text+0xed4): undefined reference to `leveldb::port::Mutex::~Mutex()'
/mnt/wch/src/leveldb/libleveldb.a(comparator.o):comparator.cc:(.text+0x1f3): undefined reference to `leveldb::port::InitOnce(leveldb::port::OnceType*, void (*)())'
/mnt/wch/src/leveldb/libleveldb.a(comparator.o):comparator.cc:(.text+0x1b6): undefined reference to `leveldb::port::Mutex::~Mutex()'
/mnt/wch/src/leveldb/libleveldb.a(comparator.o):comparator.cc:(.text.startup+0x10): undefined reference to `leveldb::port::Mutex::Mutex()'
/mnt/wch/src/leveldb/libleveldb.a(env_win.o):env_win.cc:(.text+0x2593): undefined reference to `leveldb::port::InitOnce(leveldb::port::OnceType*, void (*)())'
/mnt/wch/src/leveldb/libleveldb.a(env_win.o):env_win.cc:(.text+0x5e6): undefined reference to `leveldb::port::Mutex::~Mutex()'
/mnt/wch/src/leveldb/libleveldb.a(env_win.o):env_win.cc:(.text.startup+0x62): undefined reference to `leveldb::port::Mutex::Mutex()'
collect2: error: ld returned 1 exit status
bluebearcoin
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
June 05, 2018, 01:47:59 AM
 #215

how to changes money supply post to  existing blockchain?
hesdeadjim
Sr. Member
****
Offline Offline

Activity: 468
Merit: 250


View Profile
June 06, 2018, 07:10:01 PM
Last edit: June 06, 2018, 11:55:19 PM by hesdeadjim
 #216

Installing and Compiling QREncode

cd /mnt

wget http://fukuchi.org/works/qrencode/qrencode-3.4.4.tar.gz

tar xvzf qrencode-3.4.4.tar.gz

cd qrencode-3.4.4

./configure --enable-static --enable-shared --without-tools

make  


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
hesdeadjim
Sr. Member
****
Offline Offline

Activity: 468
Merit: 250


View Profile
June 06, 2018, 09:48:13 PM
Last edit: June 07, 2018, 01:08:00 AM by hesdeadjim
 #217

New error that i havent seen on this thread.

mnt/mxe/usr/i686-w64-mingw32.static/include/boost/type_traits/detail/has_binary_operator.hp:50: Parse error at "BOOST_JOIN"
Makefile.Release:774: recipe for target 'build/rpcconsole.moc' failed
make: *** [build/rpcconsole.moc] Error 1


apparently blackcoin and possibly others do not like to be compiled with qt4.

i tried that because of other errors i was getting with qt5.

so i compiled with qt5 and i got this error:

/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
Makefile.Release:427: recipe for target 'release/blackcoin-qt.exe' failed
make: *** [release/blackcoin-qt.exe] Error 1


now after reading this thread, i saw two possible solutions:

01 - To fix this issue edit the .pro file and replace  -  windows:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32

with  -  windows:LIBS += -lws2_32 -lshlwapi -lmswsock -lole32 -loleaut32 -luuid -lgdi32 -pthread

OR

02 - downgrade the version of berkeley db.

so here is my question.


My Debian environment and my MXE environment both have the same version of Berkeley DB installed - 5.3.28

The Blackcoin wallet compiles fine in the linux environment with no errors and works great.

So why doesn't it compile just as well in the MXE envorinment?

I am more interested in the why than the solution at this point, as both solutions are said to work.

Thanks.

Smiley

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
Cedric161
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
June 08, 2018, 10:36:25 AM
 #218

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


what is the solution to this issue?  I can't seem to find the answer around here.  I tried finding how to install this missing i686-w64-mingw32.static-ranlib but no luck finding how to do that.  So I redid the whole tutorial just in case I would have missed something but no luck their either.  can you point me in the right direction?
widecash
Newbie
*
Offline Offline

Activity: 58
Merit: 0


View Profile
June 09, 2018, 09:26:51 AM
 #219

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 ?
hesdeadjim
Sr. Member
****
Offline Offline

Activity: 468
Merit: 250


View Profile
June 09, 2018, 02:12:38 PM
 #220

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.

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
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!