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