[Armadillo:05863] Re: a220でexpectを使用する方法

mizo email@hidden
2010年 9月 28日 (火) 15:05:08 JST


溝渕です。

相田 仁 wrote:
> カーネルコンフィグレーションから
>  Miscellaneous Applications
>   + expect
> を有効にしてコンパイルするとエラーが発生してビルドできません。
> 
> その際、Tcl関連のエラーメッセージが表示されていたため、
> 試しにtinytcl,libtclを有効としましたが同様の結果でした。
> 
> expectを利用する方法をお教えください。

tcl8.4/tcl8.4-devをインストールするとビルドできました。arm用パッケージは次の
URLより取得しました。

[arm用 tcl8.4]
http://snapshot.debian.net/archive/2006/07/16/debian/pool/main/t/tcl8.4/tcl8.4_8.4.12-1_arm.deb
[arm用 tcl8.4-dev]
http://snapshot.debian.net/archive/2006/07/16/debian/pool/main/t/tcl8.4/tcl8.4-dev_8.4.12-1_arm.deb

atdeにインストールするために変換
[atde]$ dpkg-cross -b -aarm tcl8.4-dev_8.4.12-1_arm.deb
[atde]$ dpkg-cross -b -aarm tcl8.4_8.4.12-1_arm.deb

atdeにインストールする
[atde]$ sudo dpkg -i *_all.deb

ビルドできるところまでしか試していないので動作確認はしていませんがお試しください。

以上です。

> 【開発環境】
> ・atde2
> ・atmark-dist-20100603
> ・Armadillo-220(Recover)
> 
> ------ コンパイル結果抜粋(ここから)
> arm-linux-gcc  -O2  -I/usr/arm-linux/include -I/usr/lib/gcc/arm-linux-gnu/4.1.2//include -isystem /usr/lib/gcc/arm-linux-gnu/4.1.2//include-fixed -I/usr/arm-linux/include -I/usr/lib/gcc/arm-linux-gnu/4.1.2//include -isystem /usr/lib/gcc/arm-linux-gnu/4.1.2//include-fixed -Dlinux -D__linux__ -Dunix -DEMBED -idirafter /home/pssdev/atmark-dist-20100603/include -Wall -fno-common  -I/home/pssdev/atmark-dist-20100603 -I. -I/usr/arm-linux/include/tcl8.4/tcl-private/generic -DEXP_VERSION="\"5.43.0\"" -DSCRIPTDIR=\"/usr/lib/expect5.43\" -DEXECSCRIPTDIR=\"/usr/lib/expect5.43\" -DTCL_DEBUGGER -DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -ansi -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_SOURCE -D_REENTRANT  -DDFLT_STTY="\"sane\"" -c -o exp_main_exp.o expect-5.43.0/exp_main_exp.c
> In file included from expect-5.43.0/exp_main_exp.c:17:
> expect-5.43.0/expect_tcl.h:39: error: expected declaration specifiers or ‘...’ before ‘Tcl_Obj’
> expect-5.43.0/expect_tcl.h:52: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘TCL_VARARGS’
> expect-5.43.0/exp_main_exp.c: In function ‘main’:
> expect-5.43.0/exp_main_exp.c:28: warning: implicit declaration of function ‘Tcl_FindExecutable’
> expect-5.43.0/exp_main_exp.c:30: warning: implicit declaration of function ‘Tcl_Init’
> expect-5.43.0/exp_main_exp.c:44: error: ‘Tcl_Obj’ undeclared (first use in this function)
> expect-5.43.0/exp_main_exp.c:44: error: (Each undeclared identifier is reported only once
> expect-5.43.0/exp_main_exp.c:44: error: for each function it appears in.)
> expect-5.43.0/exp_main_exp.c:44: error: expected expression before ‘)’ token
> expect-5.43.0/exp_main_exp.c:44: error: too many arguments to function ‘exp_interpreter’
> expect-5.43.0/exp_main_exp.c:56: error: too few arguments to function ‘Tcl_Eval’
> make[2]: *** [exp_main_exp.o] エラー 1
> make[2]: ディレクトリ `/home/pssdev/atmark-dist-20100603/user/expect' から出ます
> make[1]: *** [all] エラー 2
> make[1]: ディレクトリ `/home/pssdev/atmark-dist-20100603/user' から出ます
> make: *** [subdirs] エラー 1
> ------ コンパイル結果抜粋(ここまで)
> 
> 
> 以上、よろしくお願いいたします。
> 
> 
> _______________________________________________
> armadillo mailing list
> email@hidden
> http://lists.atmark-techno.com/cgi-bin/mailman/listinfo/armadillo




armadillo メーリングリストの案内