# 编译文件夹
projectPath="/home/southgnss/jenkins_data/workspace/Laser_Scanner_Stell/arm/old/LaserScannerStell_V2.0/LaserScannerStell.pro"
buildPath="/home/southgnss/jenkins_data/workspace/Laser_Scanner_Stell/arm/old/Build"
outFilePath="/home/southgnss/jenkins_data/workspace/Laser_Scanner_Stell/arm/old/"
# build-LaserScannerStell-zynqMP-Release"
qmakeFile="/work/Qt5.9.2/zynqmp_qt5.9.2/bin/qmake"
echo ++++++++++++++++++ Clear Build ++++++++++++++++++
# 判断编译的文件夹是否存在
if [ -d "$buildPath" ]; then
rm $buildPath -r
echo "rm $buildPath* ok!" # 存在
fi
mkdir $buildPath
echo "<1.> mkdir $buildPath ok!" # 不存在
# 判断编译的文件夹是否存在
if [ -d "$outFilePath" ]; then
#rm $outFilePath -r
echo "rm $outFilePath* ok!" # 存在
fi
echo ++++++++++++++++++ Start Build ++++++++++++++++++
### 编译程序
export PATH=$PATH:/usr/local/arm/7.3.1/bin/
echo "<2.> "export PATH=$PATH:/usr/local/arm/7.3.1/bin/
### qmake 编译
$qmakeFile $projectPath -spec aarch64-linux-gnu-g++ -o $buildPath/Makefile
echo "<3.> "$qmakeFile $projectPath -spec aarch64-linux-gnu-g++ -o $buildPath/Makefile
### make file
make --directory=$buildPath/ -j$(nproc)
echo "<4.> "make --directory=$buildPath/ -j$(nproc)
echo ++++++++++++++++++ End Build ++++++++++++++++++
sync
Qmake 编译
最新推荐文章于 2024-08-23 20:35:15 发布