1 Commits

Author SHA1 Message Date
a479081fca 适配 uos 桌面系统 2024-10-17 16:14:54 +08:00
5 changed files with 6 additions and 5 deletions

View File

@ -46,7 +46,7 @@ function build_component()
comm|llt)
mkdir -p ${LOCAL_DIR}/install_${COMPILE_TYPE}
log "[Notice] boost configure string: ./bootstrap.sh --prefix=${LOCAL_DIR}/install_${COMPILE_TYPE}"
./bootstrap.sh --prefix=${LOCAL_DIR}/install_${COMPILE_TYPE}
./bootstrap.sh --prefix=${LOCAL_DIR}/install_${COMPILE_TYPE} --with-python=python3
./tools/build/src/engine/bjam cflags='-fPIC -D_GLIBCXX_USE_CXX11_ABI=0' cxxflags='-fPIC -D_GLIBCXX_USE_CXX11_ABI=0'
if [ $? -ne 0 ]; then
die "[Error] boost configure failed."

View File

@ -60,7 +60,7 @@ function build_component()
log "[Notice] cjson using \"${COMPILE_TYPE}\" Begin make install"
make install
cd ${LOCAL_DIR}/install_${COMPILE_TYPE}
mv lib64 lib
#mv lib64 lib
if [ $? -ne 0 ]; then
die "[Error] cjson make install failed."
fi

View File

@ -31,5 +31,5 @@ cmake -DCMAKE_INSTALL_PREFIX=$build_dir -D CMAKE_PROJECT_INCLUDE=${current_dir}/
make install -sj
cd ..
mv install_comm/lib64 install_comm/lib
#mv install_comm/lib64 install_comm/lib
cp -r install_comm install_llt

View File

@ -38,7 +38,8 @@ cmake .. -DCMAKE_INSTALL_PREFIX=$(pwd)/install_comm
make -j4
make install
rm -rf install_comm/bin install_comm/lib
rm -rf install_comm/bin
mv install_comm/lib install_comm/lib64
export INSTALL_DIR=${TARGET_PATH}/xgboost
mkdir -p ${INSTALL_DIR}/comm ${INSTALL_DIR}/llt
cp -r install_comm/* ${INSTALL_DIR}/comm

View File

@ -35,7 +35,7 @@ sed -i 's/-std=c99/-std=c99 -Wl,-z,relro,-z,now,-z,noexecstack -fPIC -fstack-pro
sed -i 's/-std=c99/-std=c99 -Wl,-z,relro,-z,now,-z,noexecstack -fPIC -fstack-protector-strong/g' ./lib/CMakeFiles/libzstd_shared.dir/link.txt
make -j4
make install
mv ../../../../install_comm/lib64/libzstd* ../../../../install_comm/lib/
#mv ../../../../install_comm/lib/libzstd* ../../../../install_comm/lib/
INSTALL_DIR=${LOCAL_DIR}/../../output/kernel/dependency/zstd
# copy lib to destination