例題アプリケーション |
|
例題アプリケーションは別の CVS モジュール boinc_samples に入っています。 ( boinc と同じ親ディレクトリの下へ並べて check out して下さい。 そうすると相対パスがうまく機能します)。 例題アプリケーションには以下のものがあります。
グラフィクス部分は、3次元で跳ね回るボールを表示します。 このアプリケーションが走るディレクトリに Helvetica.txf と logo.jpg を置いておけば、 画像に加えてかなり見栄えのよいテキストの表示がなされます。 (最後のテキスト表示については、Tolu Aina さんに感謝)。
boinc_samples ツリーには Windows (VS 2003) 上と Mac (xcode) 上でアプリケーションをビルドするための プロジェクトファイルが含まれています。 さらに、Linux 上でビルドするための Makefile も含まれています。 upper_case の場合、この Makefile はグラフィクス部分を含む .so ファイルを生成します。 この Makefile はいくつかのライブラリ(stdc++、glut など) を静的にリンクします。 これにより、 走る環境でそれらのライブラリが古かったり無かったりしても、 このアプリケーションが走ることができるようにしています。 この部分ではさらに、主プログラムからグラフィクスの .so に対して、 主プログラムのシンボルを export するというテクニックを使っています。 この工夫によって、Einstein@home で経験した多くの問題が取り除かれています。
最終更新時刻 00:53:46, 2006年08月12日(JST)
Copyright © 2008 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.
Copyright © 2008 Komori Hitoshi(je2bwm at jarl.com).
Japanese translation from English web pages on BOINC.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.