How to build Shaper in Window 11


I’m new to Salome. I tried to get Shaper project and build it in Window 11. It sounds to me that I should be able to do it by run “build_Salome_rel.bat” or “build_Salome_deb.bat”. However, neither of them worked.

Then I took a quick look at “build_Salome_rel.bat”:

REM Find absolute path to ROOT_DIR
pushd %PARENT_DIR%


call %SRC_DIR%\env_Salome.bat

Basically I could not find the “sources” folder in Salome, neither “env_Salome.bat”.
Did I miss anything? In order to setup the development environment for the shaper project, what else need to be downloaded?

Thanks in advance for your inputs.

Best regards!

better proceed as follows (not tried on Windows 11 - so we welcome feedback):


  • git installed and in you PATH
  • visual studio 2017 community edition installed


  • start a cmd terminal and create a directory, say: C:\S

  • in a directory, e.g. C:\S, extract SALOME 9.9,

  • copy the attached Batch script SALOMEConfigTool.bat to C:\S

  • run the script as follows :
    call SALOMEConfigTool.bat --application SALOME-9.9.0

  • in SAT, apply the attached patch sat_system.patch aimed to use rmdir

  • setup Visual studio environment by typing:
    call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64

  • clone the SHAPER and CONFIGURATION modules as follows:

cd C:\S
SALOME-9.9.0\W64\Python\python.exe SAT\sat prepare SALOME-9.9.0 -p SHAPER,CONFIGURATION
  • compile SHAPER with the following command line:
cd C:\S
SALOME-9.9.0\W64\Python\python.exe SAT\sat compile SALOME-9.9.0 -p SHAPER,CONFIGURATION --clean_all

Attached the batch script and the patch to be applied to SAT:

SALOMEConfigTool.bat.txt (6.6 KB)

sat_system.patch.txt (1.2 KB)

Nabil, Thank you very much for your information. I could proceed these steps successfully until the last one. I failed to compile shaper with following error message:
D:\Salome>SALOME-9.9.0\W64\Python\python.exe SAT\sat compile SALOME-9.9.0 -p SHAPER,CONFIGURATION --clean_all
Executing the compile commands in the build directories of the products of the application SALOME-9.9.0
SOURCE directory = D:\Salome\SALOME-9.9.0\SOURCES
BUILD directory = D:\Salome\SALOME-9.9.0\BUILD

Compilation of CONFIGURATION … ignored
Compilation of SHAPER … ERROR : the following mandatory product(s) is(are) not installed: Sphinx

It sounds like that Sphinx is not installed. Should I install it previously?


for that release, you need to run:

SALOME-9.9.0\W64\Python\python.exe SAT\sat compile SALOME-9.9.0 -p Sphinx

followed by:

SALOME-9.9.0\W64\Python\python.exe SAT\sat compile SALOME-9.9.0 -p SHAPER --clean_all