| 1 |
# Building uchardet (generic) |
| 2 |
|
| 3 |
`uchardet` uses a typical cmake installation. |
| 4 |
|
| 5 |
* Configure with `cmake`. There are various options. For instance to configure |
| 6 |
with a prefix as a release-ready build: |
| 7 |
|
| 8 |
> cmake -DCMAKE_INSTALL_PREFIX=/home/jehan/.local -DCMAKE_BUILD_TYPE=Release |
| 9 |
|
| 10 |
Alternatively, use `ccmake`, curses interface to `cmake`. |
| 11 |
|
| 12 |
* Build with `make`. |
| 13 |
|
| 14 |
* Install with `make install`. |
| 15 |
|
| 16 |
Read `README` for more details on uchardet. |
| 17 |
|
| 18 |
# Building uchardet on Windows |
| 19 |
|
| 20 |
The above procedure is generic, which means it should work on any platform. |
| 21 |
In particular, it works well on Linux. |
| 22 |
|
| 23 |
The procedure is the same on Windows, but if you want more details (for |
| 24 |
instance which tools to use in order to run CMake on Windows, compiler |
| 25 |
information, etc.), the following link may be useful: |
| 26 |
https://github.com/BYVoid/uchardet/issues/39#issuecomment-353873891 |