[BRLTTY] Can't get brltty to build, was Re: Support multiple Python versions on Windows
Leonard de Ruijter
alderuijter at gmail.com
Thu Sep 28 15:50:27 EDT 2023
Hi all,
Unfortunately, I can't get brltty to build on my Windows system. Here is
wat I do:
1. With mingw-get, install msys1 and mingw
2. Start msys1
3. Run the winsetup script
4. Run autogen
5. Run mkwin ..
Whatever I do, I get the following warnings:
mkwin: configuring build
../source/brltty-prologue.bash: line 287: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
../source/brltty-prologue.bash: line 387: declare: -n: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]
And then with make, it instantly crashes with:
mkwin: building programs
../../source/Programs/brltty.c: In function 'setServiceState':
../../source/Programs/brltty.c:51:59: error:
'ERROR_SERVICE_SPECIFIC_ERROR' undeclared (first use in this function)
.dwWin32ExitCode = (exitStatus != PROG_EXIT_SUCCESS)?
ERROR_SERVICE_SPECIFIC_ERROR: NO_ERROR,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../source/Programs/brltty.c:51:59: note: each undeclared identifier
is reported only once for each function it appear
s in
../../source/Programs/brltty.c:51:89: error: 'NO_ERROR' undeclared
(first use in this function)
.dwWin32ExitCode = (exitStatus != PROG_EXIT_SUCCESS)?
ERROR_SERVICE_SPECIFIC_ERROR: NO_ERROR,
^~~~~~~~
../../source/Programs/brltty.c: In function 'main':
../../source/Programs/brltty.c:198:27: error:
'ERROR_FAILED_SERVICE_CONTROLLER_CONNECT' undeclared (first use in this fu
nction)
if (GetLastError() != ERROR_FAILED_SERVICE_CONTROLLER_CONNECT) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [brltty.o] Error 1
make: *** [all] Error 2
I have GNU bash, version 3.1.23(1)-release (i686-pc-msys) and gcc.exe
(MinGW.org GCC-6.3.0-1) 6.3.0. This stuff is all pretty old, so I'm
pretty sure i'm doing something ridiculously wrong here.
Any help most appreciated!
Regards,
Leonard
On 28-9-2023 01:28, Samuel Thibault wrote:
> Samuel Thibault, le jeu. 28 sept. 2023 01:26:57 +0200, a ecrit:
>> Leonard de Ruijter, le mer. 27 sept. 2023 19:51:10 +0200, a ecrit:
>>> Python has something like the stable application binary Interface (ABI), see
>>> https://docs.python.org/3.11/c-api/stable.html . This can be used by
>>> enabling the limited API.
>>>
>>> I wonder, has this ever been considered? If not, could it be considered to
>>> create a brlapi python package that uses the limited API, preferably using
>>> an API version that is equal to the minimum Python version that is still in
>>> maintenance (currently 3.8)? That would ensure that you'd be able to use a
>>> brlapi python extension with multiple python versions.
>> Apparently cython3 introduced some support for it, so it will be worth
>> trying it indeed.
> (namely: CYTHON_LIMITED_API, that makes cython use the stable ABI)
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at brltty.app
> For general information, go to: http://brltty.app/mailman/listinfo/brltty
More information about the BRLTTY
mailing list