简体   繁体   English

用于Docker容器的Eclipse CDT构建和启动应用程序

[英]Eclipse CDT building and launching application for Docker Container

I am using Eclipse Photon CDT on Windows 10, with all Docker integration Prerequisite already installed. 我正在Windows 10上使用Eclipse Photon CDT,并且已安装所有Docker集成必备软件。 I have one ubuntu docker image which is running on same machine. 我有一个在同一台机器上运行的ubuntu docker映像。 I can check running ubuntu container from Docker Explorer view of Eclipse. 我可以从Eclipse的Docker Explorer视图中检查正在运行的ubuntu容器。 Now I am facing problem in building and launching Hello World C++ simple application inside docker. 现在,我在docker内部构建和启动Hello World C ++简单应用程序时遇到问题。 When I change my build settings and uncheck build inside container, then application gets built for local environment but when I select run inside container, No binary is formed.. 当我更改构建设置并取消选中在容器内部构建时,则会为本地环境构建应用程序,但是当我选择在容器内部运行时,不会形成二进制文件。

Please help me figuring this out, I am following all steps as defined in latest eclipsecon. 请帮我弄清楚这一点,我正在执行最新的eclipsecon中定义的所有步骤。 Not sure what's wrong. 不知道怎么了。 Please if any one knows about this problem, try to resolve it. 如果有人知道此问题,请尝试解决它。

Thanks 谢谢

The current (and older) release of Eclipse CDT (2018-09) does not print an error if the command in the docker container fails with command not found , see bug 529656 . 如果Docker容器中的命令失败并找不到命令,则当前(或更早版本)的Eclipse CDT(2018-09)不会显示错误 ,请参见bug 529656 A fix will be included in the December release (2018-12). 12月版本(2018-12)中将包含一个修复程序。

The official ubuntu docker image does not include make and g++ . 官方的ubuntu docker映像不包括makeg++ Therefore, the build will silently fail. 因此,生成将无提示地失败。 Instead of the ubuntu image, you could use the gcc image. 可以使用gcc映像代替ubuntu映像。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM