From 95872ef41c2510fc00c4dcb1ead9ba9464327709 Mon Sep 17 00:00:00 2001 From: Jehan Date: Tue, 26 Dec 2017 03:37:42 +0100 Subject: [PATCH] Adding some information about building for Windows. --- INSTALL | 12 +++++++++++- README.md | 14 ++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/INSTALL b/INSTALL index 60b8234..9b058aa 100644 --- a/INSTALL +++ b/INSTALL @@ -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 diff --git a/README.md b/README.md index 0b55025..a96fcab 100644 --- a/README.md +++ b/README.md @@ -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: