White scenery @showyou, hatena

If you have any comments, you may also send twitter @shsub or @showyou.

KyTea 0.1.0をUbuntu 9.10(x64)でmakeするとerrorになる

$ make
In file included from ./../include/kytea/corpus-io.h:20,
from ./../include/kytea/kytea-config.h:21,
from ./../include/kytea/kytea.h:20,
from kytea.cpp:20:
./../include/kytea/general-io.h: In member function ‘void kytea::GeneralIO::writeString(const kytea::KyteaString&)’:
./../include/kytea/general-io.h:64: error: ‘uint32_t’ was not declared in this scope
./../include/kytea/general-io.h: In member function ‘kytea::KyteaString kytea::GeneralIO::readKyteaString()’:
./../include/kytea/general-io.h:82: error: ‘uint32_t’ was not declared in this scope
./../include/kytea/general-io.h:82: error: no matching function for call to ‘kytea::GeneralIO::readBinary()’
make[4]: *** [kytea.lo] エラー 1

#include をgeneral-io.hの頭の方に入れたらmakeはできた。でもmake install後にkytea --helpするとlibkytea.so.0が開けないとか怒られる。mac os X 10.5ならうまくいく。

→ia32-libs入れたら立ち上がった。


うちの環境だと、

  • gcc
  • g++
  • libtools
  • ia32-libs

辺りをapt-get installする必要があった。