libewf库编译

地址:libyal/libewf: Libewf is a library to access the Expert Witness Compression Format (EWF) (github.com)

1、下载最新稳定版本

libewf-experimental-<version>.tar.gz

2、解压

3、在麒麟系统上安装软件包

sudo apt install git autoconf automake autopoint libtool pkg-config flex bison

4、进入libewf文件夹编译

./configure --enable-shared=no --enable-static=yes --enable-wide-character-type=yes
  • --enable-shared=no:表示禁用共享库的生成,即只生成静态库。

  • --enable-static=yes:表示启用静态库的生成。

  • --enable-wide-character-type=yes:表示启用宽字符类型(wide character type)支持

    若不启用 会报 in function _cgo_8405f37c7b66_Cfunc_libewf_handle_open_wide': undefined reference to libewf_handle_open_wide 的错误

5、make

 make -j8  

6、生成的文件在../libewf/.libs文件夹下