The Uchardet package contains an encoding detector library which takes a sequence of bytes in an unknown character encoding and attempts to determine the encoding of the text.
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
下载地址(HTTP):https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.8.tar.xz
MD5 校验和:9e267be7aee81417e5875086dd9d44fd
大小:217 KB
预计所需磁盘空间:4.6 MB(含测试)
预计构建时间:小于 0.1 SBU(含测试)
Install Uchardet by running the following commands:
mkdir build &&
cd build &&
cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D BUILD_STATIC=OFF \
-D CMAKE_POLICY_VERSION_MINIMUM=3.5 \
-W no-dev .. &&
make
To test the results, issue: make test.
Now, as the root user:
make install
-D BUILD_STATIC=OFF: This
switch disables building the static version of the library.
-D
CMAKE_POLICY_VERSION_MINIMUM=3.5: This switch allows
building this package with cmake-4.0 or newer.