[英]Raspberry Pi crashes when building OpenFrameWorks project in Eclipse CDT
I'm working on a Raspberry Pi 3 with OS Raspbian Jessie. 我正在使用OS Raspbian Jessie开发Raspberry Pi 3。 I'm using Eclipse CDT (for C/C++) and am trying to learn about OpenFrameWorks: http://openframeworks.cc/
我正在使用Eclipse CDT(用于C / C ++),并试图了解OpenFrameWorks: http : //openframeworks.cc/
I installed everything according to the guides and imported everything to Eclipse. 我按照指南安装了所有内容,并将所有内容导入了Eclipse。 I thought it seemed to work out, but when I try to run some test-code I get the error "Unable to launch, binary not found."
我以为它似乎可以解决问题,但是当我尝试运行一些测试代码时,出现错误“无法启动,找不到二进制文件”。 I look it up and find a potential solution, that I have to build the actual project first.
我查找并找到了一个可能的解决方案,我必须首先构建实际的项目。
This is my problem, when I try to build the project Eclipse gets to about 20% and then the entire Raspberry freezes, forcing me to force a restart. 这是我的问题,当我尝试构建项目时,Eclipse占了大约20%,然后整个Raspberry死机,迫使我强制重新启动。 How can I continue from here on out?
我如何才能从这里开始? I don't know if I still should try to build the project through Eclipse or if there is another way to actually run some test code for OpenFrameWorks.
我不知道我是否仍然应该尝试通过Eclipse构建项目,或者是否存在另一种为OpenFrameWorks运行一些测试代码的方法。
I don't know if this is the best place to ask about this, but I'm thankful for all answers. 我不知道这是否是问这个问题的最佳地点,但是我很感谢所有答案。
Eclipse is super slow on Raspberry Pi. 在Raspberry Pi上,Eclipse超级慢。 I recommend using the provided setup scripts to install dependencies.
我建议使用提供的安装脚本来安装依赖项。 After you compile OF , use make files to compile projects.
编译OF之后 ,使用make文件来编译项目。
In terms of editing code, I recommend using a light weight text editor (geany for example). 在编辑代码方面,我建议使用轻量级文本编辑器(例如,geany)。 I've tried CodeBlocks and Qt Creator, which are faster/less resource intensive than eclipse, but still pretty heavy for a system with limited resources.
我试过了CodeBlocks和Qt Creator,它们比Eclipse更快/更少资源占用,但是对于资源有限的系统来说仍然很繁重。
Another option is to combine your computer the RPi: 另一个选择是将计算机的RPi组合在一起:
make -j4
(to use all 4 cores) in the RPi project folder. make -j4
(使用所有4个内核)。 The pro is you the quick compile/feedback times you're used to on your computer. 专业人士是您在计算机上习惯的快速编译/反馈时间。 The con is this method won't work for RPi specific code (eg accessing GPIO, PiCamera, etc.)
缺点是此方法不适用于RPi特定代码(例如,访问GPIO,PiCamera等)
Another option is to setup cross compilation , but getting everything ready is a bit laborious. 另一个选择是设置交叉编译 ,但是准备好一切都比较麻烦。 (Although, once it's done, it saves time on the long run).
(尽管,一旦完成,从长远来看,它可以节省时间)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.