Skip to content

Can't compile Webview in docker. #1802

@lexalexalexa

Description

@lexalexalexa

Overview of the Issue

I am trying to compile ScreenlyWebview project, but met error in qmake actions (see below).

Reproduction Steps

  1. Install docker with follow instruction.
  2. Run:
$ cd webview
$ docker buildx build \
    --load \
    --build-arg GIT_HASH=$(git rev-parse --short HEAD) \
    -t qt-builder .
  1. Run:
$ docker run --rm -t \
    -v ~/tmp/qt-src:/src:Z \
    -v ~/tmp/qt-build:/build:Z \
    -v $(pwd):/webview:ro \
    qt-builder

Environment

  • Raspberry Pi Hardware Version: 4/8Gb
  • Raspberry Pi Network Setup: Ethernet
  • Anthias Version: latest

Comments

I met 2 problems:

  1. When I run command to build docker container (docker buildx build...) I met 3 missing packets in Docker file install list: g++-multilib, gcc-multilib, lib32z1-dev. As i right understood these packets are not availible for arm at all - i delete following strings from Dockerfile
  2. After then I run build project command (docker run --rm -t...) and met error in the end of qt building:
............Done.
Info: creating super cache file /src/pi4/.qmake.super
Info: creating cache file /src/pi4/.qmake.cache
Project ERROR: Cannot run target compiler '/src/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++'. Output:
===================
===================
Maybe you forgot to setup the environment?

Question

What is my mistake and how can I compile the QT project?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions