contents
  1. Arduino 16 for Linux
    1. IDEの文字化け対応

Arduino環境調整

  • 2009年06月13日(土)

何も考えずにportupgrade -aを重ねている都合で、avrdudeが更新されて上書きされていたので、arduino版avrdudeに戻す。

fuji [ work/arduino/avrdude-5.4-arduino-src ] % sudo mv /usr/local/bin/avrdude /usr/local/bin/avrdude.5.6
Password:
fuji [ work/arduino/avrdude-5.4-arduino-src ] % sudo cp avrdude /usr/local/bin 
fuji [ work/arduino/avrdude-5.4-arduino-src ] % avrdude -v

avrdude: Version 5.4-arduino, compiled on Jun 13 2009 at 14:41:12
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "/usr/local/etc/avrdude.conf"
error at /usr/local/etc/avrdude.conf:316 unrecognized character: "a"
fuji [ work/arduino/avrdude-5.4-arduino-src ] % sudo mv /usr/local/etc/avrdude.conf /usr/local/etc/avrdude.conf.5.6
fuji [ work/arduino/avrdude-5.4-arduino-src ] % sudo cp avrdude.conf /usr/local/etc
fuji [ work/arduino/avrdude-5.4-arduino-src ] % avrdude -v

avrdude: Version 5.4-arduino, compiled on Jun 13 2009 at 14:41:12
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

         System wide configuration file is "/usr/local/etc/avrdude.conf"
         User configuration file is "/home/mutoh/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping


avrdude: no programmer has been specified on the command line or the config file
         Specify a programmer using the -c option and try again

これで、(以前どうやって設定したのか覚えていない)Arduino 11 alphaは動いた。

Arduino 16 for Linux

java.io.IOException: Cannot run program "/usr/home/mutoh/work/arduino/arduino-0016/hardware/tools/avr/bin/avr-g++": java.io.IOException: error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
        at java.lang.Runtime.exec(Runtime.java:593)
        at java.lang.Runtime.exec(Runtime.java:466)
        at processing.app.Library.build(Library.java:436)
        at processing.app.LibraryManager.buildAllUnbuilt(LibraryManager.java:228)
        at processing.app.Editor.prepareLibraries(Editor.java:384)
        at processing.app.Base.<init>(Base.java:149)
        at processing.app.Base.main(Base.java:104)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory 
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
        at java.lang.ProcessImpl.start(ProcessImpl.java:65)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
        ... 7 more
Unspecified platform, no launcher available.
fuji [ work/arduino/arduino-0016 ] % cd hardware/tools/  
fuji [ arduino-0016/hardware/tools ] % mkdir avr
fuji [ hardware/tools/avr ] % ln -s /usr/local/bin 

IDEの文字化け対応

FreeBSD 上の Java で日本語が文字化け参考に直す。

fuji [ work/arduino/CLCD_BOOSTER ] % sh -c 'for i in `find /usr/local/*jdk* -name fonts | grep lib`;
do (cd $i && sudo ln -s  /usr/local/lib/X11/fonts/TrueType fallback);
done'
Last modified: 2009-06-13
Post-it: New Post-it (help)

Text color: [_][_][_][_]

Background: [_][_][_][_][_][_]

Draw Line:

x: y: