|
@@ -31,7 +31,25 @@ fi
|
|
QtPlatformdir=$Qtgccdir/plugins/platforms
|
|
QtPlatformdir=$Qtgccdir/plugins/platforms
|
|
QtLibDir=$Qtgccdir/lib
|
|
QtLibDir=$Qtgccdir/lib
|
|
|
|
|
|
-export LD_LIBRARY_PATH=./thirdpartylib/FastRTPS/lib/libarm64:$LD_LIBRARY_PATH
|
|
|
|
|
|
+RTPSLIBDIR=`pwd`/thirdpartylib/FastRTPS/lib/libamd64
|
|
|
|
+RTPSLIBARMDIR=`pwd`/thirdpartylib/FastRTPS/lib/libarm64
|
|
|
|
+
|
|
|
|
+echo $RTPSLIBDIR
|
|
|
|
+
|
|
|
|
+new_export="export LD_LIBRARY_PATH=$RTPSLIBDIR:\$LD_LIBRARY_PATH"
|
|
|
|
+new_export2="export LD_LIBRARY_PATH=$RTPSLIBARMDIR:\$LD_LIBRARY_PATH"
|
|
|
|
+
|
|
|
|
+reg_str="^\s*export\s*LD_LIBRARY_PATH=$RTPSLIBDIR:\$LD_LIBRARY_PATH"
|
|
|
|
+
|
|
|
|
+if grep -q $reg_str ~/.bashrc
|
|
|
|
+then
|
|
|
|
+echo $RTPSLIBDIR exists in LD_LIBRARAY_PATH
|
|
|
|
+else
|
|
|
|
+ echo define LD_LIBRARY_PATH
|
|
|
|
+ echo $new_export >> ~/.bashrc
|
|
|
|
+ echo $new_export2 >> ~/.bashrc
|
|
|
|
+ echo Please source .bashrc
|
|
|
|
+fi
|
|
|
|
|
|
if [ "$#" -lt 1 ]; then
|
|
if [ "$#" -lt 1 ]; then
|
|
echo "没有输入"
|
|
echo "没有输入"
|