Compiling KVecTurbo
This section describes how to compile KVecTurbo based on the source code.
Procedure
- Obtain the KVecTurbo source code as instructed in Obtaining the KVecTurbo Source Code and save it to the /path/to/kvecturbo directory.
- Install the dependencies.
yum install gcc g++ cmake libgomp make
- KVecTurbo depends on the openEuler third-party library Huawei_Secure_C. Obtain the software package and decompress it. Assume that the directory is /path/to/binarylibs.
cd /path/to/binarylibs wget https://opengauss.obs.cn-south-1.myhuaweicloud.com/latest/binarylibs/gcc10.3/openGauss-third_party_binarylibs_openEuler_2203_arm.tar.gz --no-check-certificate tar -zxvf openGauss-third_party_binarylibs_openEuler_2203_arm.tar.gz
- Compile KVecTurbo.
export BINARYLIBS=/path/to/binarylibs/openGauss-third_party_binarylibs_openEuler_2203_arm export CPLUS_INCLUDE_PATH=${BINARYLIBS}/kernel/platform/Huawei_Secure_C/comm/include/:$CPLUS_INCLUDE_PATH cd /path/to/kvecturbo sh build.shThe generated dynamic library file libkvecturbo.so.xxxx is stored in the out/lib folder, and the header file is stored in the out/include folder. xxxx indicates the version.
Parent topic: Using SRA_Recall