https://github.com/sskender/altcoin-mxe
Docker image with MXE tools required to build altcoins (boost1.58, qt5, db5.3, miniupnpc-1.6, libqrencode-4.0.2, openssl-1.0)
https://github.com/sskender/altcoin-mxe
altcoin berkeley berkeley-db berkeleydb bitcoin bitcoin-wallet boost boost-development cross-compile crypto cryptocurrency miniupnpc mxe openssl qt qt-wallet qt4 qt5 wallet windows
Last synced: about 1 month ago
JSON representation
Docker image with MXE tools required to build altcoins (boost1.58, qt5, db5.3, miniupnpc-1.6, libqrencode-4.0.2, openssl-1.0)
- Host: GitHub
- URL: https://github.com/sskender/altcoin-mxe
- Owner: sskender
- License: mit
- Created: 2021-10-03T21:00:24.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-15T14:52:41.000Z (about 3 years ago)
- Last Synced: 2025-01-26T20:26:20.344Z (3 months ago)
- Topics: altcoin, berkeley, berkeley-db, berkeleydb, bitcoin, bitcoin-wallet, boost, boost-development, cross-compile, crypto, cryptocurrency, miniupnpc, mxe, openssl, qt, qt-wallet, qt4, qt5, wallet, windows
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/sskender/altcoin-mxe
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# altcoin-mxe
Docker image with MXE tools required to build altcoins (boost1.58, qt5, db5.3, miniupnpc-1.6, libqrencode-4.0.2, openssl-1.0)## What is inside?
Tools:
- boost-dev v1.58
- qt5
- BerkeleyDB v5.3
- openssl v1.0
- miniupnpc v1.6
- libqrencode v4.0.2Env variables:
- MXE_PATH
- MXE_INCLUDE_PATH
- MXE_LIB_PATH## How to use this image
Build it yourself:
```bash
$ docker build --tag altcoin-mxe --target build-mxe .
```Or pull already built image from DockerHub:
```bash
$ docker pull sskender/altcoin-mxe:latest
```Run container:
```bash
$ docker run -it sskender/altcoin-mxe:latest bash
```Clone your shitcoin and build it:
```bash
$ git clone https://github.com/shitdev/shitcoin
$ cd shitcoin
$ i686-w64-mingw32.static-qmake-qt5 \
RELEASE=1 \
USE_UPNP=1 \
USE_QRCODE=1 \
USE_DBUS=1 \
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 \
QRENCODE_INCLUDE_PATH=$MXE_INCLUDE_PATH/qrencode \
QRENCODE_LIB_PATH=$MXE_LIB_PATH \
QMAKE_LRELEASE=/build/mxe/usr/i686-w64-mingw32.static/qt/bin/lrelease shitcoin-qt.pro
$ make -f Makefile.Release
```## Use for building a headless daemon
Build or pull image:
```bash
$ docker build --tag altcoin-mxe:headless --target build-headless .
$ # OR
$ docker pull sskender/altcoin-mxe:headless
```Run container:
```bash
$ docker run -it sskender/altcoin-mxe:headless bash
```Clone your shitcoin and build it:
```bash
$ git clone https://github.com/shitdev/shitcoin
$ cd shitcoin/src
$ make -f makefile.unix
```## Use as base image
```Dockerfile
FROM sskender/altcoin-mxe:latest as mybuildWORKDIR /build/shitcoin
COPY . .RUN i686-w64-mingw32.static-qmake-qt5 ...
```This will probably work. If not, have fun tweaking boost, miniupnpc, openssl versions, maybe use qt4 instead of qt5 for older altcoins or any other dependency.
## Is there a better way to do this?
Probably.
# Big thanks to [pmarie](https://hub.docker.com/u/pmarie)!