libsurvive
libsurvive copied to clipboard
Changes in Cmakelists.txt broke rpm build & install process on Linux
I encounter two problems:
- library installation path changed from the usual /usr/lib (I am OK with that) to /usr/lib + /usr/lib64 + /usr/lib64libsurvive
ls -R
./lib:
debug libminimal_opencv.a libmpfit.a
./lib/debug:
usr
./lib/debug/usr:
bin lib64 lib64libsurvive
./lib/debug/usr/bin:
api_example.debug sensors-readout.debug survive-buttons.debug survive-cli.debug survive-solver.debug
./lib/debug/usr/lib64:
libsurvive.so.0.3.debug libsurvive.so.0.debug libsurvive.so.debug
./lib/debug/usr/lib64libsurvive:
plugins
./lib/debug/usr/lib64libsurvive/plugins:
disambiguator_statebased.so.debug driver_global_scene_solver.so.debug driver_simulator.so.debug driver_vive.so.debug poser_kalman_only.so.debug
driver_dummy.so.debug driver_openvr.so.debug driver_udp.so.debug poser_barycentric_svd.so.debug poser_mpfit.so.debug
driver_gatt.so.debug driver_playback.so.debug driver_usbmon.so.debug poser_dummy.so.debug
./lib64:
libsurvive.so libsurvive.so.0 libsurvive.so.0.3 pkgconfig
./lib64/pkgconfig:
survive.pc
./lib64libsurvive:
plugins
./lib64libsurvive/plugins:
disambiguator_statebased.so driver_gatt.so driver_openvr.so driver_simulator.so driver_usbmon.so poser_barycentric_svd.so poser_kalman_only.so
driver_dummy.so driver_global_scene_solver.so driver_playback.so driver_udp.so driver_vive.so poser_dummy.so poser_mpfit.so
-
etc/bash_completion.d/survive_autocomplete.shis not getting installed at all because it cannot find/etc/bash_completion.d. This folder does exist in the target system, but the installation is done to a temporary empty dir used only for rpm packaging instead of the root. The temporary dir will never haveetc/bash_completion.dsubdir (before it is created by the cmake install itself). A manually set flag would be better for rpm packaging.
This patch fixes the build for me: libsurvive-makefiles.patch.txt