Normalize build scripts and fix Docker Qt dependencies for x86_64

This commit is contained in:
2026-02-05 13:31:50 +01:00
parent c539ebedc7
commit 3bc7cff5ba
8 changed files with 51 additions and 4 deletions

View File

@@ -5,6 +5,8 @@ ENV DEBIAN_FRONTEND=noninteractive TZ=UTC
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential libtool autotools-dev automake autoconf pkg-config \
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/*
WORKDIR /src

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
export LC_ALL=C
set -euo pipefail
IMAGE_NAME="palladium-builder:linux-aarch64-ubuntu20.04"
@@ -28,6 +29,12 @@ docker run --rm --platform=linux/amd64 \
set -euo pipefail
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})...'
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
@@ -35,7 +42,11 @@ docker run --rm --platform=linux/amd64 \
[[ -x ./autogen.sh ]] && ./autogen.sh
[[ -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} \
--with-qt-bindir=\$PWD/depends/${HOST_TRIPLE}/bin \
--host=${HOST_TRIPLE} \
--enable-glibc-back-compat \
--enable-reduce-exports \

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
export LC_ALL=C
set -euo pipefail
IMAGE_NAME="palladium-builder:linux-armv7l-ubuntu20.04"
@@ -27,6 +28,12 @@ docker run --rm --platform=linux/amd64 \
set -euo pipefail
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})...'
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
@@ -34,7 +41,11 @@ docker run --rm --platform=linux/amd64 \
[[ -x ./autogen.sh ]] && ./autogen.sh
[[ -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} \
--with-qt-bindir=\$PWD/depends/${HOST_TRIPLE}/bin \
--host=${HOST_TRIPLE} \
--enable-glibc-back-compat \
--enable-reduce-exports \

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
export LC_ALL=C
set -euo pipefail
IMAGE_NAME="palladium-builder:linux-x86_64-ubuntu20.04"
@@ -28,6 +29,12 @@ docker run --rm --platform=linux/amd64 \
set -euo pipefail
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...'
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..
@@ -35,7 +42,11 @@ docker run --rm --platform=linux/amd64 \
[[ -x ./autogen.sh ]] && ./autogen.sh
[[ -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} \
--with-qt-bindir=\$PWD/depends/${HOST_TRIPLE}/bin \
--enable-glibc-back-compat \
--enable-reduce-exports \
LDFLAGS='-static-libstdc++'

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
export LC_ALL=C
set -euo pipefail
# Directory where this script is located

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env bash
export LC_ALL=C
set -euo pipefail
# Default to not building the installer
@@ -38,6 +39,14 @@ docker run --rm --platform=linux/amd64 \
set -euo pipefail
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})...'
cd depends && make HOST=${HOST_TRIPLE} -j\$(nproc) && cd ..

View File

@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
export LC_ALL=C
###############################################################################
# Quick Build Script for Palladium Core

View File

@@ -1,4 +1,5 @@
#!/bin/bash
#!/usr/bin/env bash
export LC_ALL=C
set -e
echo "========================================================"