Here it goes...

It's odd, but try this:

1) cd into icu/source/data

2) Edit the Makefile. Look for this:

$(BUILDDIR)/$(ICUDT)%.res: $(INDEX_FILES) $(TOOLDIR)/genrb/genrb$(EXEEXT)
ICU_DATA=$(BUILDDIR) $(INVOKE) $(TOOLDIR)/genrb/genrb $(GENRBOPTS) -p $(ICUDATA_PLATFORM_NAME) -d $(BUILDDIR) $(INDEX_FILES)


Add this: -i $(BUILDDIR)
right before: -d $(BUILDDIR)

so that you have:

$(BUILDDIR)/$(ICUDT)%.res: $(INDEX_FILES) $(TOOLDIR)/genrb/genrb$(EXEEXT)
ICU_DATA=$(BUILDDIR) $(INVOKE) $(TOOLDIR)/genrb/genrb $(GENRBOPTS) -p $(ICUDATA_PLATFORM_NAME) -i $(BUILDDIR) -d $(BUILDDIR) $(INDEX_FILES)


3) While in same directory, execute:

make ENABLE_STATIC=

Samething:


[EMAIL PROTECTED] data]$ make ENABLE_STATIC=
/bin/sh ../mkinstalldirs ../data/out ../data/out/build ../test/testdata/out ../test/testdata/out/build
ICU_DATA=../data/out/build LD_LIBRARY_PATH=../common:../i18n:../tools/toolutil:../layout:../layoutex:../extra/ustdio:../tools/ctestfw:../data/out:../data:../stubdata/:$LD_LIBRARY_PATH ../tools/genrb/genrb -k -q -p icudt26l -s ../data/locales -d ../data/out/build ja.txt
../data/locales/ja.txt:15: parse error. Stopped parsing with U_INVALID_FORMAT_ERROR
couldn't parse the file ja.txt. Error:U_INVALID_FORMAT_ERROR
make: *** [../data/out/build/icudt26l_ja.res] Error 3



If that succeeds, then we need to patch icu/source/data/Makefile.in to add that. If it still fails, try one more thing: add a slash, so that you have:


-i $(BUILDDIR)/

instead of:

-i $(BUILDDIR)

and then try the "make ENABLE_STATIC=" again.

Samething.


If it's still failing, then something else is going on.

If it is, then there's one more thing to try:

1) cd into icu/source/data/out/build

2) Execute this (which will create ja.res in /var/tmp if it succeeds):

../../../tools/genrb/genrb -k -s ../../locales -i . -d /var/tmp ja.txt

If that succeeds, then the above should have also works. If it fails, then send me the message it outputs, which should be similar to your above-reported output, but with a little additional diagnostic information.

Yes, fails!


[EMAIL PROTECTED] build]$ ../../../tools/genrb/genrb -k -s ../../locales -i . -d /var/tmp ja.txt
../../locales/ja.txt:17: warning: %Collation could not be constructed from CollationElements - check context!
../../locales/ja.txt:15: parse error. Stopped parsing with U_INVALID_FORMAT_ERROR
couldn't parse the file ja.txt. Error:U_INVALID_FORMAT_ERROR


Cheers :-)
Alberto

Reply via email to