I am trying to build MITK on linux using CMake. During the build it fails when trying to link DataTypesExt it reports LZ4_decompress_safe and LZ4_compress_default as undefined references. When I compile with make VERBOSE=1, I can also see that the LZ4 library is not linked.
The LZ4 library has been successfully compiled by CMake and there is a liblz4.so file in ep/lib64,
As a hotfix, I manually compiled MitkDataTypes.so by simply inserting ../../../ep/lib64/liblz4.so in the list of libraries for the call to g++ that make was going to run. By doing this, I could complete the compilation of MITK.
I'm using:
- Scientific Linux release 7.7 (Nitrogen) (x86_64)
- CMake version 1.21.3
- gcc (GCC) 8.3.0
- g++ (GCC) 8.3.0
- Python 3.8.4
Please let me know if there is any other info I can provide.