Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt Creator does not parse compile output on remote build



  • I am using Docker to cross compile a project in QTCreator. The project is actually a CMake project which needs to build in different environment, for which the Docker step is. To trigger the build I use a custom build step which invokes the build process within the Docker container like this:

    docker exec -t centosbuild /bin/bash -c 'cd /path/to/my/build/debug; make -j4'

    The Docker container and the docker host share the same directory so QTCreator does see the source files which CMake uses. This setup works well, but unfortunately the Issues tab remains empty when there are compile errors. I have searched extensively on the topic and my guess is that the GCC error parser is not correctly triggered. Could you provide me with some suggestions.

    I have created the project in QTCreator by using Import existing CMake project.

    Thanks.



  • Any news about this ?
    I'm interested in the same workflow...


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    Since it's a pretty particular setup you should rather bring this question to the Qt Creator mailing list. You'll find there Qt Creator's developers/maintainers. This forum is more user oriented.



  • Sorry for the necropost, but I found the solution to this problem!

    QtCreator parses errors in stderr, but ssh is outputting to stdout.
    You need to redirect ssh output by appending "1>&2" (no quotes) to your command and QtCreator will now parse your errors.

    Hope this helps whoever else is interested


Log in to reply