Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved external docker cmake for qt

    Tools
    2
    2
    78
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      icegood last edited by

      Hi all.
      In my work project, I have many project dependencies that I cannot satisfy on the host by apt-get or similar.

      I was inspired by article https://www.qt.io/blog/docker-builds-from-qtcreator
      and created my external cmake via simple script:
      #!/bin/bash
      echo args=$@
      docker exec -w $(pwd) <my_docker> cmake $@

      My project has no QT, so qt stuff was skipped.
      I was even able to configure my project properly:

      -- Configuring done
      -- Generating done
      
      -- Build files have been written to: ...
      

      However, I can neither see project tree on host nor compile it. In latter case i obtained:

      13:58:33: Configuration is faulty. Check the Issues view for details.
      Error while building/deploying project bluetooth (kit: DockerNoQT)
      When executing step "CMake Build"
      

      how do i configure project properly so i will see on host both project structure with proper highlight and be able to build on host?

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        From a quick look at the guide, you are completely missing the volume parameters to persist the data generated back to your host.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • First post
          Last post