| 1 |
This file describes how to build liblouis.dll That is the only binary |
| 2 |
file needed by someone who wishes to use liblouis in an application. The |
| 3 |
tables are in the tables subdirectory of the liblouis distribution. For |
| 4 |
an overview of liblouis see README. |
| 5 |
|
| 6 |
First, obtain the liblouis source, either by downloading the latest |
| 7 |
tarball or from the Git repository. See HACKING for instructions. |
| 8 |
If you downloaded the tarball, unpack it. |
| 9 |
|
| 10 |
To build liblouis.dll you will need the Microsoft command-line C/C++ |
| 11 |
tools. You will also have to set environment variables correctly. You |
| 12 |
can download the Community version of Microsoft Visual Studio, including |
| 13 |
Visual C++, and the Microsoft Windows SDK for free. It has a batch file |
| 14 |
that sets environment variables and then displays a command prompt. |
| 15 |
|
| 16 |
You might have to add the Visual Studio path |
| 17 |
(C:\Program Files (x86)\Microsoft Visual Studio\2017\Community) to the |
| 18 |
"Path" of the environment variables manually. |
| 19 |
|
| 20 |
Next, go to the subdirectory windows. Edit the file configure.mk. If you |
| 21 |
want 32-bit Unicode change the 2 in the line UCS=2 to a 4. |
| 22 |
|
| 23 |
Open the "VS 2017 Developer Command Prompt" from the Start menu and use the |
| 24 |
"cd" command goto the "\liblouis-x.x.x\windows" folder, then type: |
| 25 |
|
| 26 |
nmake /f Makefile.nmake |
| 27 |
|
| 28 |
The directory will contain liblouis.dll and liblouis.lib, along with |
| 29 |
object files. Note that those liblouis.dll and liblouis.lib only are for |
| 30 |
32-bit usage. |