LinkStationでJavaが動くんだろうか?と暇つぶしにビルドしてみる
まずはJavaコンパイラ。gcjは面倒臭そうだったのでjikesを探す。既にメンテも終了したのかなかなか見つからなかった。jikes-1.22.tar.gzを展開しconfigureしてビルド:
#./configure --prefix=/usr/local/develop
#make
#make install
次にコンパクトでARM対応もされているJava仮想マシンJamVM(jamvm-1.4.5.tar.bz2)を拾ってきてビルド:
#./configure --prefix=/usr/local/develop --with-classpath-install-dir=/usr/local/develop/classpath
#make
#make install
更にclass libraryであるGNU Classpathを拾ってビルド。0.95はjikesでコンパイルできないようなので0.93にする:
#./configure --prefix=/usr/local/develop/classpath --with-jikes --enable-jni \
--disable-alsa --disable-gtk-peer --disable-qt-peer --disable-gconf-peer --disable-plugin
#make
#make install
因みにclasspathのビルドにはBusyboxのgrepでは上手くいかないのでGNUのを使い、zipも必要なのでこれもビルドして/usr/bin/にでも放り込んでおく。
しばらくすると、一式出来上がり。ネイティブでコンパイルした割りには我慢の範囲で戻ってきた。試しに簡単なHelloWorldを作って実行・・・・Segmentation fault・・・orz
ちっとも動きませんでした;;
2007/8/15 水曜日
LS-GLでJava
コメントはまだありません »
No comments yet.
RSS feed for comments on this post. TrackBack URL