Pages:
Author

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

newbie
Activity: 58
Merit: 0
@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
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
@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 ...
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
newbie
Activity: 58
Merit: 0
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
@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.
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
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
newbie
Activity: 58
Merit: 0
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.
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
Add to the end of the script:

make -f Makefile.Release
newbie
Activity: 58
Merit: 0
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.

hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
compile-db.sh  ?  Is this just your script for building the berkeley DB ? That's from the instructions on page 1 of this thread ?
newbie
Activity: 58
Merit: 0
@widecash
  • PATH=/path/to/mxe/usr/bin:$PATH
  • MXE_PATH=/path/to/mxe
  • MXE_INCLUDE_PATH=/path/to/mxe/usr/i686-w64-mingw32.static/include
  • MXE_LIB_PATH=/path/to/mxe/usr/i686-w64-mingw32.static/lib

You need to change  /path/to  to match with the locations of those directories

then

export QMAKE_LRELEASE=${MXE_PATH}/usr/${target}/qt5/bin/lrelease

will properly point to the lrelease binary

It is error as below:

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.

Those are warnings not errors, and can be ignored.

It does not generated .exe file in released folder why ?

/mnt/wch# ./compile-db.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.
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
@widecash
  • PATH=/path/to/mxe/usr/bin:$PATH
  • MXE_PATH=/path/to/mxe
  • MXE_INCLUDE_PATH=/path/to/mxe/usr/i686-w64-mingw32.static/include
  • MXE_LIB_PATH=/path/to/mxe/usr/i686-w64-mingw32.static/lib

You need to change  /path/to  to match with the locations of those directories

then

export QMAKE_LRELEASE=${MXE_PATH}/usr/${target}/qt5/bin/lrelease

will properly point to the lrelease binary

It is error as below:

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.

Those are warnings not errors, and can be ignored.
newbie
Activity: 58
Merit: 0
@widecash
  • PATH=/path/to/mxe/usr/bin:$PATH
  • MXE_PATH=/path/to/mxe
  • MXE_INCLUDE_PATH=/path/to/mxe/usr/i686-w64-mingw32.static/include
  • MXE_LIB_PATH=/path/to/mxe/usr/i686-w64-mingw32.static/lib

You need to change  /path/to  to match with the locations of those directories

then

export QMAKE_LRELEASE=${MXE_PATH}/usr/${target}/qt5/bin/lrelease

will properly point to the lrelease binary

It is error as below:

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.
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
@widecash
  • PATH=/path/to/mxe/usr/bin:$PATH
  • MXE_PATH=/path/to/mxe
  • MXE_INCLUDE_PATH=/path/to/mxe/usr/i686-w64-mingw32.static/include
  • MXE_LIB_PATH=/path/to/mxe/usr/i686-w64-mingw32.static/lib

You need to change  /path/to  to match with the locations of those directories

then

export QMAKE_LRELEASE=${MXE_PATH}/usr/${target}/qt5/bin/lrelease

will properly point to the lrelease binary
newbie
Activity: 58
Merit: 0
jr. member
Activity: 260
Merit: 6
Could you provide detail step to downgrade Openssl version 1 ?

just choose a version lower than what you use now on openssl.org

and update the code below accordingly to the version. so you probably want to use openssl 1.0.2g or lower

and change the url for the "wget" command to match with the download link on openssl.org

Code:
#!/bin/bash

# Create build directory

mkdir $HOME/dev

# Go in it

cd $HOME/dev

# Download openssl source

wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2g.tar.gz

# Extract

tar xvf openssl-1.0.2g.tar.gz

# Enter source directory

cd openssl-1.0.2g

# Compile and install

./config --prefix=$HOME/dev/openssl-1.0.2g zlib no-shared

make -j$(nproc) && make -j$(nproc) test && make install

Afterwards in the previous script i posted, just point the paths to the include and lib subdirectories of openssl on the OPENSSL_LIB_PATH AND OPENSSL_INCLUDE_PATHS respectively

Followed both of your posts, same issue.  Though I'm confused, the SSL history only goes back to 0.9.6 back in 2016, but wasn't it being used years before that?  Openssl.com doesn't appear to show anything older.

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

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

newbie
Activity: 58
Merit: 0
When compile error as below:

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: Makefile.Releas: No such file or directory
make: *** No rule to make target 'Makefile.Releas'.  Stop.
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
Hi @D3m0nKinGx

What it means for command below ?

make -j$(nproc) && make -j$(nproc) test && make install

It is optional ?

Regards,

make -j$(nproc)  = build source with all availabe cpu cores; nproc = # of processors

make -j$(nproc) test = build and run tests (yes you must do this, to make sure that openssl is properly working or you will have serious security vulnerabilities

make install = installs the libraries and necessary files to use openssl in the specified directory that was pointed to in ./config --prefix=$HOME/dev/openssl-1.0.2g
newbie
Activity: 58
Merit: 0
Hi @D3m0nKinGx

What it means for command below ?

make -j$(nproc) && make -j$(nproc) test && make install

It is optional ?

Regards,
hero member
Activity: 1638
Merit: 507
The snake which cannot cast its skin has to die
Could you provide detail step to downgrade Openssl version 1 ?

just choose a version lower than what you use now on openssl.org

and update the code below accordingly to the version. so you probably want to use openssl 1.0.2g or lower

and change the url for the "wget" command to match with the download link on openssl.org

Code:
#!/bin/bash

# Create build directory

mkdir $HOME/dev

# Go in it

cd $HOME/dev

# Download openssl source

wget https://www.openssl.org/source/old/1.0.2/openssl-1.0.2g.tar.gz

# Extract

tar xvf openssl-1.0.2g.tar.gz

# Enter source directory

cd openssl-1.0.2g

# Compile and install

./config --prefix=$HOME/dev/openssl-1.0.2g zlib no-shared

make depend

make -j$(nproc) && make -j$(nproc) test && make install

Afterwards in the previous script i posted, just point the paths to the include and lib subdirectories of openssl on the OPENSSL_LIB_PATH AND OPENSSL_INCLUDE_PATHS respectively
Pages:
Jump to: