Error while compiling SALOME 9.14.0-native on Ubuntu 24.04

I have correct dependencies :
SAT/sat config SALOME-9.14.0-native --check_system

Check the system dependencies declared in the application

  • python3-babel : OK
  • python3-pytest-cython : OK
  • python3-jinja2 : OK
  • python3-pil : OK
  • python3-pyqt5 : OK
  • python3-pyqt5.qtsvg : OK
  • pyqt5-dev : OK
  • pyqt5-dev-tools : OK
  • python3-pygments : OK
  • python3-sphinx : OK
  • python3-alabaster : OK
  • libboost-all-dev : OK
  • python3-certifi : OK
  • python3-cftime : OK
  • python3-chardet : OK
  • python3-click : OK
  • cmake : OK
  • libcminpack1 : OK
  • libcminpack-dev : OK
  • libcppunit-dev : OK
  • python3-cycler : OK
  • python3-dateutil : OK
  • python3-docutils : OK
  • doxygen : OK
  • libeigen3-dev : OK
  • fftw : OK
  • fftw-dev : OK
  • libfreeimage3 : OK
  • libfreeimage-dev : OK
  • graphviz : OK
  • libgraphviz-dev : OK
  • python3-h5py : OK
  • python3-idna : OK
  • python3-imagesize : OK
  • python3-kiwisolver : OK
  • liblapack3 : OK
  • liblapacke : OK
  • liblapack-dev : OK
  • liblapacke-dev : OK
  • libxml2 : OK
  • libxml2-dev : OK
  • clang : OK
  • llvm-dev : OK
  • python3-markdown-it : OK
  • python3-markupsafe : OK
  • python3-matplotlib : OK
  • python3-mdurl : OK
  • libmetis5 : OK
  • libmetis-dev : OK
  • python3-mpi4py : OK
  • python3-netcdf4 : OK
  • libnlopt0 : OK
  • libnlopt-cxx0 : OK
  • python3-nlopt : OK
  • libnlopt-dev : OK
  • libnlopt-cxx-dev : OK
  • python3-nose : OK
  • python3-numpy : OK
  • python3-numpydoc : OK
  • python3-packaging : OK
  • python3-pandas : OK
  • python3-patsy : OK
  • python3-patsy : OK
  • python3-psutil : OK
  • python3-pyparsing : OK
  • readline-common : OK
  • python3-pytest : OK
  • python3-tz : OK
  • python3-yaml : OK
  • libqwt-qt5-6 : OK
  • libqwt-qt5-dev : OK
  • python3-requests : OK
  • python3-rich : OK
  • libbsd0 : OK
  • libbz2-1.0 : OK
  • libc6 : OK
  • libdrm2 : OK
  • libegl1 : OK
  • libexif12 : OK
  • libexpat1 : OK
  • libfftw3-double3 : OK
  • libfontconfig1 : OK
  • libgl1 : OK
  • libglu1-mesa : OK
  • libgomp1 : OK
  • libgphoto2-6 : OK
  • libice6 : OK
  • libjbig0 : OK
  • libltdl7 : OK
  • liblzma5 : OK
  • libnuma1 : OK
  • libpcre3 : OK
  • libquadmath0 : OK
  • libraw1394-11 : OK
  • libsm6 : OK
  • libstdc++6 : OK
  • libtiff5 : OK
  • libudev1 : OK
  • libusb-1.0-0 : OK
  • libuuid1 : OK
  • libx11-6 : OK
  • libx11-xcb1 : OK
  • libxau6 : OK
  • libxcb1 : OK
  • libxcb-glx0 : OK
  • libxcb-xfixes0 : OK
  • libxcb-xkb1 : OK
  • libxdmcp6 : OK
  • libxext6 : OK
  • libxft2 : OK
  • libxi6 : OK
  • libxkbcommon0 : OK
  • libxkbcommon-x11-0 : OK
  • libxmu6 : OK
  • libxpm4 : OK
  • libxrender1 : OK
  • libxss1 : OK
  • libxt6 : OK
  • zlib1g : OK
  • libsqlite3 : OK
  • libdc1394-25 : OK
  • libopenexr-3-1-30 : OK
  • libwebp7 : OK
  • gfortran-13 : OK
  • libevent-2.1-7 : OK
  • libpng16-16 : OK
  • libgcc-13-dev : OK
  • libncurses6 : OK
  • libffi8 : OK
  • libtinfo6 : OK
  • libgphoto2-port12 : OK
  • libglx0 : OK
  • libopengl0 : OK
  • libzstd1 : OK
  • libglvnd0 : OK
  • openmpi-bin : OK
  • libgdal34t64 : OK
  • libopenblas0-serial : OK
  • libtbb12 : OK
  • libxml++2.6-2v5 : OK
  • libfreetype6 : OK
  • libssl-dev : OK
  • gcc : OK
  • make : OK
  • sed : OK
  • g++ : OK
  • libexpat1-dev : OK
  • libfontconfig1-dev : OK
  • flex : OK
  • bison : OK
  • libglu1-mesa-dev : OK
  • perl : OK
  • libxcb-dri2-0-dev : OK
  • libxkbcommon-dev : OK
  • libxkbcommon-x11-dev : OK
  • bzip2 : OK
  • libxi-dev : OK
  • libxt-dev : OK
  • libxmu-dev : OK
  • libxpm-dev : OK
  • libxft-dev : OK
  • automake : OK
  • libtool : OK
  • libjpeg-dev : OK
  • cmake : OK
  • libicu-dev : OK
  • libopenmpi-dev : OK
  • libreadline-dev : OK
  • libhwloc-dev : OK
  • libsqlite3-dev : OK
  • libcurl4-openssl-dev : OK
  • libxcursor-dev : OK
  • libtbb-dev : OK
  • cython3 : OK
  • libfftw3-dev : OK
  • libopenblas-dev : OK
  • qttools5-dev : OK
  • libqt5svg5-dev : OK
  • libqt5x11extras5-dev : OK
  • qtxmlpatterns5-dev-tools : OK
  • libpng-dev : OK
  • libtiff5-dev : OK
  • libgeotiff-dev : OK
  • libgif-dev : OK
  • libgeos-dev : OK
  • libgdal-dev : OK
  • dvipng : OK
  • libxml++2.6-dev : OK
  • libfreetype-dev : OK
  • libgmp-dev : OK
  • libmpfr-dev : OK
  • libxinerama-dev : OK
  • python3-scipy : OK
  • python3-setuptools : OK
  • python3-sip : OK
  • python3-sip-dev : OK
  • python3-six : OK
  • python3-stemmer : OK
  • python3-sphinx-rtd-theme : OK
  • python3-sphinxcontrib.websupport : OK
  • sphinx-intl : OK
  • python3-statsmodels : OK
  • python3-statsmodels : OK
  • libtcl : OK
  • tcl-dev : OK
  • libtk : OK
  • tk-dev : OK
  • python3-toml : OK
  • python3-urllib3 : OK

either install prerequisites I mentioned or share the Log files.

Here the logs of openturn.
script.log (514.2 KB)

At first glance in the shared log file, it seems you’re missing fftw. Install: fftw-dev libfftw3-dev and libfftw3-bin via apt tool, then run:

SAT/sat compile SALOME-9.14.0-native -p openturns --clean_all

to check that it compiles well. Let us know if this helps.

Note that you can also edit the compilation script and switch off this Openturns module. But better install the prerequisite.

Now it’s Paraview that doesn’t compile. Here’s the log.
script.log (78.2 KB)

Please, ensure that system prerequisites mentioned in this thread and its attached file :

are installed and compile again. If it still does not compile share your CMakeCache.txt file as well as the log file. CMakeCache.txt file can be found in BUILD/Paraview directory.

Here the error points to either qtxmlpattern not installed or several installations.

Regards.

script.log (1.5 MB)
CMakeCache.txt (254.1 KB)
I still can’t get ParaView to compile. :cry:

Did you install all prerequisites listed in file ub24-system.txt ?
Here, the comparison of the two CMakeCache.txt files shows that libx11-xcb-dev libx11-xcb1 libxtst-dev libxtst6 libxcb-render0-dev libxcb-render0 libxcb-shape0-dev libxcb-shape0 libxcb-shm0-dev libxcb-shm0 libxcb-xfixes0-dev libxcb-xfixes0 are not installed.
Install these packages and if it still fails, share again CMakeCache.txt file, log file and UB24.txt, output of: apt list --installed &> UB24.txt
regards.

You have a CMake error in the output file at line 496.

Failed to convert servermanager XML: xmlpatterns: could not find a Qt installation of ‘’

I see that, supposedly, you have the required qt packages installed.

I suggest removing the ParaView build directory and try building it again.

yes, ensure that you run:

SAT/sat -o "APPLICATION.properties.git_server='github'" compile SALOME-9.14.0-native -p ParaView --clean_all

if it does not work, share mentioned files. if it works, then resume compilation with:

# clean BUILD directory
rm -rf SALOME-9.14.0-native-UB24.04/BUILD
# resume compilation
SAT/sat -o "APPLICATION.properties.git_server='github'" compile SALOME-9.14.0-native

script.log (1.5 MB)
CMakeCache.txt (254.1 KB)
Unfortunately this doesn’t work !

Here is the result of : list --installed &> UB24.txt
UB24.txt (220.5 KB)

I can see that you’re still missing some additional packages. Please install them with apt tool and let us know if it still fails …

ub24-additional-packages.txt (1.6 KB)

I have error messages when installing the python3-future package.
Is this package essential:
sudo apt reinstall python3-future
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Need to get 342 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 fr.archive.ubuntu.com / ubuntu.lafibre.info noble/universe amd64 python3-future all 0.18.2-6ubuntu2 [342 kB]
Fetched 342 kB in 5s (65,2 kB/s)
(Legado de datumbazo … 404915 dosieroj kaj dosierujoj aktuale instalitaj.)
Preparado por anstataŭigi …/python3-future_0.18.2-6ubuntu2_all.deb …
Elpakado de python3-future (0.18.2-6ubuntu2) sur (0.18.2-6ubuntu2) …
Ni alĝustigas python3-future (0.18.2-6ubuntu2) …
/usr/lib/python3/dist-packages/future/backports/email/_header_value_parser.py:662: SyntaxWarning: invalid escape sequence ‘(’
‘(’, ‘(’).replace(
/usr/lib/python3/dist-packages/future/backports/email/_header_value_parser.py:663: SyntaxWarning: invalid escape sequence ‘)’
‘)’, ‘)’)
/usr/lib/python3/dist-packages/future/backports/email/_header_value_parser.py:1349: SyntaxWarning: invalid escape sequence ‘]’
‘’.join(ATOM_ENDS).replace(‘\’,‘\\’).replace(‘]’,‘]’))).match
/usr/lib/python3/dist-packages/future/backports/email/_header_value_parser.py:1352: SyntaxWarning: invalid escape sequence ‘]’
‘’.join(TOKEN_ENDS).replace(‘\’,‘\\’).replace(‘]’,‘]’))).match
/usr/lib/python3/dist-packages/future/backports/email/_header_value_parser.py:1354: SyntaxWarning: invalid escape sequence ‘]’
‘’.join(ATTRIBUTE_ENDS).replace(‘\’,‘\\’).replace(‘]’,‘]’))).match
/usr/lib/python3/dist-packages/future/backports/email/_header_value_parser.py:1357: SyntaxWarning: invalid escape sequence ‘]’
‘\’,‘\\’).replace(‘]’,‘]’))).match
/usr/lib/python3/dist-packages/future/backports/email/header_value_parser.py:1541: SyntaxWarning: invalid escape sequence ‘\ ’
“”"ctext = <printable ascii except \ ( )>
/usr/lib/python3/dist-packages/future/backports/email/header_value_parser.py:1876: SyntaxWarning: invalid escape sequence ‘\ ’
“”" dtext = <printable ascii except \ [ ]> / obs-dtext
/usr/lib/python3/dist-packages/future/backports/email/feedparser.py:37: SyntaxWarning: invalid escape sequence ‘\Z’
NLCRE_eol = re.compile(’(\r\n|\r|\n)\Z’)
/usr/lib/python3/dist-packages/future/backports/email/utils.py:68: SyntaxWarning: invalid escape sequence ‘\A’
‘([^\ud800-\udbff]|\A)\udc00-\udfff’).search
/usr/lib/python3/dist-packages/future/backports/html/parser.py:31: SyntaxWarning: invalid escape sequence ‘\s’
tagfind = re.compile('([a-zA-Z][-.a-zA-Z0-9:
])(?:\s|/(?!>))’)
/usr/lib/python3/dist-packages/future/backports/html/parser.py:79: SyntaxWarning: invalid escape sequence ‘\s’
endtagfind = re.compile('</\s*([a-zA-Z][-.a-zA-Z0-9:
])\s>‘)
/usr/lib/python3/dist-packages/future/backports/http/client.py:1: SyntaxWarning: invalid escape sequence ‘_’
“”“HTTP/1.1 client library
/usr/lib/python3/dist-packages/future/backports/http/cookiejar.py:212: SyntaxWarning: invalid escape sequence ‘\d’
“(\d\d\d\d) (\d\d):(\d\d):(\d\d) GMT$”, re.ASCII)
/usr/lib/python3/dist-packages/future/backports/http/cookiejar.py:293: SyntaxWarning: invalid escape sequence ‘\d’
“””^
/usr/lib/python3/dist-packages/future/backports/http/cookiejar.py:429: SyntaxWarning: invalid escape sequence ‘\s’
non_junk, nr_junk_chars = re.subn("[1]", “”, text)
/usr/lib/python3/dist-packages/future/backports/test/support.py:1977: SyntaxWarning: invalid escape sequence ‘\d’
m = re.match(“2.6.(\d{1,2})”, kernel_version)
/usr/lib/python3/dist-packages/future/backports/urllib/parse.py:957: SyntaxWarning: invalid escape sequence ‘?’
_queryprog = re.compile('^(.
)?([^?]*)$’)
/usr/lib/python3/dist-packages/past/types/oldstr.py:23: SyntaxWarning: invalid escape sequence ‘\d’
“”"


  1. =\s; ↩︎

I believe you can forget about this package added when comparing your list to my installation. This package is aimed to ensure compatibility between python2 and python3.

ParaView compilation still not working:
SAT/sat -o “APPLICATION.properties.git_server=‘github’” compile SALOME-9.14.0-native -p ParaView --clean_all
Executing the compile commands in the build directories of the products of the application SALOME-9.14.0-native
SOURCE directory = /home/serge/salome/SALOME-9.14.0-native-UB24.04/SOURCES
BUILD directory = /home/serge/salome/SALOME-9.14.0-native-UB24.04/BUILD

Compilation of ParaView … KO

Compilation: KO (0/1)
script.log (1.5 MB)
CMakeCache.txt (254.1 KB)

Basically, this command is problematic:

In your case, you need to check why this command is failing:

/usr/bin/xmlpatterns /home/serge/salome/SALOME-9.14.0-native-UB24.04/SOURCES/ParaView/CMake/paraview_servermanager_convert_xml.xsl home/serge/salome/SALOME-9.14.0-native-UB24.04/SOURCES/ParaView/Plugins/AcceleratedAlgorithms/AcceleratedAlgorithms.xml

you can run it as command line to check the output message if any.

You can also instrument the code by adding messages like in file: SALOME-9.14.0-native-UB24.04/SOURCES/ParaView/CMake/ParaViewClient.cmake (Line 585):


  foreach (_paraview_gpd_xml IN LISTS xmls)
    message(STATUS "CHECK: ==================")
    message(STATUS "CHECK: executing command: ${xmlpatterns} ${_paraview_gpd_to_xml} ${_paraview_gpd_xml}")
    execute_process(
      COMMAND "${xmlpatterns}"
              "${_paraview_gpd_to_xml}"
              "${_paraview_gpd_xml}"
      OUTPUT_VARIABLE _paraview_gpd_output
      ERROR_VARIABLE  _paraview_gpd_error
      RESULT_VARIABLE _paraview_gpd_result)
    message(STATUS "CHECK: xmlpatterns          = ${xmlpatterns}")
    message(STATUS "CHECK: _paraview_gpd_to_xml = ${_paraview_gpd_to_xml}")
    message(STATUS "CHECK: _paraview_gpd_xml    = ${_paraview_gpd_xml}")
    message(STATUS "CHECK: _paraview_gpd_output = ${_paraview_gpd_output}")
    message(STATUS "CHECK: _paraview_gpd_error   = ${_paraview_gpd_error}")
    message(STATUS "CHECK: _paraview_gpd_result  = ${_paraview_gpd_result}")

and share the output.
You can still disable this plugin, but this is not a suitable solution.

The result :
cd /home/serge/salome/SALOME-9.14.0-native-UB24.04/BUILD/ParaView/Plugins/AcceleratedAlgorithms/paraview_help && /usr/bin/cmake -Dxmlpatterns=/usr/bin/xmlpatterns -Doutput_dir=/home/serge/salome/SALOME-9.14.0-native-UB24.04/BUILD/ParaView/Plugins/AcceleratedAlgorithms/paraview_help -Doutput_file=/home/serge/salome/SALOME-9.14.0-native-UB24.04/BUILD/ParaView/Plugins/AcceleratedAlgorithms/paraview_help/AcceleratedAlgorithms_doc.xslt -Dxmls_file=/home/serge/salome/SALOME-9.14.0-native-UB24.04/BUILD/ParaView/Plugins/AcceleratedAlgorithms/CMakeFiles/AcceleratedAlgorithms_doc-xmls.txt -D_paraview_generate_proxy_documentation_run=ON -P /home/serge/salome/SALOME-9.14.0-native-UB24.04/SOURCES/ParaView/CMake/ParaViewClient.cmake
– CHECK: ==================
– CHECK: executing command: /usr/bin/xmlpatterns /home/serge/salome/SALOME-9.14.0-native-UB24.04/SOURCES/ParaView/CMake/paraview_servermanager_convert_xml.xsl /home/serge/salome/SALOME-9.14.0-native-UB24.04/SOURCES/ParaView/Plugins/AcceleratedAlgorithms/AcceleratedAlgorithms.xml
– CHECK: xmlpatterns = /usr/bin/xmlpatterns
– CHECK: _paraview_gpd_to_xml = /home/serge/salome/SALOME-9.14.0-native-UB24.04/SOURCES/ParaView/CMake/paraview_servermanager_convert_xml.xsl
– CHECK: _paraview_gpd_xml = /home/serge/salome/SALOME-9.14.0-native-UB24.04/SOURCES/ParaView/Plugins/AcceleratedAlgorithms/AcceleratedAlgorithms.xml
– CHECK: _paraview_gpd_output =
– CHECK: _paraview_gpd_error = xmlpatterns: could not find a Qt installation of ‘’

– CHECK: _paraview_gpd_result = 1
CMake Error at /home/serge/salome/SALOME-9.14.0-native-UB24.04/SOURCES/ParaView/CMake/ParaViewClient.cmake:600 (message):
Failed to convert servermanager XML: xmlpatterns: could not find a Qt
installation of ‘’

script.log (1.5 MB)

xmlpatterns don’t work :
serge@xps:~/salome$ xmlpatterns
xmlpatterns: could not find a Qt installation of ‘’

Hard de to guess. There is some inconsistency in your installation.
/usr/bin/xmlpatterns is nothing more than a link to /usr/bin/qtchooser
and you can “force” qtchooser to target qt5, by setting the environment variable QT_SELECT
You can try the following to check if it helps:

# following variable tells /usr/bin/qtchooser which version of qt to run
export QT_SELECT=qt5
xmlpatterns --help
rm -rf SALOME-9.14.0-native-UB24.04/BUILD/ParaView
SAT/sat -o "APPLICATION.properties.git_server='github'" compile SALOME-9.14.0-native -p ParaView --clean_all

if it fails, maybe someone else has some hints.

Below:
available Qt versions supported by qtchooser can be listed with
qtchooser -list-versions

In my case, I have:

/home/salome > qtchooser -list-versions
4
5
default
qt4-x86_64-linux-gnu
qt4
qt5-x86_64-linux-gnu
qt5
/home/salome > export QT_SELECT=qt5
/home/salome > xmlpatterns -version
xmlpatterns version 0.1 using Qt 5.15.13