Normalize build scripts and fix Docker Qt dependencies for x86_64
This commit is contained in:
@@ -5,6 +5,8 @@ ENV DEBIAN_FRONTEND=noninteractive TZ=UTC
|
|||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
build-essential libtool autotools-dev automake autoconf pkg-config \
|
build-essential libtool autotools-dev automake autoconf pkg-config \
|
||||||
bsdmainutils python3 curl ca-certificates git unzip zip file rsync \
|
bsdmainutils python3 curl ca-certificates git unzip zip file rsync \
|
||||||
|
libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qtbase5-dev \
|
||||||
|
libqrencode-dev libzmq3-dev libminiupnpc-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
export LC_ALL=C
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
IMAGE_NAME="palladium-builder:linux-aarch64-ubuntu20.04"
|
IMAGE_NAME="palladium-builder:linux-aarch64-ubuntu20.04"
|
||||||
@@ -28,6 +29,12 @@ docker run --rm --platform=linux/amd64 \
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd /src
|
cd /src
|
||||||
|
|
||||||
|
echo '[*] cleaning tree (avoid host-built artifacts)...'
|
||||||
|
[[ -f Makefile ]] && make distclean || true
|
||||||
|
rm -rf univalue/.libs
|
||||||
|
rm -rf depends/${HOST_TRIPLE}
|
||||||
|
rm -f config.cache
|
||||||
|
|
||||||
echo '[*] depends (HOST=${HOST_TRIPLE})...'
|
echo '[*] depends (HOST=${HOST_TRIPLE})...'
|
||||||
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
|
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
|
||||||
|
|
||||||
@@ -35,7 +42,11 @@ docker run --rm --platform=linux/amd64 \
|
|||||||
[[ -x ./autogen.sh ]] && ./autogen.sh
|
[[ -x ./autogen.sh ]] && ./autogen.sh
|
||||||
[[ -f ./configure ]] || { echo 'configure not found: autogen failed'; exit 1; }
|
[[ -f ./configure ]] || { echo 'configure not found: autogen failed'; exit 1; }
|
||||||
|
|
||||||
|
# Ensure we use Qt tools (moc/uic/rcc) from depends, not system Qt
|
||||||
|
export PATH=\$PWD/depends/${HOST_TRIPLE}/bin:\$PATH
|
||||||
|
|
||||||
./configure --prefix=\$PWD/depends/${HOST_TRIPLE} \
|
./configure --prefix=\$PWD/depends/${HOST_TRIPLE} \
|
||||||
|
--with-qt-bindir=\$PWD/depends/${HOST_TRIPLE}/bin \
|
||||||
--host=${HOST_TRIPLE} \
|
--host=${HOST_TRIPLE} \
|
||||||
--enable-glibc-back-compat \
|
--enable-glibc-back-compat \
|
||||||
--enable-reduce-exports \
|
--enable-reduce-exports \
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
export LC_ALL=C
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
IMAGE_NAME="palladium-builder:linux-armv7l-ubuntu20.04"
|
IMAGE_NAME="palladium-builder:linux-armv7l-ubuntu20.04"
|
||||||
@@ -27,6 +28,12 @@ docker run --rm --platform=linux/amd64 \
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd /src
|
cd /src
|
||||||
|
|
||||||
|
echo '[*] cleaning tree (avoid host-built artifacts)...'
|
||||||
|
[[ -f Makefile ]] && make distclean || true
|
||||||
|
rm -rf univalue/.libs
|
||||||
|
rm -rf depends/${HOST_TRIPLE}
|
||||||
|
rm -f config.cache
|
||||||
|
|
||||||
echo '[*] depends (HOST=${HOST_TRIPLE})...'
|
echo '[*] depends (HOST=${HOST_TRIPLE})...'
|
||||||
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
|
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
|
||||||
|
|
||||||
@@ -34,7 +41,11 @@ docker run --rm --platform=linux/amd64 \
|
|||||||
[[ -x ./autogen.sh ]] && ./autogen.sh
|
[[ -x ./autogen.sh ]] && ./autogen.sh
|
||||||
[[ -f ./configure ]] || { echo 'configure not found: autogen failed'; exit 1; }
|
[[ -f ./configure ]] || { echo 'configure not found: autogen failed'; exit 1; }
|
||||||
|
|
||||||
|
# Ensure we use Qt tools (moc/uic/rcc) from depends, not system Qt
|
||||||
|
export PATH=\$PWD/depends/${HOST_TRIPLE}/bin:\$PATH
|
||||||
|
|
||||||
./configure --prefix=\$PWD/depends/${HOST_TRIPLE} \
|
./configure --prefix=\$PWD/depends/${HOST_TRIPLE} \
|
||||||
|
--with-qt-bindir=\$PWD/depends/${HOST_TRIPLE}/bin \
|
||||||
--host=${HOST_TRIPLE} \
|
--host=${HOST_TRIPLE} \
|
||||||
--enable-glibc-back-compat \
|
--enable-glibc-back-compat \
|
||||||
--enable-reduce-exports \
|
--enable-reduce-exports \
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
export LC_ALL=C
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
IMAGE_NAME="palladium-builder:linux-x86_64-ubuntu20.04"
|
IMAGE_NAME="palladium-builder:linux-x86_64-ubuntu20.04"
|
||||||
@@ -28,6 +29,12 @@ docker run --rm --platform=linux/amd64 \
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd /src
|
cd /src
|
||||||
|
|
||||||
|
echo '[*] cleaning tree (avoid host-built artifacts)...'
|
||||||
|
[[ -f Makefile ]] && make distclean || true
|
||||||
|
rm -rf univalue/.libs
|
||||||
|
rm -rf depends/${HOST_TRIPLE}
|
||||||
|
rm -f config.cache
|
||||||
|
|
||||||
echo '[*] depends...'
|
echo '[*] depends...'
|
||||||
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
|
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
|
||||||
|
|
||||||
@@ -35,7 +42,11 @@ docker run --rm --platform=linux/amd64 \
|
|||||||
[[ -x ./autogen.sh ]] && ./autogen.sh
|
[[ -x ./autogen.sh ]] && ./autogen.sh
|
||||||
[[ -f ./configure ]] || { echo 'configure not found: autogen failed'; exit 1; }
|
[[ -f ./configure ]] || { echo 'configure not found: autogen failed'; exit 1; }
|
||||||
|
|
||||||
|
# Ensure we use Qt tools (moc/uic/rcc) from depends, not system Qt
|
||||||
|
export PATH=\$PWD/depends/${HOST_TRIPLE}/bin:\$PATH
|
||||||
|
|
||||||
./configure --prefix=\$PWD/depends/${HOST_TRIPLE} \
|
./configure --prefix=\$PWD/depends/${HOST_TRIPLE} \
|
||||||
|
--with-qt-bindir=\$PWD/depends/${HOST_TRIPLE}/bin \
|
||||||
--enable-glibc-back-compat \
|
--enable-glibc-back-compat \
|
||||||
--enable-reduce-exports \
|
--enable-reduce-exports \
|
||||||
LDFLAGS='-static-libstdc++'
|
LDFLAGS='-static-libstdc++'
|
||||||
@@ -55,4 +66,4 @@ docker run --rm --platform=linux/amd64 \
|
|||||||
echo '[*] build COMPLETED (everything in container) → /out'
|
echo '[*] build COMPLETED (everything in container) → /out'
|
||||||
"
|
"
|
||||||
|
|
||||||
echo "[*] Binaries available in: ${OUT_DIR}"
|
echo "[*] Binaries available in: ${OUT_DIR}"
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
export LC_ALL=C
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Directory where this script is located
|
# Directory where this script is located
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
export LC_ALL=C
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Default to not building the installer
|
# Default to not building the installer
|
||||||
@@ -38,6 +39,14 @@ docker run --rm --platform=linux/amd64 \
|
|||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
cd /src
|
cd /src
|
||||||
|
|
||||||
|
echo '[*] cleaning tree (avoid host-built artifacts)...'
|
||||||
|
[[ -f Makefile ]] && make distclean || true
|
||||||
|
(cd univalue && make distclean) || true
|
||||||
|
rm -rf univalue/.libs univalue/lib/.libs
|
||||||
|
rm -f univalue/config.cache univalue/config.status
|
||||||
|
rm -rf depends/${HOST_TRIPLE}
|
||||||
|
rm -f config.cache
|
||||||
|
|
||||||
echo '[*] depends (Windows cross, HOST=${HOST_TRIPLE})...'
|
echo '[*] depends (Windows cross, HOST=${HOST_TRIPLE})...'
|
||||||
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
|
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
|
||||||
|
|
||||||
@@ -77,4 +86,4 @@ docker run --rm --platform=linux/amd64 \
|
|||||||
echo '[*] build COMPLETED (everything in container) → /out'
|
echo '[*] build COMPLETED (everything in container) → /out'
|
||||||
"
|
"
|
||||||
|
|
||||||
echo "[*] Windows executables available in: ${OUT_DIR}"
|
echo "[*] Windows executables available in: ${OUT_DIR}"
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
export LC_ALL=C
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Quick Build Script for Palladium Core
|
# Quick Build Script for Palladium Core
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
|
export LC_ALL=C
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo "========================================================"
|
echo "========================================================"
|
||||||
|
|||||||
Reference in New Issue
Block a user