麻烦为linux编译mozlz4

时间:2017-11-26 20:31:13

标签: c linux

我正在尝试从github编译mozlz4并且我收到以下错误:

mozlz4.c(.text+0x18c): undefined reference to 'LZ4_compressBound'
mozlz4.c(.text+0xlf5): undefined reference to 'LZ4_compressBound'
mozlz4.c(.text+0x206): undefined reference to 'LZ4_compress_default'

它需要我安装的pkg-config和liblz4-dev。 我试过设置

CPATH, LIBRARY_PATH, & LD_LIBRARY_PATH
to /usr/include
and then to /usr/lib/x86_64-linux-gnu with no success.

我也尝试过复制liblz4.a,liblz4.pc,liblz4.so,liblz4.so.1,liblz4.so.1.7.1,lz4.h,lz4frame.h,& lz4hc.h到mozlz4.c,mozlz4.h和unmozlz4.c文件所在的目录也没有成功。

自从我尝试在linux上编译源代码以来,已经很多年了,我很难过。任何帮助将不胜感激。 :d

https://github.com/pjanouch/mozlz4 Ubuntu 16.04.3 LTS GNU C编译器版本5.4.0 20160609

0 个答案:

没有答案