I am totally stuck, and I am unable to un-stack myself. I am on Arcolinux (rolling, Arch based), and fetched vkdt from github. Most of the compilation worked just fine — except for four stubborn error messages:
Did not find uncompress() function in ZLIB
Did not find zError() function in ZLIB
Can’t even find plain malloc() / free() !
Can’t find any aligned malloc() implementation!
Could someone please point me into the right direction?
does that mean you abandoned the idea of compiling now? the malloc/free missing sounds like it’s in the cmake of the rawspeed build? in this case yeah… probably some very basic dev packages missing. that seems very distro specific though. but mica is of course right, the cpu is not doing much (except the raw decoding pass in rawspeed).
hm in that case maybe something in the vkdt build setup is wrong? how exactly did you build it?
after a clean checkout, you can edit bin/config.mk to overwrite values from bin/config.mk.defaults. in particular by default it builds with clang (maybe that trips over the test for gcc/malloc?).
if you want to use gcc, put this in your bin/config.mk:
Btw, just tried building myself for Windows using the MSYS2 CLANG64 environment, and I’m hitting the same issue:
-- Looking for uncompress
-- Looking for uncompress - not found
CMake Error at cmake/Modules/CheckZLIB.cmake:57 (message):
Did not find uncompress() function in ZLIB
Call Stack (most recent call first):
cmake/src-dependencies.cmake:158 (include)
CMakeLists.txt:213 (include)
-- Looking for zError
-- Looking for zError - not found
CMake Error at cmake/Modules/CheckZLIB.cmake:62 (message):
Did not find zError() function in ZLIB
Call Stack (most recent call first):
cmake/src-dependencies.cmake:158 (include)
CMakeLists.txt:213 (include)
-- Looking for ZLIB - found (system)
-- Looking for malloc
-- Looking for malloc - not found
-- Looking for free
-- Looking for free - not found
CMake Error at cmake/Modules/memory-align-alloc.cmake:13 (message):
Can't even find plain malloc() / free() !
Call Stack (most recent call first):
src/CMakeLists.txt:1 (include)
-- Looking for aligned_alloc
-- Looking for aligned_alloc - not found
-- Looking for posix_memalign
-- Looking for posix_memalign - not found
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - not found
-- Looking for _aligned_free
-- Looking for _aligned_free - not found
CMake Error at cmake/Modules/memory-align-alloc.cmake:34 (message):
Can't find any aligned malloc() implementation!
Call Stack (most recent call first):
src/CMakeLists.txt:1 (include)
zlib is of course installed and found earlier:
-- Found ZLIB: C:/msys64/clang64/lib/libz.dll.a (found suitable version "1.3", minimum required is "
1.2.11")
As standalone rawspeed builds just fine (and darktable using it as a submodule build fine as well), there’s likely something going on w/ how it’s built/integrated here (starting w/ the hard-coded -G "Unix Makefiles")…
This e.g. works in my standalone rawspeed git clone folder (MSYS specific generator):