mimalloc
mimalloc copied to clipboard
Can't install on Haiku R1 beta 4
mimalloc builds just fine, but it appears that there's something wrong with the default install path. Or am I doing something wrong?
~/mimalloc/build> make install
[ 40%] Built target mimalloc
[ 81%] Built target mimalloc-static
[ 83%] Built target mimalloc-obj
[ 89%] Built target mimalloc-test-api
[ 94%] Built target mimalloc-test-api-fill
[100%] Built target mimalloc-test-stress
Install the project...
-- Install configuration: "Release"
-- Installing: /boot/system/lib/libmimalloc.so.2.0
CMake Error at cmake_install.cmake:52 (file):
file INSTALL cannot copy file
"/boot/home/mimalloc/build/libmimalloc.so.2.0" to
"/boot/system/lib/libmimalloc.so.2.0": Read-only file system.
According to this comment, it appears that the libs should go into ~/config/non-packaged/lib, and headers into ~/config/non-packaged/headers. (I'm new to Haiku myself, so I'm really not sure.)
https://discuss.haiku-os.org/t/how-do-i-make-a-libary-for-haiku-os/7075/4
/system/non-packaged, if available, is also possible but your approach might be safer.
For manual build-DCMAKE_INSTALL_PREFIX=/boot/home/config/non-packagedcan be used.