Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28161

Docker plugin fails to parse project file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 8.0.1
    • None
    • Ubuntu 22.04
    • c7884a2b1 (master)

    Description

      Qt Creator appears to run qmake outside of the docker container for configuration and pro file scanning, despite the docker container showing a qmake process running.

      As an example, I have a very simple docker container used to build auto test binaries:

      FROM ubuntu:20.04
      ARG DEBIAN_FRONTEND=noninteractive
      # get dependencies
      RUN apt-get update; \
          apt-get install --yes --no-install-recommends \
          build-essential \
          qt5-default \
          libgstreamer1.0-dev \
          libgstreamer-plugins-base1.0-dev \
          libudev-dev \
          qtdeclarative5-dev \
          libqt5serialport5-dev \
          qtpositioning5-dev
      

       

      Using this docker container as a device, and creating a kit for it works fine when I build or run the project. However, right-clicking on the project in QtCreator and selecting "run qmake" fails to gstreamer-1.0 dev packages, which should be made available via libgstreamer1.0-dev. I have similar issues if I try to use a custom qmake spec which is added to the docker container - building the application works fine, but parsing the project file fails. This is a significant issue in this case because the project can't be loaded (no libraries, sources etc listed) when the qmake spec is missing.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-28161
        # Subject Branch Project Status CR V

        Activity

          People

            hjk hjk
            mduke Matt Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes