From d67505768eaaf17dc7415bad046a5452f57dc21a Mon Sep 17 00:00:00 2001 From: Pavel Lobashov Date: Wed, 21 Aug 2019 16:30:45 +0300 Subject: [PATCH 1/7] Start working on instruction --- Dockerfile | 16 ++++++++++++++++ README.md | 10 +++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6134cba --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:14.04 + +RUN apt-get -y update && apt-get -y install wget +WORKDIR /tmp + +RUN wget https://download.qt.io/archive/qt/5.9/5.9.8/single/qt-everywhere-opensource-src-5.9.8.tar.xz +RUN apt-get -y update && apt-get -y install xz-utils +RUN tar -xf qt-everywhere-opensource-src-5.9.8.tar.xz + +WORKDIR /tmp/qt-everywhere-opensource-src-5.9.8 +RUN apt-get -y install make g++ +RUN apt-get -y install libx11-xcb-dev \ + libglu1-mesa-dev \ + libgstreamer-plugins-base1.0-dev +RUN ./configure -opensource -confirm-license -release -shared -accessibility -prefix /usr/local/Qt-5.9.8/gcc_64 -qt-zlib -qt-libpng -qt-libjpeg -qt-xcb -qt-pcre -no-sql-sqlite -no-qml-debug -gstreamer 1.0 -nomake examples -nomake tests -skip qtenginio -skip qtlocation -skip qtserialport -skip qtsensors -skip qtxmlpatterns -skip qt3d -skip qtwebview -skip qtwebengine +RUN make \ No newline at end of file diff --git a/README.md b/README.md index 97d3a9d..c40c910 100644 --- a/README.md +++ b/README.md @@ -1 +1,9 @@ -# build_tools \ No newline at end of file +# build_tools + +## Linux + +### Please note, that all instruction tested on Ubuntu 14.04 + +1. Install QT. Tested on https://download.qt.io/archive/qt/5.9/5.9.8/single/qt-everywhere-opensource-src-5.9.8.tar.xz +QT installer requires GUI. +If you want to build on server without GUI - compile qt from source. From b03b63061a99a35a0c6b7bed6ae134d86e639d8f Mon Sep 17 00:00:00 2001 From: Pavel Lobashov Date: Wed, 21 Aug 2019 17:26:41 +0300 Subject: [PATCH 2/7] Remove unneded --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6134cba..7300315 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,7 @@ RUN tar -xf qt-everywhere-opensource-src-5.9.8.tar.xz WORKDIR /tmp/qt-everywhere-opensource-src-5.9.8 RUN apt-get -y install make g++ -RUN apt-get -y install libx11-xcb-dev \ - libglu1-mesa-dev \ +RUN apt-get -y install libglu1-mesa-dev \ libgstreamer-plugins-base1.0-dev RUN ./configure -opensource -confirm-license -release -shared -accessibility -prefix /usr/local/Qt-5.9.8/gcc_64 -qt-zlib -qt-libpng -qt-libjpeg -qt-xcb -qt-pcre -no-sql-sqlite -no-qml-debug -gstreamer 1.0 -nomake examples -nomake tests -skip qtenginio -skip qtlocation -skip qtserialport -skip qtsensors -skip qtxmlpatterns -skip qt3d -skip qtwebview -skip qtwebengine RUN make \ No newline at end of file From 2e8caf25ef701863c77107c9292043c8cc92cddf Mon Sep 17 00:00:00 2001 From: Pavel Lobashov Date: Thu, 22 Aug 2019 17:25:21 +0300 Subject: [PATCH 3/7] More fixes --- Dockerfile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7300315..1cf93c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,17 @@ RUN apt-get -y update && apt-get -y install xz-utils RUN tar -xf qt-everywhere-opensource-src-5.9.8.tar.xz WORKDIR /tmp/qt-everywhere-opensource-src-5.9.8 -RUN apt-get -y install make g++ -RUN apt-get -y install libglu1-mesa-dev \ - libgstreamer-plugins-base1.0-dev +RUN apt-get -y install g++ \ + libglu1-mesa-dev \ + libgstreamer-plugins-base1.0-dev \ + make RUN ./configure -opensource -confirm-license -release -shared -accessibility -prefix /usr/local/Qt-5.9.8/gcc_64 -qt-zlib -qt-libpng -qt-libjpeg -qt-xcb -qt-pcre -no-sql-sqlite -no-qml-debug -gstreamer 1.0 -nomake examples -nomake tests -skip qtenginio -skip qtlocation -skip qtserialport -skip qtsensors -skip qtxmlpatterns -skip qt3d -skip qtwebview -skip qtwebengine -RUN make \ No newline at end of file +RUN make +RUN make install + +ADD . /build_tools +WORKDIR /build_tools +RUN /build_tools/scripts/dependencies +RUN ./configure --module "desktop builder" --platform native --update 1 --branch develop --clean 0 --qt-dir "/usr/local/Qt-5.9.8" +RUN apt-get -y install libgconf2-4 libxss1 +RUN ./make \ No newline at end of file From 131423cbfb80ff82d273fbccc646cd5a35a402b4 Mon Sep 17 00:00:00 2001 From: Pavel Lobashov Date: Tue, 10 Sep 2019 17:22:58 +0300 Subject: [PATCH 4/7] Add newline --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1cf93c5..92656e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,4 +21,4 @@ WORKDIR /build_tools RUN /build_tools/scripts/dependencies RUN ./configure --module "desktop builder" --platform native --update 1 --branch develop --clean 0 --qt-dir "/usr/local/Qt-5.9.8" RUN apt-get -y install libgconf2-4 libxss1 -RUN ./make \ No newline at end of file +RUN ./make From 4c94b4db3d977451fc98c15b897f0f0fd5d2d002 Mon Sep 17 00:00:00 2001 From: Pavel Lobashov Date: Wed, 11 Sep 2019 11:44:09 +0300 Subject: [PATCH 5/7] Remove addition dependencies since #10 --- Dockerfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 92656e8..696cc6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,5 +20,4 @@ ADD . /build_tools WORKDIR /build_tools RUN /build_tools/scripts/dependencies RUN ./configure --module "desktop builder" --platform native --update 1 --branch develop --clean 0 --qt-dir "/usr/local/Qt-5.9.8" -RUN apt-get -y install libgconf2-4 libxss1 RUN ./make From f4f0cca856a3a5e36e91a245f48cb1e2d14413bb Mon Sep 17 00:00:00 2001 From: Pavel Lobashov Date: Wed, 11 Sep 2019 11:47:16 +0300 Subject: [PATCH 6/7] Add help --- Dockerfile | 4 ++-- README.md | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 696cc6f..8f2c03e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,5 +19,5 @@ RUN make install ADD . /build_tools WORKDIR /build_tools RUN /build_tools/scripts/dependencies -RUN ./configure --module "desktop builder" --platform native --update 1 --branch develop --clean 0 --qt-dir "/usr/local/Qt-5.9.8" -RUN ./make +RUN bash ./configure --module "desktop builder" --platform native --update 1 --branch develop --clean 0 --qt-dir "/usr/local/Qt-5.9.8" +RUN bash ./make diff --git a/README.md b/README.md index c40c910..8a72599 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ ### Please note, that all instruction tested on Ubuntu 14.04 -1. Install QT. Tested on https://download.qt.io/archive/qt/5.9/5.9.8/single/qt-everywhere-opensource-src-5.9.8.tar.xz +1. Install QT. Tested on [qt-5.9.8](https://download.qt.io/archive/qt/5.9/5.9.8/single/qt-everywhere-opensource-src-5.9.8.tar.xz) QT installer requires GUI. If you want to build on server without GUI - compile qt from source. + +2. Install dependencies via `bash ./scripts/dependencies` +3. Configure build via `bash ./configure` with additional params, described in help +4. Run build via `bash ./make` From 828d95bae55b6525b371869ee0a578881b69ebaf Mon Sep 17 00:00:00 2001 From: Pavel Lobashov Date: Wed, 11 Sep 2019 18:16:22 +0300 Subject: [PATCH 7/7] Add info about build result --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 8a72599..e8a9d7c 100644 --- a/README.md +++ b/README.md @@ -11,3 +11,5 @@ If you want to build on server without GUI - compile qt from source. 2. Install dependencies via `bash ./scripts/dependencies` 3. Configure build via `bash ./configure` with additional params, described in help 4. Run build via `bash ./make` + +Build will be available at `./out` dir