- User Since
- Thu, Sep 23, 1:45 PM (4 w, 1 d)
Thu, Oct 14
Thank you for such a quick answer. I have now got MITK to build with clang.
Tue, Sep 28
Seems like you were right. I was doing a Debug build, yes. Changing the lib name to lz4 instead of lz4d fixed the issue on my end too.
Fri, Sep 24
I tried adding lib64 as you suggested, but it sadly did not fix the issue. The error looks to be the same: liblz4.so is not added during linking.
Here's the output from what you suggested in your first comment:
CMake Error at CMake/PackageDepends/MITK_lz4_Config.cmake:3 (message): include dirs: /work1/patmjen/MITK/MITK-superbuild-test/ep/include libraries: optimized;/work1/patmjen/MITK/MITK-superbuild-test/ep/lib64/liblz4.so Call Stack (most recent call first): CMake/mitkFunctionUseModules.cmake:52 (include) CMake/mitkFunctionUseModules.cmake:133 (_include_package_config) CMake/mitkFunctionCreateModule.cmake:605 (mitk_use_modules) Modules/DataTypesExt/CMakeLists.txt:1 (mitk_create_module)
Just in case, I am at commit 895486021524908ada2cd5c5978120d66678ec45 (HEAD -> develop, origin/develop, origin/HEAD).
Here's a full git diff:
diff --git a/CMake/Findlz4.cmake b/CMake/Findlz4.cmake index a79f05ade4..e9c68dccc4 100644 --- a/CMake/Findlz4.cmake +++ b/CMake/Findlz4.cmake @@ -8,14 +8,14 @@ mark_as_advanced(lz4_INCLUDE_DIR)