genshinblkstuff icon indicating copy to clipboard operation
genshinblkstuff copied to clipboard

Undefined reference to `LZ4_decompress_safe'

Open kawaii opened this issue 4 years ago • 1 comments

I have installed liblz4-dev from my package manager (Ubuntu) but seems so matter what I try it can't find required libraries for the decompression. Do I need a different package or is there some way I can manually define the location of the file?

$ make
g++ -llz4 -lc -fopenmp main.o util.o aes.o -o blkstuff
/usr/bin/ld: main.o: in function `mhy0_extract(char const*, int, unsigned char*, unsigned long)':
main.cpp:(.text+0x794): undefined reference to `LZ4_decompress_safe'
/usr/bin/ld: main.cpp:(.text+0x968): undefined reference to `LZ4_decompress_safe'
collect2: error: ld returned 1 exit status
make: *** [Makefile:8: blkstuff] Error 1```

kawaii avatar Feb 22 '22 15:02 kawaii

i didn't write the linux makefile for the project, so i'm not too sure about how to fix this. have you tried building and installing lz4 from source?

khang06 avatar Feb 22 '22 15:02 khang06