@@ -501,6 +501,16 @@ validate_parameters
501501# Display configuration
502502show_configuration
503503
504+ case " $DISTRO " in
505+ ubuntu|debian)
506+ LIB_PATH=" lib"
507+ ;;
508+ fedora)
509+ LIB_PATH=" lib64"
510+ ;;
511+ esac
512+
513+
504514if [ $SYSTEM_UPDATE -eq 1 ]; then
505515 echo " System update ......"
506516 case " $PACKAGE_TOOL " in
696706if [ $LIBSSH -eq 1 ]; then
697707 echo " Install libssh ......"
698708 pushd " $SOURCE_DIR "
699- if [ ! -d ${INSTALL_DIR} /lib /cmake/libssh ]; then
709+ if [ ! -d ${INSTALL_DIR} /${LIB_PATH} /cmake/libssh ]; then
700710 git clone -b libssh-0.11.3 --depth=1 https://git.libssh.org/projects/libssh.git
701711 cmake -E make_directory $BUILD_DEPEND_DIR /libssh
702712 pushd $BUILD_DEPEND_DIR /libssh
714724if [ $FREERDP -eq 1 ]; then
715725 echo " Install FreeRDP ......"
716726 pushd " $SOURCE_DIR "
717- if [ ! -d ${INSTALL_DIR} /lib /cmake/FreeRDP3 ]; then
727+ if [ ! -d ${INSTALL_DIR} /${LIB_PATH} /cmake/FreeRDP3 ]; then
718728 git clone -b 3.24.1 --depth=1 https://github.com/FreeRDP/FreeRDP.git
719729 cmake -E make_directory $BUILD_DEPEND_DIR /FreeRDP
720730 pushd $BUILD_DEPEND_DIR /FreeRDP
741751if [ $TIGERVNC -eq 1 ]; then
742752 echo " Install tigervnc ......"
743753 pushd " $SOURCE_DIR "
744- if [ ! -d ${INSTALL_DIR} /lib /cmake/tigervnc ]; then
754+ if [ ! -d ${INSTALL_DIR} /${LIB_PATH} /cmake/tigervnc ]; then
745755 git clone --depth=1 https://github.com/KangLin/tigervnc.git
746756 cmake -E make_directory $BUILD_DEPEND_DIR /tigervnc
747757 pushd $BUILD_DEPEND_DIR /tigervnc
760770if [ $PCAPPLUSPLUS -eq 1 ]; then
761771 echo " Install PcapPlusPlus ......"
762772 pushd " $SOURCE_DIR "
763- if [ ! -d ${INSTALL_DIR} /lib /cmake/pcapplusplus ]; then
773+ if [ ! -d ${INSTALL_DIR} /${LIB_PATH} /cmake/pcapplusplus ]; then
764774 git clone -b v25.05 --depth=1 https://github.com/seladb/PcapPlusPlus.git
765775 cmake -E make_directory $BUILD_DEPEND_DIR /PcapPlusPlus
766776 pushd $BUILD_DEPEND_DIR /PcapPlusPlus
780790if [ $libdatachannel -eq 1 ]; then
781791 echo " Install libdatachannel ......"
782792 pushd " $SOURCE_DIR "
783- if [ ! -d ${INSTALL_DIR} /lib /cmake/LibDataChannel ]; then
793+ if [ ! -d ${INSTALL_DIR} /${LIB_PATH} /cmake/LibDataChannel ]; then
784794 git clone -b v0.17.8 --depth=1 https://github.com/paullouisageneau/libdatachannel.git
785795 cd libdatachannel
786796 git submodule update --init --recursive
799809if [ $QtService -eq 1 ]; then
800810 echo " Install QtService ......"
801811 pushd " $SOURCE_DIR "
802- if [ ! -d ${INSTALL_DIR} /lib /cmake/QtService ]; then
812+ if [ ! -d ${INSTALL_DIR} /${LIB_PATH} /cmake/QtService ]; then
803813 git clone --depth=1 https://github.com/KangLin/qt-solutions.git
804814 cd qt-solutions/qtservice
805815 git submodule update --init --recursive
@@ -841,7 +851,7 @@ if [ $QTERMWIDGET -eq 1 ]; then
841851 cmake --build . --config Release --target install
842852 popd
843853 fi
844- if [ ! -d ${INSTALL_DIR} /lib /cmake/qtermwidget6 ]; then
854+ if [ ! -d ${INSTALL_DIR} /${LIB_PATH} /cmake/qtermwidget6 ]; then
845855 pushd " $SOURCE_DIR "
846856 if [ ! -d qtermwidget ]; then
847857 git clone --depth=1 https://github.com/KangLin/qtermwidget.git
863873if [ $QTKEYCHAIN -eq 1 ]; then
864874 echo " Install QtKeyChain ......"
865875 pushd " $SOURCE_DIR "
866- if [ ! -d ${INSTALL_DIR} /lib /cmake/Qt6Keychain ]; then
876+ if [ ! -d ${INSTALL_DIR} /${LIB_PATH} /cmake/Qt6Keychain ]; then
867877 git clone -b 0.15.0 --depth=1 https://github.com/frankosterfeld/qtkeychain.git
868878 cmake -E make_directory $BUILD_DEPEND_DIR /qtkeychain
869879 pushd $BUILD_DEPEND_DIR /qtkeychain
881891if [ $QFtpServer -eq 1 ]; then
882892 echo " Install QFtpServer ......"
883893 pushd " $SOURCE_DIR "
884- if [ ! -d ${INSTALL_DIR} /lib /cmake/QFtpServerLib/QFtpServerLib ]; then
894+ if [ ! -d ${INSTALL_DIR} /${LIB_PATH} /cmake/QFtpServerLib/QFtpServerLib ]; then
885895 git clone --depth=1 https://github.com/KangLin/QFtpServer.git
886896 cmake -E make_directory $BUILD_DEPEND_DIR /QFtpServer
887897 pushd $BUILD_DEPEND_DIR /QFtpServer
0 commit comments