genshinblkstuff
genshinblkstuff copied to clipboard
Undefined reference to `LZ4_decompress_safe'
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```
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?