Salome HOME
spns #41595: move to Qt 5.15 [Windows] + Fix sip 5.5.0 installation issue if embedded...
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 13 Jun 2024 12:41:54 +0000 (14:41 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Thu, 13 Jun 2024 12:41:54 +0000 (14:41 +0200)
applications/SALOME-master-native.pyconf
applications/SALOME-master-windows.pyconf
products/compil_scripts/qwt-6.1.6.bat [new file with mode: 0644]
products/compil_scripts/sip-5.5.0.sh
products/qwt.pyconf
products/salome_system.pyconf

index 989b3105155cac5c984e202605d5f36ffc1a1282..c0300f2ac5c376e6df57cc2a48092ff649b77ee9 100644 (file)
@@ -221,6 +221,10 @@ __overwrite__ :
         'APPLICATION.products.opencv'           : '3.2.0'
         'APPLICATION.products.cminpack'         : 'native'
         'APPLICATION.products.netcdf'           : '4.6.2'
         'APPLICATION.products.opencv'           : '3.2.0'
         'APPLICATION.products.cminpack'         : 'native'
         'APPLICATION.products.netcdf'           : '4.6.2'
+        'APPLICATION.products.qt'               : '5.15.2'
+        'APPLICATION.products.qwt'              : '6.1.6'
+        'APPLICATION.products.PyQt'             : '5.15.3'
+        'APPLICATION.products.sip'              : '5.5.0'
         'APPLICATION.products.PyFMI'            : {tag: '2.6',    base: 'no', section: 'version_2_6_no_pip'      }
         'APPLICATION.products.scipy'            : {tag: '1.5.2',  base: 'no', section: 'version_1_5_2_no_pip'    } # scipy >= 1.4 - system one too old
         'APPLICATION.products.mdurl'            : {tag: '0.1.2',  base: 'no', section: 'version_0_1_2_no_pip'    }
         'APPLICATION.products.PyFMI'            : {tag: '2.6',    base: 'no', section: 'version_2_6_no_pip'      }
         'APPLICATION.products.scipy'            : {tag: '1.5.2',  base: 'no', section: 'version_1_5_2_no_pip'    } # scipy >= 1.4 - system one too old
         'APPLICATION.products.mdurl'            : {tag: '0.1.2',  base: 'no', section: 'version_0_1_2_no_pip'    }
index 12ed282514f29f9e3fc1eed59ce8c169886a2d62..eab2b27569a3d260b23902fb4c0d09deaae65a8d 100644 (file)
@@ -125,8 +125,8 @@ APPLICATION :
         pyreadline : '3.4.1'
         Python : '3.9.14'
         pytz : '2020.1'
         pyreadline : '3.4.1'
         Python : '3.9.14'
         pytz : '2020.1'
-        qt : '5.12.10'
-        qwt : '6.1.2'
+        qt : '5.15.2'
+        qwt : '6.1.6'
         requests : '2.22.0'
         rich : '13.7.1'
         rkCommon : '1.5.1'
         requests : '2.22.0'
         rich : '13.7.1'
         rkCommon : '1.5.1'
diff --git a/products/compil_scripts/qwt-6.1.6.bat b/products/compil_scripts/qwt-6.1.6.bat
new file mode 100644 (file)
index 0000000..ada27e3
--- /dev/null
@@ -0,0 +1,101 @@
+@echo off
+
+echo ##########################################################################
+echo qwt %VERSION%
+echo ##########################################################################
+
+IF NOT DEFINED SAT_DEBUG (
+  SET SAT_DEBUG=0
+)
+
+if NOT exist "%PRODUCT_INSTALL%" mkdir %PRODUCT_INSTALL%
+
+if exist "%BUILD_DIR%" rmdir /Q /S "%BUILD_DIR%"
+mkdir %BUILD_DIR%
+
+cd %SOURCE_DIR%
+xcopy * %BUILD_DIR% /E /I /Q
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on xcopy
+    exit 1
+)
+cd %BUILD_DIR%
+
+echo.
+echo --------------------------------------------------------------------------
+echo *** prepare qmake
+echo --------------------------------------------------------------------------
+echo.
+
+rem # Remplacement des antislashs par des slashs
+set str=%PRODUCT_INSTALL%
+set str=%str:\=/%
+
+call :GETTEMPNAME
+attrib -R qwtconfig.pri 
+sed "s|\(QWT_INSTALL_PREFIX[[:space:]]*\)=\([[:space:]]*\)\(.*\)|\1=\2%str%|g" < qwtconfig.pri > %tmpfile%
+move /y %tmpfile% qwtconfig.pri
+
+cd designer
+call :GETTEMPNAME
+attrib -R designer.pro 
+sed "s|\(target\.path[[:space:]]*\)=\([[:space:]]*\).*|\1=\2\$\$QWT_INSTALL_PREFIX/plugins/designer|g" < designer.pro > %tmpfile%
+move /y %tmpfile% designer.pro
+cd ..
+
+REM remove debug build only if release build is requested
+if %SAT_DEBUG% == 0 (
+  call :GETTEMPNAME
+  attrib -R qwtbuild.pri
+  sed "s|\(CONFIG[[:space:]]*+=[[:space:]]*debug_and_release\)|#\1|g" < qwtbuild.pri > %tmpfile%
+  move /y %tmpfile% qwtbuild.pri
+  sed "s|\(CONFIG[[:space:]]*+=[[:space:]]*build_all\)|#\1|g" < qwtbuild.pri > %tmpfile%
+  move /y %tmpfile% qwtbuild.pri
+)
+
+echo.
+echo --------------------------------------------------------------------------
+echo *** qmake
+echo --------------------------------------------------------------------------
+echo.
+
+qmake
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on qmake : %ERRORLEVEL%
+    exit 1
+)
+
+echo.
+echo --------------------------------------------------------------------------
+echo *** nmake
+echo --------------------------------------------------------------------------
+echo.
+
+nmake 
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on nmake
+    exit 2
+)
+
+echo.
+echo --------------------------------------------------------------------------
+echo *** nmake install
+echo --------------------------------------------------------------------------
+echo.
+
+nmake install
+if NOT %ERRORLEVEL% == 0 (
+    echo ERROR on nmake install
+    exit 3
+)
+
+echo.
+echo ########## END
+
+:: ========== FUNCTIONS ==========
+exit /B
+
+:GETTEMPNAME
+  set tmpfile=%TMP%\mytempfile-%RANDOM%.tmp
+  if exist "%tmpfile%" GOTO :GETTEMPNAME 
+  exit /B
index 3460a80661519fe461531a99fecccdd0db9285e4..9c658f189e042b91a888bf86551200b26892778f 100755 (executable)
@@ -55,20 +55,24 @@ else
         echo "ERROR on install"
         exit 3
     fi
         echo "ERROR on install"
         exit 3
     fi
-    # ensure that lib is used
-    if [ -d "$PRODUCT_INSTALL/lib64" ]; then
-        echo "WARNING: renaming lib64 directory to lib"
-        mv $PRODUCT_INSTALL/lib64 $PRODUCT_INSTALL/lib
-    elif [ -d "$PRODUCT_INSTALL/local/lib64" ]; then
-        echo "WARNING: renaming local/lib64 directory to lib"
-        mv $PRODUCT_INSTALL/local/lib64 $PRODUCT_INSTALL/lib
-        rm -rf $PRODUCT_INSTALL/local
-    elif [ -d $PRODUCT_INSTALL/lib ]; then
-        :
-    else
-        echo "WARNING: unhandled case! Please ensure that script is consistent!"
-    fi
 fi
 fi
+
+mkdir -p $PRODUCT_INSTALL/lib/python$PYTHON_VERSION
+# ensure that lib is used
+if [ -d "$PRODUCT_INSTALL/lib64" ]; then
+       echo "WARNING: renaming lib64 directory to lib"
+       mv $PRODUCT_INSTALL/lib64/* $PRODUCT_INSTALL/lib/
+       rm -rf $PRODUCT_INSTALL/lib64
+elif [ -d "$PRODUCT_INSTALL/local/lib64" ]; then
+       echo "WARNING: renaming local/lib64 directory to lib"
+       mv $PRODUCT_INSTALL/local/lib64/* $PRODUCT_INSTALL/lib
+       rm -rf $PRODUCT_INSTALL/local
+elif [ -d $PRODUCT_INSTALL/lib ]; then
+       :
+else
+       echo "WARNING: unhandled case! Please ensure that script is consistent!"
+fi
+
 cd $BUILD_DIR
 cp -R $SOURCE_DIR/PyQt5_sip-12.8.1 $BUILD_DIR/PyQt5_sip-12.8.1
 cd $BUILD_DIR/PyQt5_sip-12.8.1
 cd $BUILD_DIR
 cp -R $SOURCE_DIR/PyQt5_sip-12.8.1 $BUILD_DIR/PyQt5_sip-12.8.1
 cd $BUILD_DIR/PyQt5_sip-12.8.1
@@ -100,19 +104,21 @@ else
         echo "ERROR on install"
         exit 3
     fi
         echo "ERROR on install"
         exit 3
     fi
-    # ensure that lib is used
-    if [ -d "$PRODUCT_INSTALL/lib64" ]; then
-        echo "WARNING: renaming lib64 directory to lib"
-        mv $PRODUCT_INSTALL/lib64 $PRODUCT_INSTALL/lib
-    elif [ -d "$PRODUCT_INSTALL/local/lib64" ]; then
-        echo "WARNING: renaming local/lib64 directory to lib"
-        mv $PRODUCT_INSTALL/local/lib64 $PRODUCT_INSTALL/lib
-        rm -rf $PRODUCT_INSTALL/local
-    elif [ -d $PRODUCT_INSTALL/lib ]; then
-        :
-    else
-        echo "WARNING: unhandled case! Please ensure that script is consistent!"
-    fi
+fi
+
+# ensure that lib is used
+if [ -d "$PRODUCT_INSTALL/lib64" ]; then
+       echo "WARNING: renaming lib64 directory to lib"
+       cp -r $PRODUCT_INSTALL/lib64/* $PRODUCT_INSTALL/lib
+       rm -rf $PRODUCT_INSTALL/lib64
+elif [ -d "$PRODUCT_INSTALL/local/lib64" ]; then
+       echo "WARNING: renaming local/lib64 directory to lib"
+       mv $PRODUCT_INSTALL/local/lib64/* $PRODUCT_INSTALL/lib
+       rm -rf $PRODUCT_INSTALL/local
+elif [ -d $PRODUCT_INSTALL/lib ]; then
+       :
+else
+       echo "WARNING: unhandled case! Please ensure that script is consistent!"
 fi
 
 mkdir $PRODUCT_INSTALL/include
 fi
 
 mkdir $PRODUCT_INSTALL/include
index 0bebc186ad453b3932d853e9d34d9cf0f70d0a00..0ae4e5620622eb5d61672b087fcd35e7ae43f6b4 100644 (file)
@@ -75,6 +75,15 @@ version_6_1_6 :
     }
 }
 
     }
 }
 
+version_6_1_6_win :
+{
+    compil_script :  "qwt-6.1.6.bat"
+    archive_info:
+    {
+           archive_name : "qwt-6.1.6.tar.gz"
+    }
+}
+
 version_5_2_1 :
 {
     archive_info:
 version_5_2_1 :
 {
     archive_info:
index 2d589d5a4bc5de4a0dc4b1c91480078362289890..1085c15bf37608c00ee3db44232bec592824d3eb 100644 (file)
@@ -144,7 +144,14 @@ default :
                    "libxml++2.6-2v5", "python3-netcdf4"]
             apt_dev : ["libtbb-dev", "cython3", "libfftw3-dev", "libopenblas-dev",
                        "qttools5-dev", "libqt5svg5-dev", "libqt5x11extras5-dev", "qtxmlpatterns5-dev-tools", "libopenmpi-dev",
                    "libxml++2.6-2v5", "python3-netcdf4"]
             apt_dev : ["libtbb-dev", "cython3", "libfftw3-dev", "libopenblas-dev",
                        "qttools5-dev", "libqt5svg5-dev", "libqt5x11extras5-dev", "qtxmlpatterns5-dev-tools", "libopenmpi-dev",
-                       "libpng-dev", "libtiff5-dev", "libgeotiff-dev", "libjpeg-dev", "libgif-dev", "libgeos-dev", "libsqlite3-dev", "libgdal-dev", "dvipng", "libxml++2.6-dev"]
+                       "libpng-dev", "libtiff5-dev", "libgeotiff-dev", "libjpeg-dev", "libgif-dev", "libgeos-dev", "libsqlite3-dev", "libgdal-dev", "dvipng", "libxml++2.6-dev",
+                       "libxcb1-dev", "libxcb-composite0-dev", "libxcb-cursor-dev", "libxcb-damage0-dev", "libxcb-dpms0-dev",
+                       "libxcb-dri2-0-dev", "libxcb-dri3-dev", "libxcb-glx0-dev", "libxcb-screensaver0-dev", "libxcb-util0-dev",
+                       "libxcb-present-dev", "libxcb-randr0-dev", "libxcb-record0-dev", "libxcb-render0-dev", "libxcb-res0-dev",
+                       "libxcb-shape0-dev", "libxcb-shm0-dev", "libxcb-sync-dev", "libxcb-xf86dri0-dev", "libxcb-xfixes0-dev",
+                       "libxcb-xinerama0-dev", "libxcb-xinput-dev", "libxcb-xkb-dev", "libxcb-xtest0-dev", "libxcb-xv0-dev", "libxcb-xvmc0-dev",
+                       "libxcb-imdkit-dev", "libxcb-image0-dev", "libxcb-keysyms1-dev", "libxcb-render-util0-dev", "libxcb-ewmh-dev",
+                        "libxcb-icccm4-dev", "libxcb-xrm-dev"]
         }
         "UB22.04" :
         {
         }
         "UB22.04" :
         {