t-mat / lz4mt

Platform independent, multi-threading implementation of lz4 stream in C++11
Other
199 stars 47 forks source link

Compile problems #28

Open awz opened 10 years ago

awz commented 10 years ago

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

t-mat commented 10 years ago

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.

awz commented 10 years ago

That worked well -- thanks!

biofool commented 7 years ago

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