Compiling the Dynamic Library
- Compile the obtained installation package and build dependencies to generate a dynamic library. The following is an example of compiling a dynamic library (for reference only):
Obtain the Makefile from https://gitee.com/kunpengcompute/kps/tree/glz.
Download the Makefile to the /root/glz directory.
The preceding compilation example is for reference only. You need to control the security of compilation options on your own.
- Start compilation.
1make

If libglz.so is displayed in the current directory, the compilation is complete.
- Place the complied file in the system library directory/usr/lib64 and the header file in the /usr/include directory.
1 2
cp libglz.so /usr/lib64 cp glz.h /usr/include
Parent topic: Compiling the Compression Algorithm