HDiffPatch
HDiffPatch copied to clipboard
build with cmake
好像cmake 起不来 我用的CLion
"_ZSTD_initCStream", referenced from:
_zstd_compress(hdiff_TCompress const*, hpatch_TStreamOutput const*, hpatch_TStreamInput const*) in hdiffz.cpp.o
"_ZSTD_initDStream", referenced from:
_zstd_open(hpatch_TDecompress*, unsigned long long, hpatch_TStreamInput const*, unsigned long long, unsigned long long) in hpatchz_test.cpp.o
_zstd_open(hpatch_TDecompress*, unsigned long long, hpatch_TStreamInput const*, unsigned long long, unsigned long long) in hdiffz.cpp.o
__zstd_open in hdiffz_import_patch.c.o
__zstd_open in hpatchz.c.o
"_ZSTD_isError", referenced from:
_zstd_open(hpatch_TDecompress*, unsigned long long, hpatch_TStreamInput const*, unsigned long long, unsigned long long) in hpatchz_test.cpp.o
_zstd_decompress_part(void*, unsigned char*, unsigned char*) in hpatchz_test.cpp.o
_zstd_compress(hdiff_TCompress const*, hpatch_TStreamOutput const*, hpatch_TStreamInput const*) in hdiffz.cpp.o
_zstd_open(hpatch_TDecompress*, unsigned long long, hpatch_TStreamInput const*, unsigned long long, unsigned long long) in hdiffz.cpp.o
_zstd_decompress_part(void*, unsigned char*, unsigned char*) in hdiffz.cpp.o
__zstd_open in hdiffz_import_patch.c.o
__zstd_decompress_part in hdiffz_import_patch.c.o
...
"_adler32", referenced from:
THash_adler32::hash_begin() in testHashClash.cpp.o
THash_adler32::hash(unsigned char const*, unsigned char const*) in testHashClash.cpp.o
(maybe you meant: THash_adler32h::hash_begin(), THash_adler32h::hash(unsigned char const*, unsigned char const*) , THash_adler32h::hash_end(unsigned int*) , THash_adler32::name() , THash_adler32::hash_begin() , THash_adler32::hash(unsigned char const*, unsigned char const*) , THash_adler32::hash_end(unsigned int*) , void test<THash_adler32, unsigned short, 16, (unsigned short)65535>(unsigned char const*, unsigned char const*) , void test<THash_adler32, unsigned int, 32, 4294967295u>(unsigned char const*, unsigned char const*) , void test<THash_adler32, unsigned char, 8, (unsigned char)255>(unsigned char const*, unsigned char const*) , THash_adler32h::name() , __private_fast_adler32_table , _fast_adler32_by_combine , _adler32_append , _fast_adler32_append , void test<THash_adler32h, unsigned int, 32, 4294967295u>(unsigned char const*, unsigned char const*) , _adler32_by_combine , _adler32_roll )
"_crc32", referenced from:
_crc32_begin(void*) in hpatchz_test.cpp.o
_crc32_append(void*, unsigned char const*, unsigned char const*) in hpatchz_test.cpp.o
THash_crc32::hash_begin() in testHashClash.cpp.o
THash_crc32::hash(unsigned char const*, unsigned char const*) in testHashClash.cpp.o
_crc32_begin(void*) in hdiffz.cpp.o
_crc32_append(void*, unsigned char const*, unsigned char const*) in hdiffz.cpp.o
__crc32_begin in hdiffz_import_patch.c.o
...
(maybe you meant: THash_crc32::hash_begin(), THash_crc32::hash(unsigned char const*, unsigned char const*) , THash_crc32::hash_end(unsigned int*) , THash_crc32::name() , void test<THash_crc32, unsigned int, 32, 4294967295u>(unsigned char const*, unsigned char const*) )
"_deflate", referenced from:
_zlib_compress_part(_zlib_TCompress*, unsigned char const*, unsigned char const*, int, unsigned long long*, int*) in _private_searchBestParams.cpp.o
_zlib_compress_part(_zlib_TCompress*, unsigned char const*, unsigned char const*, int, unsigned long long*, int*) in hdiffz.cpp.o
_pzlib_compress2(unsigned char*, unsigned long*, unsigned char const*, unsigned long, int, int, int) in hdiffz.cpp.o
"_deflateEnd", referenced from:
_zlib_compress_close_by(hdiff_TCompress const*, _zlib_TCompress*) in _private_searchBestParams.cpp.o
_zlib_compress_close_by(hdiff_TCompress const*, _zlib_TCompress*) in hdiffz.cpp.o
_pzlib_compress2(unsigned char*, unsigned long*, unsigned char const*, unsigned long, int, int, int) in hdiffz.cpp.o
"_deflateInit2_", referenced from:
_zlib_compress_open_by(hdiff_TCompress const*, int, int, hpatch_TStreamOutput const*, unsigned char*, unsigned long) in _private_searchBestParams.cpp.o
_zlib_compress_open_by(hdiff_TCompress const*, int, int, hpatch_TStreamOutput const*, unsigned char*, unsigned long) in hdiffz.cpp.o
_pzlib_compress2(unsigned char*, unsigned long*, unsigned char const*, unsigned long, int, int, int) in hdiffz.cpp.o
"_inflate", referenced from:
__zlib_do_inflate(void*) in _private_searchBestParams.cpp.o
__zlib_do_inflate(void*) in hpatchz_test.cpp.o
__zlib_do_inflate(void*) in hdiffz.cpp.o
___zlib_do_inflate in hdiffz_import_patch.c.o
___zlib_do_inflate in hpatchz.c.o
"_inflateEnd", referenced from:
_zlib_decompress_close_by(hpatch_TDecompress*, _zlib_TDecompress*) in _private_searchBestParams.cpp.o
_zlib_decompress_close_by(hpatch_TDecompress*, _zlib_TDecompress*) in hpatchz_test.cpp.o
_zlib_decompress_close_by(hpatch_TDecompress*, _zlib_TDecompress*) in hdiffz.cpp.o
__zlib_decompress_close_by in hdiffz_import_patch.c.o
__zlib_decompress_close_by in hpatchz.c.o
"_inflateInit2_", referenced from:
_zlib_decompress_open_by(hpatch_TDecompress*, hpatch_TStreamInput const*, unsigned long long, unsigned long long, int, unsigned char*, unsigned long) in _private_searchBestParams.cpp.o
_zlib_decompress_open_by(hpatch_TDecompress*, hpatch_TStreamInput const*, unsigned long long, unsigned long long, int, unsigned char*, unsigned long) in hpatchz_test.cpp.o
_zlib_decompress_open_by(hpatch_TDecompress*, hpatch_TStreamInput const*, unsigned long long, unsigned long long, int, unsigned char*, unsigned long) in hdiffz.cpp.o
__zlib_decompress_open_by in hdiffz_import_patch.c.o
__zlib_decompress_open_by in hpatchz.c.o
"_inflateReset", referenced from:
_zlib_reset_for_next_node(_zlib_TDecompress*) in _private_searchBestParams.cpp.o
_zlib_reset_for_next_node(_zlib_TDecompress*) in hpatchz_test.cpp.o
_zlib_reset_for_next_node(_zlib_TDecompress*) in hdiffz.cpp.o
__zlib_reset_for_next_node in hdiffz_import_patch.c.o
__zlib_reset_for_next_node in hpatchz.c.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [HDiffPatch] Error 1
make[2]: *** [CMakeFiles/HDiffPatch.dir/all] Error 2
make[1]: *** [CMakeFiles/HDiffPatch.dir/rule] Error 2
make: *** [HDiffPatch] Error 2
想跑下test代码来着
没用clone第三方仓库? 可以参考readme
不是的、 makefile可以 cmakelist有需要改动的地方 比如
include_directories(../libmd5)
include_directories(../lzma/C)
include_directories(../zstd/lib)
excise/main.cpp
../libmd5/md5main.c
../libmd5/md5.c
../libmd5/md5.h
../lzma/C/LzmaEnc.c
../lzma/C/LzmaEnc.h
../lzma/C/Lzma2Enc.c
../lzma/C/Lzma2Enc.h
../lzma/C/LzFind.c
../lzma/C/LzFind.h
../lzma/C/LzFindOpt.c
# ../lzma/C/LzFindOpt.h
../lzma/C/CpuArch.c
../lzma/C/CpuArch.h
../lzma/C/LzmaEnc.c
../lzma/C/LzmaEnc.h
../lzma/C/Lzma2Enc.c
../lzma/C/Lzma2Enc.h
../lzma/C/LzFindMt.c
../lzma/C/LzFindMt.h
../lzma/C/MtCoder.c
../lzma/C/MtCoder.h
../lzma/C/MtDec.c
../lzma/C/MtDec.h
../lzma/C/Threads.c
../lzma/C/Threads.h
../zstd/lib/zstd.h
# excise/main.h
let me see no message ~ . happy new year ~.~
我没有用过cmake和CLion :(
Guys how did you solved this issue? Can anyone translate to English ?
@beastburst
This project not supported build with cmake, you can build project by make.