mimalloc icon indicating copy to clipboard operation
mimalloc copied to clipboard

Can't install on Haiku R1 beta 4

Open realtaraharris opened this issue 2 years ago • 3 comments

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.

realtaraharris avatar Jan 05 '23 20:01 realtaraharris

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

realtaraharris avatar Jan 05 '23 20:01 realtaraharris

/system/non-packaged, if available, is also possible but your approach might be safer.

devnexen avatar Jan 05 '23 20:01 devnexen

For manual build-DCMAKE_INSTALL_PREFIX=/boot/home/config/non-packagedcan be used.

Begasus avatar Jul 21 '23 11:07 Begasus