[BRLTTY] Compiling in windows : Cython Not Found

Siju Samuel sijusamueltech at gmail.com
Wed Jun 11 13:10:44 EDT 2014


Hi dave,

I could install Cython from precompiled binary available in
http://www.lfd.uci.edu/~gohlke/pythonlibs/
https://pypi.python.org/pypi/setuptools#windows-7-or-graphical-install
[needs this python setuptool installed to run]
and 'Cython.exe is available.

now when  compile brltty, it is identifying cython but gives some
compilation error looks it is coming from python. I am using an older
version which  compiles fine with out 'Cyhon'.  Just want to check Is it
some thing related to my python installation (version etc) or with brltty.

My machine is 64 bit.  The python installed is 32 bit. And in setuptool did
not have any option to specify 32 or 64.
Error is as below when did the make install


Thanks,
siju Samuel



$ ./configure --with-braille-driver=fs,-all --with-screen-driver=-all
--with-sp
eech-driver=-all --enable-relocatable-install

make install INSTALL_ROOT="/brlttyjun"


make[2]: Entering directory `/c/brlttyjunwin/brltty/Bindings/Lisp'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/c/brlttyjunwin/brltty/Bindings/Lisp'
make[2]: Entering directory `/c/brlttyjunwin/brltty/Bindings/Python'
gawk -f ../../Programs/brlapi.awk -f ../../Programs/brldefs.awk -f
./constants.a
wk ./../../Programs/brlapi.h ../../Programs/brlapi_keycodes.h
../../Programs/brl
defs.h >constants.auto.pyx
/c/Python27/Scripts/cython -I. -o brlapi.auto.c ./brlapi.pyx
warning: brlapi.pyx:581:73: local variable 'c_set' referenced before
assignment
warning: brlapi.pyx:606:73: local variable 'c_set' referenced before
assignment
warning: brlapi.pyx:659:73: local variable 'c_keys' referenced before
assignment
warning: brlapi.pyx:683:73: local variable 'c_keys' referenced before
assignment
cd ./../../Programs && make api
make[3]: Entering directory `/c/brlttyjunwin/brltty/Programs'
make[3]: Nothing to be done for `api'.
make[3]: Leaving directory `/c/brlttyjunwin/brltty/Programs'
set -- --quiet build --build-temp .; \
        [ "mingw32" != "mingw32" ] || set -- "${@}" --compiler mingw32; \
        /c/Python27/python ./setup.py "${@}"
brlapi.auto.c: In function '__pyx_pf_6brlapi_10Connection___init__':
brlapi.auto.c:4500:20: warning: assignment makes integer from pointer
without a
cast [enabled by default]
brlapi.auto.c: In function '__Pyx_RaiseArgtupleInvalid':
brlapi.auto.c:12634:18: warning: unknown conversion type character 'z' in
format
 [-Wformat]
brlapi.auto.c:12634:18: warning: format '%s' expects argument of type 'char
*',
but argument 5 has type 'Py_ssize_t' [-Wformat]
brlapi.auto.c:12634:18: warning: unknown conversion type character 'z' in
format
 [-Wformat]
brlapi.auto.c:12634:18: warning: too many arguments for format
[-Wformat-extra-a
rgs]
brlapi.auto.c: In function '__Pyx_RaiseTooManyValuesError':
brlapi.auto.c:13132:18: warning: unknown conversion type character 'z' in
format
 [-Wformat]
brlapi.auto.c:13132:18: warning: too many arguments for format
[-Wformat-extra-a
rgs]
brlapi.auto.c: In function '__Pyx_RaiseNeedMoreValuesError':
brlapi.auto.c:13138:18: warning: unknown conversion type character 'z' in
format
 [-Wformat]
brlapi.auto.c:13138:18: warning: format '%s' expects argument of type 'char
*',
but argument 3 has type 'Py_ssize_t' [-Wformat]
brlapi.auto.c:13138:18: warning: too many arguments for format
[-Wformat-extra-a
rgs]
In file included from ./../../Programs/win_pthread.h:35:0,
                 from ./bindings.c:31:
./../../prologue.h:300:0: warning: "WEOF" redefined [enabled by default]
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wctype.h:58:0:
note: t
his is the location of the previous definition
./../../prologue.h:301:0: warning: "WCHAR_MAX" redefined [enabled by
default]
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wchar.h:54:0:
note: th
is is the location of the previous definition
./../../prologue.h:354:23: error: conflicting types for 'mbstate_t'
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wchar.h:295:13:
note:
previous declaration of 'mbstate_t' was here
./../../prologue.h:357:1: error: conflicting types for 'mbrtowc'
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wchar.h:300:32:
note:
previous declaration of 'mbrtowc' was here
./../../prologue.h:366:1: error: conflicting types for 'wcrtomb'
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wchar.h:304:32:
note:
previous declaration of 'wcrtomb' was here
./../../prologue.h:372:1: error: conflicting types for 'mbsinit'
c:\mingw\bin\../lib/gcc/mingw32/4.6.2/../../../../include/wchar.h:317:42:
note:
previous definition of 'mbsinit' was here
error: command 'gcc' failed with exit status 1
make[2]: *** [brlapi.dll] Error 1
make[2]: Leaving directory `/c/brlttyjunwin/brltty/Bindings/Python'
make[1]: *** [all-api-bindings] Error 1
make[1]: Leaving directory `/c/brlttyjunwin/brltty/Programs'
make: *** [install] Error 2







On Wed, Jun 11, 2014 at 10:20 AM, Siju Samuel <sijusamueltech at gmail.com>
wrote:

> Hi dave,
>
> I am  trying to get brlapi.pyd in windows-mingw32. Can I  use the  above
> script in windows?
> Also,  how can I get an cython.exe  ; as could not easily get any
> reference.
>
>
> In my system I also see
>
> C:\Python27\Scripts
> cython.py    (python file, not an exe) which  is attached.
>
>
> Here my intention is just to get the brlapi.pyd  for the downloaded BRLTTY
> code I have.
>
> Thanks,
> siju samuel
>
>
>
>
>
> On Tue, Jun 10, 2014 at 7:50 PM, Dave Mielke <dave at mielke.cc> wrote:
>
>> [quoted lines by Siju Samuel on 2014/06/10 at 18:42 -0500]
>>
>> >In my system, 'cython'  as  a command it not recognizable.   Is it
>> supposed
>> >to be?
>>
>> We look for cython as a command, yes. I just checked the cython command,
>> and
>> discovered that it's really a very simple Python script. Maybe some
>> platforms
>> add this script and some don't. For your interest (and possible use), I've
>> attached it to this message. I'm now wondering if we should perhaps be
>> invoking
>> cython directly instead of via the script.
>>
>> --
>> Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of
>> God.
>> Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
>> EMail: dave at mielke.cc | Canada  K2A 1H7   | http://FamilyRadio.com/
>>
>> _______________________________________________
>> This message was sent via the BRLTTY mailing list.
>> To post a message, send an e-mail to: BRLTTY at mielke.cc
>> For general information, go to: http://mielke.cc/mailman/listinfo/brltty
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mielke.cc/pipermail/brltty/attachments/20140611/f0abfea8/attachment.html>


More information about the BRLTTY mailing list