John Boyer | cd42539 | 2011-06-24 14:47:12 +0000 | [diff] [blame] | 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 |
Davy Kager | d5cb047 | 2017-04-25 16:55:38 +0200 | [diff] [blame] | 7 | tarball or from the Git repository. See HACKING for instructions. |
John Boyer | cd42539 | 2011-06-24 14:47:12 +0000 | [diff] [blame] | 8 | If you downloaded the tarball, unpack it. |
| 9 | |
John Boyer | ab517de | 2011-06-24 15:06:44 +0000 | [diff] [blame] | 10 | To build liblouis.dll you will need the Microsoft command-line C/C++ |
Davy Kager | d5cb047 | 2017-04-25 16:55:38 +0200 | [diff] [blame] | 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. |
Christian Egli | 6f29016 | 2018-06-28 13:35:20 +0200 | [diff] [blame] | 15 | |
| 16 | You might have to add the Visual Studio path |
moyanming2013 | 01d505d | 2018-06-28 17:55:57 +0800 | [diff] [blame] | 17 | (C:\Program Files (x86)\Microsoft Visual Studio\2017\Community) to the |
| 18 | "Path" of the environment variables manually. |
John Boyer | ab517de | 2011-06-24 15:06:44 +0000 | [diff] [blame] | 19 | |
Davy Kager | d5cb047 | 2017-04-25 16:55:38 +0200 | [diff] [blame] | 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. |
John Boyer | cd42539 | 2011-06-24 14:47:12 +0000 | [diff] [blame] | 22 | |
Christian Egli | 6f29016 | 2018-06-28 13:35:20 +0200 | [diff] [blame] | 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 | |
John Boyer | cd42539 | 2011-06-24 14:47:12 +0000 | [diff] [blame] | 26 | nmake /f Makefile.nmake |
| 27 | |
vsmontalvao | cb15451 | 2016-10-03 12:29:33 -0700 | [diff] [blame] | 28 | The directory will contain liblouis.dll and liblouis.lib, along with |
Christian Egli | 6f29016 | 2018-06-28 13:35:20 +0200 | [diff] [blame] | 29 | object files. Note that those liblouis.dll and liblouis.lib only are for |
moyanming2013 | 01d505d | 2018-06-28 17:55:57 +0800 | [diff] [blame] | 30 | 32-bit usage. |