|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
||||||||||||||||||||||||||||||||||||||||||||||||
(getenv "TZ") "Japan" (let ((process-environment process-environment)) (setenv "TZ" "GMT")) t (getenv "TZ") "GMT"山岡さんの解説を読んで理解した(つもり)。
(defun add-log-iso8601-ut-time-string ()
(let ((zone (getenv "TZ")))
(prog2
(set-time-zone-rule "GMT")
(format-time-string "%Y-%m-%d")
(set-time-zone-rule zone))))
(if (featurep 'xemacs)
(progn
(setq bbdb-sounds-directory nil)
; (require 'highlight-headers)
(require 'bbdb-xemacs))
(when (>= emacs-major-version 21)
(require 'x-face-e21))
(require 'bbdb-gui))
(set-face-foreground 'bbdb-name "Blue")
(make-face-bold 'bbdb-name)
(set-face-foreground 'bbdb-company "purple")
(set-face-foreground 'bbdb-field-name "firebrick")
(eval-after-load "mcs-20" '(add-to-list 'mime-charset-coding-system-alist '(ks_c_5601-1987 . euc-kr)))
「ドライブを AP に」を使って AP 稼ぎをしてみる。
こっ、これはすごすぎる。15 分くらいで S.LV 99 になった!
一度これをやると、戦闘で AP を稼ぐのがバカらしくなってしまうなあ。
ということで、本格的に AP 稼ぎ。
必要なアイテムが5人分しか調達できなかったので、ルールーとキマリ以外だが、
スフィアの方が全然足りなくなった(^^;
こうスフィア盤を自由に動かせるようになると、どこに動かすか悩む必要があり、 なかなかにこのシステムも面白くなるものだ。
# apt-get install pilot-link pilot-link-devel jpilotでもって、 Vaio, Palm and Debianというページを参考に、USB のモジュール読込み *1 。
# modprobe visorでもって、pilot-xfer を実行。
% pilot-xfer -p /dev/ttyUSB1 -l Unable to bind to port '/dev/ttyUSB1'. (Please see 'man pilot-xfer' or 'pilot-xfer --help' for information on setting the port).ぐへっ。
% ../prc-tools-2.0.92/configure --target=m68k-palmos --enable-languages=c,c++ \ --with-headers=`pwd`/empty --with-palmdev-prefix=/usr/local/palmdev \ `/usr/share/automake/config.guess`でもって、make
% make all-host
# make install-host
% make all-gcc
# make install-gcc
# make install-palmdev
% make all-target
for dir in crt libc libm include; do \
if [ -f ./${dir}/Makefile ]; then \
if (cd ${dir} && make all); then true; else exit 1; fi; \
fi; \
done
make[1]: 入ります ディレクトリ `/home/src/prc-tools-2.0.92-build/crt'
m68k-palmos-gcc -O5 -fno-builtin -Wall -W -I../../prc-tools-2.0.92/crt/../include -I../../prc-tools-2.0.92/crt/../sdk-bootstrap -nopalmos -c -o crt0.o ../../prc-tools-2.0.92/crt/crt0.c
m68k-palmos-gcc: unrecognized option `-nopalmos'
../../prc-tools-2.0.92/crt/crt0.c:11: SystemMgr.h: そのようなファイルやディレクトリはありません
../../prc-tools-2.0.92/crt/crt0.c:12: SoundMgr.h: そのようなファイルやディレクトリはありません
../../prc-tools-2.0.92/crt/crt0.c:18: SystemPrv.h: そのようなファイルやディレクトリはありません
make[1]: *** [crt0.o] エラー 1
make[1]: 出ます ディレクトリ `/home/src/prc-tools-2.0.92-build/crt'
make: *** [all-target] エラー 1
今日はここまで。
--with-build-sdk[=-palmosX]
Select an installed Palm OS SDK with which to build the runtime code. By
default, the files in prc-tools/sdk-bootstrap are used, which provide just
enough functionality to compile the startup code. (But the bootstrap SDK
is not currently written, so you need to use this option.)
って記述がっ。configure の実行例にも書いといてくれよ。
% ../prc-tools-2.0.92/configure --target=m68k-palmos --enable-languages=c,c++ \ --with-headers=`pwd`/empty --with-palmdev-prefix=/usr/local/palmdev \ --with-build-sdk `/usr/share/automake/config.guess` % make all-host # make install-host % make all-gcc # make install-gcc # make install-wrappers # make install-palmdev % make all-target # make install-target
% cat > hello.c
#include <PalmOS.h>
UInt32 PilotMain(UInt16 cmd, void *cmdPBP, UInt16 launchFlags)
{
EventType event;
if (cmd == sysAppLaunchCmdNormalLaunch) {
WinDrawChars( "Hello, world!", 13, 55, 60 );
do {
EvtGetEvent( &event, evtWaitForever );
SysHandleEvent( &event );
} while (event.eType != appStopEvent);
}
return;
}
% m68k-palmos-gcc -O2 hello.c -o hello
% build-prc -n "Hello, World" -c WRLD hello
% pilot-xfer -i hello.prc
無事、"Hello, World" が表示された:-)