[pyicu-dev] pyicu with python 2.3 under windows

David Bolen db3l.email at gmail.com
Wed Feb 21 11:12:23 PST 2007


I just gave 0.6 a shot, and to be honest, my problem was getting a working
build of ICU 3.6 with VC6 and not PyICU.   So I reverted to ICU 3.4.

PyICU 0.6 did introduce some hardcoded dependencies on ICU 3.6 for the
charset support, but after removing the include of ucsdet.h in common.h,
excluding charset from the Makefile targets, and removing the init_charset
from the main entry point, it seems to build fine under VC6, with
Python 2.3and ICU
3.4.  E.g., about the same as what I was using with 0.5 plus patches.

I'm not involved with the project that used PyICU/ICU any longer, so have
limited time to figure out how to get ICU 3.6 built with VC6.  When I tried
I was getting access errors (public/private) in brkiter.cpp - first error:

brkiter.cpp
brkiter.cpp(125) : error C2248: 'validLocale' : cannot access private member
declared in class 'icu_3_6::BreakIterator'
        unicode/brkiter.h(537) : see declaration of 'validLocale'
brkiter.cpp(125) : error C2248: 'actualLocale' : cannot access private
member declared in class 'icu_3_6::BreakIterator'
        unicode/brkiter.h(536) : see declaration of 'actualLocale'
make[1]: *** [brkiter.o] Error 2
make[1]: Leaving directory `/cygdrive/s/dist/icu-3.6/icu/source/common'
make: *** [all-recursive] Error 2

If you can let me know how you got ICU 3.6 built, I could probably peek
further at the PyICU part.

-- David

On 2/21/07, Wolfgang Langner <wl at flexis.de> wrote:
>
> Hi,
>
> David Bolen wrote:
> > For what it's worth, the Makefile for PyICU 0.5 built just fine for us
> > with the native Python 2.3 under Windows against ICU 3.4 (once a few
> > source changes were made, which have been incorporated into 0.6).  I
> > haven't tried building 0.6, but it doesn't look like the Makefile
> changed.
>
> I tried building version 0.6 (I need ICU 3.6) against python 2.3.
> It doesn't build. The makefile seems ok, but I get compile errors.
> I have installed cygwin and msvc6.
>
> I get the following error. (german system!)
>
> bases.cpp
> bases.cpp(2468) : error C2440: 'type cast' : 'enum ' kann nicht in 'void
> *'
> konvertiert werden
>         Es gibt keinen Kontext, in dem diese Konvertierung moeglich ist
>
> Can't convert enum to void *. No context to do this conversion.
>
> That's the first output. I have done no further checks.
>
> > We did have Cygwin installed on the systems doing the build (so GNU make
> > and the Cygwin stuff in the Makefile was present), but as long as you
> > have VC6 as the default compiler in your path, it should build the
> > native extension just fine.
>
> I will test version 0.5 and verify this. Thanks.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/pyicu-dev/attachments/20070221/acc4be64/attachment.html


More information about the pyicu-dev mailing list