lz4mt icon indicating copy to clipboard operation
lz4mt copied to clipboard

Compile problems

Open awz opened this issue 10 years ago • 3 comments

Hi -

awz@razor:~/git/lz4mt$ make g++ -Wall -W -Wextra -pedantic -Weffc++ -Wno-missing-field-initializers -O2 -std=c++0x -Ilz4/ -Ilz4/programs -c -o obj/lz4mt_benchmark.o src/lz4mt_benchmark.cpp src/lz4mt_benchmark.cpp:12:20: fatal error: xxhash.h: No such file or directory #include "xxhash.h" ^ compilation terminated. make: *** [obj/lz4mt_benchmark.o] Error 1

Looks like the include paths are wrong and the file "xxhash.h" is missing in the latest git source. Let me know if I can provide more info? I'm compiling on ubuntu 14.04 with package "build-essential" installed.

Thanks, Sasha

awz avatar Jul 15 '14 15:07 awz

Hi @awz. Thanks for the report !

Perhaps it is a git-submodule's initialize problem. If you already clone lz4mt git repo, please try the following commands :

cd /your/lz4mt/path/
git submodule update --init --recursive
make

If you want to clone new repo, you can try the following commands :

git clone --recursive https://github.com/t-mat/lz4mt.git
cd lz4mt
make

If your problem will not resolve by these methods, please paste the result (lz4mt-ls-lR.txt) of following commands to this issue :

cd /your/lz4mt/path/
make clean
ls -lR > lz4zmt-ls-lR.txt

Hope this helps.

t-mat avatar Jul 15 '14 16:07 t-mat

That worked well -- thanks!

awz avatar Jul 15 '14 17:07 awz

Another issue solved by

git clone --recursive https://github.com/t-mat/lz4mt.git

src/lz4mt.cpp:12:17: fatal error: lz4.h: No such file or directory lz4zmt-ls-lR.txt

biofool avatar Jun 25 '17 20:06 biofool