I got a question of using Eclipse to develop for embedded Linux on a Windows host
Here are now I have and where I am.
1. a Windows host that have the latest Eclipse + CDT (c/c++ development tools) installed
2. a Ubuntu host (ssh + samba installed) that contains sources and toolschain to build the project. (the windows and ubuntu hosts are sitting within one network segment (In LAN).)
3. I can use the following commands to build this project under Ubuntu.
# chroot dummyroot
# cd /home/project/Build
# sh Build date +%Y%m%d%H%M%S
4. I am now trying to create an eclipse C++ project to achieve the goad of the step 3, but I have been stuck here for a while. any ideas of how it can be done?
我有一个使用Eclipse在Windows主机上为嵌入式Linux开发的问题现在我有了,我在哪里。 1.安装了最新Eclipse + CDT(c / c ++开发工具)的Windows主机2.安装了Ubuntu主机(安装了ssh + samba),包含构建项目的源和工具链。 (windows和ubuntu主机位于一个网段(局域网内)。)3。我可以使用以下命令在Ubuntu下构建这个项目。 #chroot dummyroot #cd / home / project / Build #sh构建日期+%Y%m%d%H%M%S 4.我现在正在尝试创建一个eclipse C ++项目来实现第3步的goad,但是我被困在这里一段时间了。有关如何做到的任何想法?
3 个解决方案
#1
1
Speaking from experience, attempting to develop embedded Linux on a Windows host is a world of pain and frustration. Emphasis on attempting -- I'd like to meet someone who completed a serious project in this way, or who can explain how working in Windows made job easier.
根据经验,尝试在Windows主机上开发嵌入式Linux是一个痛苦和挫折的世界。强调尝试 - 我想见到以这种方式完成一个严肃项目的人,或者可以解释如何在Windows中工作使工作更轻松。
Windows can be a great development environment for many tasks, but it's a lousy, lousy environment for embedded Linux. There are tools out there to help you do this, but everything is much harder compared to working on a Linux host. The toolchains are older and buggier. You will constantly fight with your crosscompilers and GNU autotools trying to get packages to compile. (Wait till you try to compile one of the many packages that needs to build an intermediate binary and then executes that as part of its build process.)
对于许多任务来说,Windows可以是一个很好的开发环境,但对于嵌入式Linux来说,它是一个糟糕,糟糕的环境。有一些工具可以帮助你做到这一点,但与在Linux主机上工作相比,一切都要困难得多。工具链更老,更笨拙。您将不断与您的交叉编译器和GNU自动工具争用,以尝试编译包。 (等到你尝试编译需要构建中间二进制文件的许多软件包之一,然后在构建过程中执行它。)
You probably have reasons for keeping your desktop in Windows -- just run a Linux virtual machine.
您可能有理由将桌面保留在Windows中 - 只需运行Linux虚拟机即可。
#2
0
Eclipse CDT can execute arbitrary commands, such as
Eclipse CDT可以执行任意命令,例如
ssh username@target build_script
ssh username @ target build_script
using the external builder. If you are using gcc on the target eclipse cdt can parse the output of the gcc and make from the ssh session and send you to the correct source path (if that path matches the path generated by gcc). Although this might not work windows->linux
使用外部构建器。如果你在目标eclipse上使用gcc cdt可以解析gcc的输出并从ssh会话中生成并发送到正确的源路径(如果该路径与gcc生成的路径匹配)。虽然这可能不适用于windows-> linux
#3
-1
With Embedded Linux, I've attempted to run Virtual Machines using Ubunutu, Xubutunu, Debian. I have been developing for a long time. I design hardware and develop low level firmware, to test said hardware. I cannot get anything to work on instructions given, as in an unified IDE and development system such as I am used to (i.e. Codewarrior, MPLAB, Code Composer) If Embedded Linux is so useful and easy how is it I cannot get a single one of instructions from Yocto, Freescale, Timesys, anywhere to work? Every-time there is a directory change, or a directory that no longer exists, or even a file that is not there. Surely there something that I can use..
在嵌入式Linux中,我尝试使用Ubunutu,Xubutunu,Debian运行虚拟机。我已经开发了很长时间。我设计硬件并开发低级固件,以测试所述硬件。我无法处理给出的指令,如在我所习惯的统一IDE和开发系统中(即Codewarrior,MPLAB,Code Composer)如果嵌入式Linux如此有用且简单,我怎么也找不到一个Yocto,Freescale,Timesys的指令在哪里工作?每次都有目录更改,或者不再存在的目录,甚至是不存在的文件。当然有一些我可以使用..
#1
1
Speaking from experience, attempting to develop embedded Linux on a Windows host is a world of pain and frustration. Emphasis on attempting -- I'd like to meet someone who completed a serious project in this way, or who can explain how working in Windows made job easier.
根据经验,尝试在Windows主机上开发嵌入式Linux是一个痛苦和挫折的世界。强调尝试 - 我想见到以这种方式完成一个严肃项目的人,或者可以解释如何在Windows中工作使工作更轻松。
Windows can be a great development environment for many tasks, but it's a lousy, lousy environment for embedded Linux. There are tools out there to help you do this, but everything is much harder compared to working on a Linux host. The toolchains are older and buggier. You will constantly fight with your crosscompilers and GNU autotools trying to get packages to compile. (Wait till you try to compile one of the many packages that needs to build an intermediate binary and then executes that as part of its build process.)
对于许多任务来说,Windows可以是一个很好的开发环境,但对于嵌入式Linux来说,它是一个糟糕,糟糕的环境。有一些工具可以帮助你做到这一点,但与在Linux主机上工作相比,一切都要困难得多。工具链更老,更笨拙。您将不断与您的交叉编译器和GNU自动工具争用,以尝试编译包。 (等到你尝试编译需要构建中间二进制文件的许多软件包之一,然后在构建过程中执行它。)
You probably have reasons for keeping your desktop in Windows -- just run a Linux virtual machine.
您可能有理由将桌面保留在Windows中 - 只需运行Linux虚拟机即可。
#2
0
Eclipse CDT can execute arbitrary commands, such as
Eclipse CDT可以执行任意命令,例如
ssh username@target build_script
ssh username @ target build_script
using the external builder. If you are using gcc on the target eclipse cdt can parse the output of the gcc and make from the ssh session and send you to the correct source path (if that path matches the path generated by gcc). Although this might not work windows->linux
使用外部构建器。如果你在目标eclipse上使用gcc cdt可以解析gcc的输出并从ssh会话中生成并发送到正确的源路径(如果该路径与gcc生成的路径匹配)。虽然这可能不适用于windows-> linux
#3
-1
With Embedded Linux, I've attempted to run Virtual Machines using Ubunutu, Xubutunu, Debian. I have been developing for a long time. I design hardware and develop low level firmware, to test said hardware. I cannot get anything to work on instructions given, as in an unified IDE and development system such as I am used to (i.e. Codewarrior, MPLAB, Code Composer) If Embedded Linux is so useful and easy how is it I cannot get a single one of instructions from Yocto, Freescale, Timesys, anywhere to work? Every-time there is a directory change, or a directory that no longer exists, or even a file that is not there. Surely there something that I can use..
在嵌入式Linux中,我尝试使用Ubunutu,Xubutunu,Debian运行虚拟机。我已经开发了很长时间。我设计硬件并开发低级固件,以测试所述硬件。我无法处理给出的指令,如在我所习惯的统一IDE和开发系统中(即Codewarrior,MPLAB,Code Composer)如果嵌入式Linux如此有用且简单,我怎么也找不到一个Yocto,Freescale,Timesys的指令在哪里工作?每次都有目录更改,或者不再存在的目录,甚至是不存在的文件。当然有一些我可以使用..