Adding some information about building for Windows.

This commit is contained in:
Jehan 2017-12-26 03:37:42 +01:00
parent df67ae4fe0
commit 95872ef41c
2 changed files with 25 additions and 1 deletions

12
INSTALL
View File

@ -1,4 +1,4 @@
# INSTALL uchardet
# Building uchardet (generic)
`uchardet` uses a typical cmake installation.
@ -14,3 +14,13 @@ Alternatively, use `ccmake`, curses interface to `cmake`.
* Install with `make install`.
Read `README` for more details on uchardet.
# Building uchardet on Windows
The above procedure is generic, which means it should work on any platform.
In particular, it works well on Linux.
The procedure is the same on Windows, but if you want more details (for
instance which tools to use in order to run CMake on Windows, compiler
information, etc.), the following link may be useful:
https://github.com/BYVoid/uchardet/issues/39#issuecomment-353873891

View File

@ -182,6 +182,20 @@ Techniques used by universalchardet are described at http://www.mozilla.org/proj
brew install uchardet
### Windows
Binary packages are provided in Fedora repository. There may exist other
pre-built packages but I am not aware of them.
Nevertheless the library is very easily and quickly compilable under
Windows as well, so finding a binary package is not necessary.
Some did it successfully with the [CMake Windows
installer](https://cmake.org/download/) and MinGW. It should be possible
to use MinGW-w64 instead of MinGW, in particular to build both 32 and
64-bit DLL libraries).
Note also that it is very easily cross-buildable (for instance from a
GNU/Linux machine).
### Build from source
Releases are available from: