Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes unicode error in QJsonDocument. (EPEL's Qt build is broken) https://bugzilla.redhat.com/show_bug.cgi?id=1376832
- Loading branch information
Showing
7 changed files
with
63 additions
and
22 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
set -x | ||
. /opt/rh/devtoolset-3/enable | ||
|
||
|
||
# Build Qt | ||
cd /opt | ||
tar xfJ qt.tar.xz | ||
cd qt-everywhere-opensource-src-5.7.1 | ||
yes | ./configure -opensource -prefix /usr -libdir /usr/lib64 -archdatadir /usr/lib64/qt5 -datadir /usr/share/qt5 -headerdir /usr/include/qt5 -xkb-config-root /usr/share/X11/xkb -openssl-linked -skip qt3d -skip qtcanvas3d -skip qtcharts -skip qtwebengine -skip qtwebview -skip gamepad -skip qtscxml -skip qtdeclarative -no-compile-examples | ||
|
||
gmake | ||
gmake install | ||
|
||
cd .. | ||
rm -rf qt-everywhere-opensource-src-5.7.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
FROM centos:6 | ||
|
||
RUN yum -y install epel-release wget | ||
RUN wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo | ||
RUN yum -y install devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils zlib-devel qt5-qtbase-devel qt5-qtsvg-devel qt5-qtmultimedia-devel qt5-linguist cmake3 make giflib-devel wget unzip git xz binutils fuse glibc-devel glib2-devel fuse-devel zlib-devel libpng12 libmicrohttpd-devel | ||
RUN yum -y install tar bzip2 git libtool which fuse fuse-devel libpng-devel automake libtool mesa-libEGL cppunit-devel cmake3 glibc-headers libstdc++-devel freetype-devel fontconfig-devel libxml2-devel libstdc++-devel libXrender-devel patch xcb-util-keysyms-devel libXi-devel mesa-libGL-devel libxcb libxcb-devel xcb-util xcb-util-devel openssl-devel xz unzip glibc-devel glib2-devel libmicrohttpd-devel pulseaudio-libs-devel | ||
RUN yum -y install libxcb libxcb-devel libXrender libXrender-devel xcb-util-wm xcb-util-wm-devel xcb-util xcb-util-devel xcb-util-image xcb-util-image-devel xcb-util-keysyms xcb-util-keysyms-devel | ||
|
||
ADD Build-deps / | ||
ADD appimage.patch / | ||
# Newer compiler than what comes with CentOS 6 | ||
RUN yum -y install centos-release-scl-rh | ||
RUN yum -y install devtoolset-3-gcc devtoolset-3-gcc-c++ | ||
|
||
RUN bash -ex Build-deps | ||
RUN wget http://download.qt.io/archive/qt/5.7/5.7.1/single/qt-everywhere-opensource-src-5.7.1.tar.xz -O /opt/qt.tar.xz | ||
|
||
ADD Build-qt / | ||
RUN bash -ex Build-qt | ||
|
||
ADD Build-deps / | ||
RUN bash -ex Build-deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,28 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
if [ $# -ne 1 ]; then | ||
echo "Usage: ./build.sh <shell|client|server>" | ||
exit 1 | ||
fi | ||
|
||
mkdir -p out | ||
|
||
cd ../.. | ||
IMAGE=drawpile2 | ||
SRCVOL="$(pwd):/Drawpile:ro" | ||
OUTVOL="$(pwd)/pkg/appimage/out:/out" | ||
|
||
docker run --rm -ti -v "$SRCVOL" -v "$OUTVOL" $IMAGE bash /Drawpile/pkg/appimage/Build-client | ||
docker run --rm -ti -v "$SRCVOL" -v "$OUTVOL" $IMAGE bash /Drawpile/pkg/appimage/Build-server | ||
if [ "$1" == "shell" ]; then | ||
CMD="" | ||
elif [ "$1" == "client" ]; then | ||
CMD="/Drawpile/pkg/appimage/Build-client" | ||
elif [ "$1" == "server" ]; then | ||
CMD="/Drawpile/pkg/appimage/Build-server" | ||
else | ||
echo "Unknown build target: $1" | ||
exit 1 | ||
fi | ||
|
||
docker run --rm -ti -v "$SRCVOL" -v "$OUTVOL" $IMAGE bash $CMD | ||
|