Giter Site home page Giter Site logo

docker-qt's Introduction

docker-qt

Compile a C++/Qt project within Docker.

Qt version used is 5.9.4.

Usage

Create a build.sh file :

cd /src
qmake -r
make
make install 

Then a docker-compose.yml file :

version: '2.1'
services:

  builder:
    image: hadim/docker-qt
    volumes:
      - ./src:/src
      - ./local/:/local
      - ./build.sh:/build.sh

Launch the automatic build script /build.sh with docker-compose up or launch a bash session with docker-compose run builder bash.

Author

  • Hadrien Mary

docker-qt's People

Contributors

gmacario avatar hadim avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-qt's Issues

Raspberry PI 2+ (32bits)

sudo docker-compose run builder bash

standard_init_linux.go:190: exec user process caused "exec format error"

¿QT 5.9.4 for Linux only 64bits?

Command "docker build ." fails

Build log:

gpmacario@nemo:~/github/gmacario/docker-qt⟫ docker build .
Sending build context to Docker daemon  148.5kB
Step 1/21 : FROM alpine:edge
 ---> 5c4fa780951b
Step 2/21 : MAINTAINER Hadrien Mary <[email protected]>
 ---> Using cache
 ---> c3af5b571aaf
Step 3/21 : RUN apk update &&     apk upgrade &&     apk --update add         gcc g++ build-base cmake bash libstdc++ libxcb-dev icu-dev         openssl-dev linux-headers curl git libproc libxrender-dev libexecinfo-dev         libpng libpng-dev libjpeg-turbo libjpeg-turbo-dev icu-libs icu         mesa-gl mesa-dev freetype-dev sqlite-dev gstreamer1 gstreamer0.10-dev         libogg-dev libvorbis-dev libbz2 gperf bison ruby flex &&     rm -rf /var/cache/apk/*
 ---> Running in cc198c29268b
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
v3.7.0-3174-gdc61508172 [http://dl-cdn.alpinelinux.org/alpine/edge/main]
v3.7.0-3167-g0f2ff8e737 [http://dl-cdn.alpinelinux.org/alpine/edge/community]
OK: 9354 distinct packages available
Upgrading critical system libraries and apk-tools:
(1/1) Upgrading apk-tools (2.9.1-r0 -> 2.9.1-r1)
Executing busybox-1.27.2-r7.trigger
Continuing the upgrade transaction with new apk-tools:
(1/5) Upgrading musl (1.1.18-r5 -> 1.1.19-r1)
(2/5) Upgrading busybox (1.27.2-r7 -> 1.28.1-r0)
Executing busybox-1.28.1-r0.post-upgrade
(3/5) Upgrading libressl2.6-libcrypto (2.6.3-r0 -> 2.6.4-r0)
(4/5) Upgrading libressl2.6-libssl (2.6.3-r0 -> 2.6.4-r0)
(5/5) Upgrading musl-utils (1.1.18-r5 -> 1.1.19-r1)
Executing busybox-1.28.1-r0.trigger
OK: 4 MiB in 11 packages
ERROR: unsatisfiable constraints:
  gstreamer1 (missing):
    required by: world[gstreamer1]
The command '/bin/sh -c apk update &&     apk upgrade &&     apk --update add         gcc g++ build-base cmake bash libstdc++ libxcb-dev icu-dev         openssl-dev linux-headers curl git libproc libxrender-dev libexecinfo-dev         libpng libpng-dev libjpeg-turbo libjpeg-turbo-dev icu-libs icu         mesa-gl mesa-dev freetype-dev sqlite-dev gstreamer1 gstreamer0.10-dev         libogg-dev libvorbis-dev libbz2 gperf bison ruby flex &&     rm -rf /var/cache/apk/*' returned a non-zero code: 1
1 gpmacario@nemo:~/github/gmacario/docker-qt⟫

Issue reproduced on

  • Ubuntu 16.04.4 LTS (Xenial Xerus) 64-bit
  • docker 17.12.1-ce
  • docker-qt master 37cf223

Unknown module(s) in QT: multimedia

I compile a project including the following library:

QT += multimedia

Unfortunately I have the following error when trying to compile it:

Unknown module(s) in QT: multimedia

Any idea how to add it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.