Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified python/brlapi-0.8.dll
Binary file not shown.
Binary file added python/brlapi.cp311-win32.pyd
Binary file not shown.
Binary file removed python/brlapi.cp37-win32.pyd
Binary file not shown.
Binary file modified python/libgcc_s_dw2-1.dll
Binary file not shown.
39 changes: 35 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,44 @@ This will require a significant rewrite of the papenmeier display driver.

Used for BrlTTY.

1. Download the latest `brltty-win-X.X-libusb.zip` from the [BrlTTY website](https://brltty.app/download.html) (not the 1.0 variant).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest keeping both set of steps here

i.e. a subheading for building from scratch, and another from downloading from the website

This is the 32bit version.
This requires updating the following files:
- `brlapi.cp311-win32.pyd` from `brltty-win-X.X-0-libusb\Python\Lib\site-packages\brlapi.cp11-win32.pyd`
- `libgcc_s_dw2-1.dll` from `brltty-win-X.X-0-libusb\bin\libgcc_s_dw2-1.dll`
- `brlapi-*.dll` from `brltty-win-X.X-0-libusb\brltty-win-6.6-0-libusb\bin\brlapi-*.dll`

To get `brltty-win-X.X-0-libusb` you must either build it from source or download it from the [BrlTTY website](https://brltty.app/download.html) (not the 1.0 variant).

#### Building from source

If BRLTTY doesn't have a public release compatible with NVDA's python version, you must build it from source.

Use the following steps to build a version of the brlapi Python extension that is compatible with a particular version of Python:

1. Download [mingw-get](https://sourceforge.net/projects/mingw/files/latest/download)
1. Open the setup and choose "Install"
1. Ensure support for the graphical interface is enabled, and choose "Continue"
1. After the installation, choose "Continue" again
1. In the tree view that is shown, select "Basic setup"
1. Select the following mingw packages. Note that you might require object navigation and mouse routing to do this. You can select a package by right clicking it and choose "Mark for installation":
- mingw-developer-toolkit
- mingw32-base
- mingw32-gcc-g++
- msys-base
1. Open the installation menu from the menu bar and choose "Apply changes"
1. Close mingw-get after installation
1. Checkout [the BRLTTY repository](https://github.com/brltty/brltty)
1. Start msys1 as administrator: `"C:\MinGW\msys\1.0\msys.bat"`
1. Move to the BRLTTY repository with the `cd` command
1. Run `Windows/winsetup`. ***Important note:** This script installs several packages to your C drive. Investigate the winsetup script for more details*
1. Restart msys1 and go back to the repository.
1. Run `./autogen`
1. Run `Windows/mkwin ./`
1. When the build has finished, there will be a zip file in the repository, e.g. "brltty-win-*-libusb.zip"
1. Extract the zip.
1. Update the following files
- `brlapi.cp38-win32.pyd` from `brltty-win-X.X-0-libusb\Python\Lib\site-packages\brlapi.cp38-win32.pyd`
- `brlapi.cp311-win32.pyd` from `brltty-win-X.X-0-libusb\Python\Lib\site-packages\brlapi.cp11-win32.pyd`
- `libgcc_s_dw2-1.dll` from `brltty-win-X.X-0-libusb\bin\libgcc_s_dw2-1.dll`
- `brlapi-0.8.dll` from `brltty-win-X.X-0-libusb\brltty-win-6.6-0-libusb\bin\brlapi-0.8.dll`
- `brlapi-*.dll` from `brltty-win-X.X-0-libusb\brltty-win-6.6-0-libusb\bin\brlapi-*.dll`

### txt2tags

Expand Down