(toppers-users 2886) Re: WindowsXpで開発環境を構築したい

jnbswk @ yahoo.co.jp jnbswk @ yahoo.co.jp
2009年 3月 5日 (木) 21:21:14 JST


毎度おさわがせしてます、きくです。

なにやら少しわかってきました。

> > アドバイスを参考に
> > configure -C h8 -S akih8_3069f
> > make depend
> > make
> > を実施したところ、エラーなくjsp.srecができました。
> > 
> > 早速デバッグボードで動かしたところ、何やら動作しているようです。
> > #動きが正しいのかこれから確認します
> 
> 先ほど、つい先走って書き込んでしまいましたが、
> timer3:キッチンタイマの実装例(回答例)を動かしたところ、
> ハイパーターミナルに
> task1 is running(1)
> task1 is running(2)
> :
> :
> という表示が出ており、キーを押すとタスクが切り替わったり
> するようなのですが、肝心のデバッグボードのLEDは点灯しません。
> 
> 正しくコンパイルされていないのでしょうか??


どうも先ほど諦めた、サンプルプログラムが意に反して動いて
いたようです。
http://www.laksmido.com/dev/AKI-H8_3069F/TOPPERS/2006062502.html



timer3のディレクトリでmake dependを行うと下記のエラーとなります。
$ make depend
rm -f Makefile.depend
h8300-hms-gcc -E -I. -I../../jsp/include  -I../../jsp/config/h8/akih8_3069f -I..
/../jsp/config/h8 -I../../device  -DCPU_CLOCK=20000000 -DJSP_KERNEL -DAKI_MONITO
R -x c-header timer3.cfg > tmpfile1
../../jsp/cfg/cfg -s tmpfile1 -c -obj -cpu h8 -system akih8_3069f
make: ../../jsp/cfg/cfg: Command not found
make: *** [kernel_cfg.c] Error 127

そこで、
/usr/src/configure -C h8 -S akih8_3069f
を実施すると
$ /usr/src/jsp/configure -C h8 -S AKIH8_3069F
configure: Generating Makefile from /usr/src/jsp/sample/Makefile.
configure: Makefile exists.  Save as Makefile.bak.
configure: Generating sample1.c from /usr/src/jsp/sample/sample1.c.
configure: Generating sample1.h from /usr/src/jsp/sample/sample1.h.
configure: Generating sample1.cfg from /usr/src/jsp/sample/sample1.cfg.
となり、意に反して動いているサンプルが組み込まれるようです。

ディレクトリの指定がマズイのではと思い、
../../jsp/cfg(<==/usr/src/jsp/とは別のディレクトリです)
で、make depend後、makeを実施すると、下記エラーが発生します。
$ make
g++ -c -g -O2 -Wall -DFILECONTAINER_BINUTILS -I. ./base/parser.cpp
In file included from ./base/message.h:55,
                 from ./base/parser.h:47,
                 from ./base/parser.cpp:44:
./base/singleton.h: In static member function `static T* Singleton<T>::createIns
tance(std::nothrow_t)':
./base/singleton.h:230: error: `nothrow' undeclared (first use this function)
./base/singleton.h:230: error: (Each undeclared identifier is reported only once
 for each function it appears in.)
./base/singleton.h: In static member function `static T* Singleton<T>::createIns
tance()':
./base/singleton.h:249: error: `nothrow' undeclared (first use this function)
./base/singleton.h: In static member function `static T* Singleton<T>::getInstan
ce(std::nothrow_t)':
./base/singleton.h:268: error: `nothrow' undeclared (first use this function)
make: *** [parser.o] Error 1


「コンフィギュレータ」「depend」などが、きっちり理解できていないのが
最大の原因だと思うのですが、一体どうしたらよいのでしょうか?

--------------------------------------
Power up the Internet with Yahoo! Toolbar.
http://pr.mail.yahoo.co.jp/toolbar/