Changing the CDT Build Console #545
Replies: 3 comments 1 reply
-
The reason this is failing is that the Build command needs to be a single command, in this case That said, you are going to run into additional issues (most likely) because other parts of CDT will expect to find includes on the host (Windows) machine too. A better bet to achieve what you are after is to use Docker tooling to build in the docker container so all your build tools are in a docker image and you can share that image among your team. That way when you build it will run it automatically in the docker container like this: and the tooling will take care of copying files back and forth to the docker container as needed, you can see this by ctrl-click on the To enable this, once you have docker setup, you can tell the project to build in the container in the build settings: HTH! |
Beta Was this translation helpful? Give feedback.
-
I'm not very familiar with Docker. Is that a Docker image run from inside Eclipse somehow, or do I need to run a Docker instance completely separately to Eclipse? I don't have anything in the "Connection" dropdown so I guess I need to install/run something, just not sure exactly what. |
Beta Was this translation helpful? Give feedback.
-
OK, so I have a Docker container running and it appears in the Eclipse Docker Explorer: And I have configured it in the project properties: But when I try and build, I get this error in the CDT Build Console:
I am stuck for what to do next, searching for that error does not return anything very useful. |
Beta Was this translation helpful? Give feedback.
-
We have an embedded C makefile project in Eclipse, which builds just fine, but now we've reached the stage of building it with CI jobs on Linux machines and docker instances, and we have added a lot of things that don't exist under Windows (e.g.
cat
,sed
etc.)Rather than modifying the makefile to workround this on Windows, I was hoping to make Eclipse use an WSL console instead of the default one. I have WSL installed on my laptop already.
Is there a way to tell Eclipse to use a different console for the CDT Build Console?
I have tried changing the default build command from
{cross_make}
towsl make
But this does not work because
wsl make
is interpreted as a single token:Beta Was this translation helpful? Give feedback.
All reactions