When I try to compile PYHELLO, CMake reports that it can’t find SALOMEBOOTSTRAP.
If I then attempt to compile SALOMEBOOTSTRAP, the configuration step fails because CppUnit is “not found”.
However, compiling CppUnit with SAT says it is “already installed” cmake_1.txt (10.8 KB) cmake.txt (3.3 KB)
PS C:\S> SALOME-master\W64\Python\python.exe SAT/sat compile SALOME-master-windows -p cppunit --clean_all
Executing the compile commands in the build directories of the products of the application SALOME-master-windows
SOURCE directory = C:\S\SALOME-master\SOURCES
BUILD directory = C:\S\SALOME-master\BUILD
Compilation of cppunit … Already installed
PS C:\S> SALOME-master\W64\Python\python.exe SAT/sat compile SALOME-master-windows -p SALOMEBOOTSTRAP --clean_all
Executing the compile commands in the build directories of the products of the application SALOME-master-windows
SOURCE directory = C:\S\SALOME-master\SOURCES
BUILD directory = C:\S\SALOME-master\BUILD
Compilation of SALOMEBOOTSTRAP … KO CONFIGURE
C:\S>SALOME-master\W64\Python\python.exe SAT\sat -o “APPLICATION.properties.git_server=‘github’” compile SALOME-master-windows -p PYHELLO --clean_all
Executing the compile commands in the build directories of the products of the application SALOME-master-windows
SOURCE directory = C:\S\SALOME-master\SOURCES
BUILD directory = C:\S\SALOME-master\BUILD
Frankly speaking, compiling the SALOME master from scratch is a complex, tedious and time-consuming process.
It’s much easier to start with a zip archive that includes all the pre-compiled prerequisites.
This issue needs to be brought to the attention of the SALOME team members. Providing an archive for master and updating it on a weekly basis would make sens.
Basically, I want to know if on Windows we are required to start with this zip file from the official download page SALOME - 9.14.0 - Windows 10 (.zip), because I just want to modify and recompile PYHELLO. Do you have any faster solutions?
I just gave it a try and it’s OK as shown below.
HTH.
c:\S>curl -L "https://github.com/SalomePlatform/.github/wiki/src/scripts/install_bin.bat.txt" --output install_bin.bat
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 10607 100 10607 0 0 67697 0 --:--:-- --:--:-- --:--:-- 199k
c:\S>dir
Le volume dans le lecteur C s’appelle Windows
Le numéro de série du volume est F81C-C8D4
Répertoire de c:\S
21/05/2025 16:12 <DIR> .
21/05/2025 16:12 <DIR> ..
21/05/2025 16:12 10 607 install_bin.bat
29/01/2025 02:29 <DIR> SALOME-9.14.0
31/01/2025 21:07 2 623 054 766 SALOME-9.14.0.zip
2 fichier(s) 2 623 065 373 octets
3 Rép(s) 685 722 390 528 octets libres
c:\S>call install_bin.bat --help
SYNOPSIS: call install_bin.bat
OPTIONS:
--clone-sat : clone SAT and SAT_SALOME, default value set to ...............: false
--sat-tag : SAT tag or branch name, default value set to .................: master
--sat_salome-tag : SAT_SALOME tag or branch name, default value set to...........: master
--application : SAT_SALOME application name, default value set to.............: SALOME-master
--use-tuleap : use Tuleap/git repositories, instead of GitHub ...............: false
--products : products to clone, comma separated............................: CONFIGURATION
--help : this help
c:\S>call install_bin.bat --clone-sat --application SALOME-9.14.0
INFO: patching c:\S\SALOME-9.14.0. Be patient...
INFO: [1/4] replacing "E:\\S\\SAT_SALOME" with "c:\\S\\SAT_SALOME" . Be patient...
INFO: [2/4] replacing "E:\S\SALOME-9.14.0" with "c:\S\SALOME-9.14.0" . Be patient...
INFO: [3/4] replacing "E:\\S\\SALOME-9.14.0" with "c:\\S\\SALOME-9.14.0" . Be patient...
INFO: [4/4] replacing "E:/S/SALOME-9.14.0" with "c:/S/SALOME-9.14.0" . Be patient...
INFO: retrieve the version in use for Sphinx
INFO: installing Sphinx version 3.5.4
Collecting Sphinx==3.5.4
Using cached Sphinx-3.5.4-py3-none-any.whl.metadata (7.9 kB)
Using cached Sphinx-3.5.4-py3-none-any.whl (2.8 MB)
Installing collected packages: Sphinx
Attempting uninstall: Sphinx
Found existing installation: Sphinx 3.5.4
Uninstalling Sphinx-3.5.4:
Successfully uninstalled Sphinx-3.5.4
WARNING: The scripts sphinx-apidoc.exe, sphinx-autogen.exe, sphinx-build.exe and sphinx-quickstart.exe are installed in 'c:\S\SALOME-9.14.0\W64\python\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed Sphinx-3.5.4
[notice] A new release of pip is available: 24.0 -> 25.1.1
[notice] To update, run: c:\S\SALOME-9.14.0\W64\python\python.exe -m pip install --upgrade pip
INFO: getting sources of: CONFIGURATION. Sources will be stored in c:\S\SALOME-9.14.0\SOURCES
Clean the source directories ...OK
Getting sources of the application SALOME-9.14.0-windows
workdir = C:\S\SALOME-9.14.0
CONFIGURATION: GIT:https://github.com/SalomePlatform/configuration.git tag:V9_14_0 .... OK
Getting sources of the application: OK (1 / 1)
Patching sources of the application SALOME-9.14.0-windows
workdir = C:\S\SALOME-9.14.0
Patching sources of the application: OK (1 / 1)
INFO: SALOME-9.14.0 is now ready for developments
INFO: To start developping, edit SALOME-9.14.0-windows.pyconf and fix cmake_generator variable to your compiler.
INFO: Note that currently only Visual C++ 2017 is fully supported. You can use Visual 2019 which should support SALOME modules.
INFO: To compile a SALOME module, e.g. SHAPER, in a CMD terminal, execute the following command lines (for Visual C++ 2017):
INFO: - setup Visual C++ environment
INFO: call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
INFO: - Retrieve SHAPER sources from GitHub or Tuleap repositories and apply patches if any:
INFO: c:\S\SALOME-9.14.0\W64\Python\python.exe SAT\sat prepare SALOME-9.14.0-windows -p SHAPER
INFO: - Compile SHAPER sources with SAT. All build information is saved in directory: c:\S\SALOME-9.14.0\BUILD\SHAPER
INFO: c:\S\SALOME-9.14.0\W64\Python\python.exe SAT\sat compile SALOME-9.14.0-windows -p SHAPER --clean_all
INFO: - In case of errors, check contents of c:\S\SALOME-9.14.0\LOGS\SHAPER
INFO: - Note that you can load the Visual C++ Studio solution directly in Visual Studio from this directory:
INFO: c:\S\SALOME-9.14.0\BUILD\SHAPER
INFO:
INFO: To build SHAPER in RelWithDebInfo which eases the debugging of this module:
INFO: - edit c:\S\SAT_SALOME\appplications\SALOME-9.14.0-windows.pyconf and set cmake_build_type variable accordingly.
INFO:
INFO: SALOME Platform is brought to you since the early 2000s by:
INFO: CEA: https://www.cea.fr and EDF: https://www.edf.fr
INFO:
INFO: Please report any error, improvement or suggestion to:
INFO: - https://discourse.salome-platform.org
INFO: - https://github.com/SalomePlatform
INFO:
c:\S>SALOME-9.14.0\W64\Python\python.exe SAT\sat -o "APPLICATION.properties.git_server='github'" prepare SALOME-9.14.0-windows -p PYHELLO
Clean the source directories ...OK
Getting sources of the application SALOME-9.14.0-windows
workdir = C:\S\SALOME-9.14.0
PYHELLO: GIT:https://github.com/SalomePlatform/pyhello.git tag:V9_14_0 .... OK
Getting sources of the application: OK (1 / 1)
Patching sources of the application SALOME-9.14.0-windows
workdir = C:\S\SALOME-9.14.0
Patching sources of the application: OK (1 / 1)
c:\S>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.9.73
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
c:\S>SALOME-9.14.0\W64\Python\python.exe SAT\sat -o "APPLICATION.properties.git_server='github'" compile SALOME-9.14.0-windows -p PYHELLO --clean_all
Executing the compile commands in the build directories of the products of the application SALOME-9.14.0-windows
SOURCE directory = C:\S\SALOME-9.14.0\SOURCES
BUILD directory = C:\S\SALOME-9.14.0\BUILD
Compilation of PYHELLO ....................... OK
INSTALL directory = C:\S\SALOME-9.14.0\W64\PYHELLO
Compilation: OK (1/1)
c:\S>