@@ -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
@@ -566,7 +576,7 @@ if [ $BASE_LIBS -eq 1 ]; then
566576 package_install libavcodec-dev libavformat-dev libresample1-dev libswscale-dev
567577 package_install libx264-dev libx265-dev
568578 # Needed by QtMultimedia
569- # package_install pipewire
579+ package_install pipewire
570580 # Needed by QtMultimedia
571581 # package_install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer*-dev
572582 # Needed by AppImage and FreeRDP
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
@@ -732,7 +742,7 @@ if [ $FREERDP -eq 1 ]; then
732742 # See: https://github.com/FreeRDP/FreeRDP/discussions/11139
733743 # -DWITH_INTERNAL_MD4=ON
734744 cmake --build . --config Release --parallel $( nproc)
735- cmake --build . --config Release --target install
745+ cmake --install . --config Release
736746 popd
737747 fi
738748 popd
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
@@ -751,7 +761,7 @@ if [ $TIGERVNC -eq 1 ]; then
751761 -DBUILD_TESTS=OFF -DBUILD_VIEWER=OFF -DENABLE_NLS=OFF \
752762 -DCMAKE_POLICY_VERSION_MINIMUM=3.5
753763 cmake --build . --config Release --parallel $( nproc)
754- cmake --build . --config Release --target install
764+ cmake --install . --config Release
755765 popd
756766 fi
757767 popd
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
@@ -771,7 +781,7 @@ if [ $PCAPPLUSPLUS -eq 1 ]; then
771781 -DPCAPPP_BUILD_TESTS=OFF \
772782 -DPCAPPP_BUILD_TUTORIALS=OFF
773783 cmake --build . --config Release --parallel $( nproc)
774- cmake --build . --config Release --target install
784+ cmake --install . --config Release
775785 popd
776786 fi
777787 popd
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
@@ -790,7 +800,7 @@ if [ $libdatachannel -eq 1 ]; then
790800 -DCMAKE_VERBOSE_MAKEFILE=${BUILD_VERBOSE} \
791801 -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}
792802 cmake --build . --config Release --parallel $( nproc)
793- cmake --build . --config Release --target install
803+ cmake --install . --config Release
794804 popd
795805 fi
796806 popd
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
@@ -809,7 +819,7 @@ if [ $QtService -eq 1 ]; then
809819 -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
810820 -DCMAKE_VERBOSE_MAKEFILE=${BUILD_VERBOSE}
811821 cmake --build . --config Release --parallel $( nproc)
812- cmake --build . --config Release --target install
822+ cmake --install . --config Release
813823 popd
814824 fi
815825 popd
@@ -838,10 +848,10 @@ if [ $QTERMWIDGET -eq 1 ]; then
838848 -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} \
839849 -DCMAKE_VERBOSE_MAKEFILE=${BUILD_VERBOSE}
840850 cmake --build . --config Release --parallel $( nproc)
841- cmake --build . --config Release --target install
851+ cmake --install . --config Release
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
@@ -854,7 +864,7 @@ if [ $QTERMWIDGET -eq 1 ]; then
854864 -DCMAKE_VERBOSE_MAKEFILE=${BUILD_VERBOSE} \
855865 -Dlxqt2-build-tools_DIR=${INSTALL_DIR} /share/cmake/lxqt2-build-tools
856866 cmake --build . --config Release --parallel $( nproc)
857- cmake --build . --config Release --target install
867+ cmake --install . --config Release
858868 popd
859869 fi
860870 popd
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
@@ -872,7 +882,7 @@ if [ $QTKEYCHAIN -eq 1 ]; then
872882 -DCMAKE_VERBOSE_MAKEFILE=${BUILD_VERBOSE} \
873883 -DBUILD_WITH_QT6:BOOL=ON
874884 cmake --build . --config Release --parallel $( nproc)
875- cmake --build . --config Release --target install
885+ cmake --install . --config Release
876886 popd
877887 fi
878888 popd
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
@@ -890,7 +900,7 @@ if [ $QFtpServer -eq 1 ]; then
890900 -DCMAKE_VERBOSE_MAKEFILE=${BUILD_VERBOSE} \
891901 -DWITH_APP=OFF
892902 cmake --build . --config Release --parallel $( nproc)
893- cmake --build . --config Release --target install
903+ cmake --install . --config Release
894904 popd
895905 fi
896906 popd
0 commit comments