Failed to Find Dynamic Libraries During do_cmake.sh Execution and Compilation
Symptom
The symptom is similar to the following:
- The kps_bluestore library cannot be found.
1 2 3
Could Not find kps_bluestore (missing: KPS_BLUESTORE_LIBRARIES) CMake Error at CMakeLists.txt:277 (message): no libkpsbluestore.so found

- The lkps_ec library cannot be found.
1 2
cannot find -lkps_ec collect2: error: ld returned l exit status

Key Process and Cause Analysis
None
Conclusion and Solution
- Create soft links.
1 2
ln -snf /usr/lib64/libkps_bluestore.so.1.0.0 /usr/lib64/libkps_bluestore.so ln -snf /usr/lib64/libkps_ec.so.1.2.1 /usr/lib64/libkps_ec.so
- Run the compile command again.
1rm -rf build/ && sh do_cmake.sh
Parent topic: Troubleshooting