簡體   English   中英

Eclipse Arduino IDE找不到AVR-G ++和AVR-GCC

[英]Eclipse Arduino IDE cant't find avr-g++ and avr-gcc

我正在嘗試將Arduino IDE替換為Arduino Eclipse插件。 下載所需的所有內容並嘗試編譯最簡單的“ Hello World”-程序后,我在eclipse中收到以下錯誤:

錯誤

致電時:

which avr-gcc

在終端它返回正確的目錄,在這里沒有問題。

  • Arduino eclipse插件V2(Eclipse Marketplace)
  • Arduino IDE 1.6(主頁上的最新信息)
  • Ubuntu 14.10
  • 蝕月神

謝謝

從Eclipse>項目屬性> Environment>添加變量A.RUNTIME.TOOLS.AVR-GCC.PATH

您可以使用XDAQ,它通過Arduino IDE + Eclipse Luna C ++提供了功能強大的工具的科學生態系統。 在此處查看更多信息: XDAQ

您必須在Eclipse(項目)上進行一些配置。 在Eclipse中也有一個fpr AVR插件。 以下是教程的一些鏈接,可以幫助您解決問題: http : //www.timteatro.net/2012/03/22/beginning-atmel-avr-development-in-linux-using-avr-eclipse-avr -gcc-and-avrdude /

http://www.instructables.com/id/Getting-started-with-ubuntu-and-the-AVR-dragon/?lang=de

如果您懂德語:

http://www.mikrocontroller.net/articles/AVR_Eclipse

我剛剛在所有新安裝的筆記本電腦上解決了相同的問題...

  • Ubuntu 15.04“ vivid”
  • 的Arduino 1.6.5
  • 用於C / C ++開發人員4.5.0的Eclipse IDE
  • AVR Eclipse插件2.4.1
  • Arduino Eclipse擴展2.2.0.1

我使用此視頻指南進行安裝

我沒有嘗試過@misteralex解決方案,但是如果它能解決問題,那它比我的還干凈:-/

就我而言,所有avr二進制文件都存儲在/ usr / bin中,但是Eclipse工具鏈希望從/ bin中使用。 我想創建一些鏈接來進行替換而不移動二進制文件。 但是有28個二進制文件,我有點懶,所以我使用命令行來創建它們:

cd /bin
for ff in `ls /usr/bin/avr-*` ; do ln -s $ff $(echo $ff | awk -F "/" '{ print $4 }') ; done

現在,驗證來自Eclipse的命令是否給出“ Finished building target”消息!

下載arduino 1.6.0並指向Eclipse arduino ide路徑。 1.6.1至1.6.3不適用於該插件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM