编译KVecTurbo
从GitCode获取KVecTurbo开源代码,安装必要的依赖工具后编译KVecTurbo。
- 获取KVecTurbo开源代码,标签为v1.1.0。假设代码存放于“/path/to/kvecturbo”。
git clone https://gitcode.com/boostkit/kvecturbo.git
- 安装GCC 10.3、OpenMP、CMake、Make。
yum install gcc g++ cmake libgomp make
- KVecTurbo依赖openEuler第三方库Huawei_Secure_C,获取软件包并解压。假设存放路径为“/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
- 编译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.sh生成的动态库文件libkvecturbo.so.xxxx位于“out/lib”文件夹下,头文件位于“out/include”文件夹下。其中xxxx表示版本号。
父主题: 安装配置环境