WSL Issues with salome_cfd_extensions

All questions about installation
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
ldallolio
Posts: 2
Joined: Tue Nov 07, 2017 10:44 am

WSL Issues with salome_cfd_extensions

Post by ldallolio »

Hi,

I am trying to install Code_Saturne 8.2.0 with Salome 9.12.0 under Ubuntu 22.04 WSL (Windows 10) to help the Japanese community.
I started by following the instructions by Cyprien but I am stuck after build and install the salome_cfd_extensions (I used the master branch since I need it for Code_Saturne 8).
I had to separately install omniidl as suggested by Cyprien, it seems to work.
Here are the commands I used to build salome_cfd_extensions (I had to define SALOMEENVCMD to a dummy value to avoid make errors) :

Code: Select all

git clone https://github.com/code-saturne/salome_cfd_extensions.git 
./sbin/bootstrap
$SALOME_ROOT_DIR/salome shell
./configure --with-salome=$SALOME_ROOT_DIR OMNIIDL=/usr/local/bin/omniidl
make SALOMEENVCMD="echo toto"
sudo make install SALOMEENVCMD="echo toto"


configure, make and make install are passing but no salome_cfd script is created in /usr/local/bin

At the end of configure I could see this message :

Code: Select all

Configuration options:
 use debugging code: no
 SALOME KERNEL support: yes
 SALOME GUI support: yes

The package has been configured. Type:
 make
 make install

To generate and install the salome CFD extensions
Attached is the config.log

Any idea, hint would be very welcome! Thanks you very much in advance,
Attachments
config.log
(53.73 KiB) Downloaded 128 times
Yvan Fournier
Posts: 4157
Joined: Mon Feb 20, 2012 3:25 pm

Re: WSL Issues with salome_cfd_extensions

Post by Yvan Fournier »

Hello,

The tutorials by Cyprien are rapidly becoming obsolete, are were done independently of the code_saturne team, so are in no way updated by us. The real install documentation is the one in the code sources, even if it is a bit minimalist.

With newer installs of the salome_cfd_extensions, there is no salome_cfd script anymore, but the code_saturne module should be enabled in the main install of Salome, using the general "salome" launcher. For this, some files are added in the main salome installation directory, as described here: https://github.com/code-saturne/salome_ ... -structure. This requires adding another option to the salome_cfd_extension configure command, for example `--with-env-id=120` (the number indicates in which order scripts loading module environment variables are loaded, and the number in the example seems reasonable in most cases).

Best regards,

Yvan
ldallolio
Posts: 2
Joined: Tue Nov 07, 2017 10:44 am

Re: WSL Issues with salome_cfd_extensions

Post by ldallolio »

Hi Yvan,

Thank you very much for your indications, I will try to stick to the official instructions as much as possible!

All the best,
Post Reply