|
[Sponsors] |
March 23, 2020, 14:48 |
recompiling solver issue with wmake
|
#1 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9 |
Hi FOAMers!
I am trying to recompile a solver in OF6 on Ubuntu 18.04, specifically interFoam.C. This file is located here: /opt/openfoam6/applications/solvers/multiphase/interFoam Now after editing I execute "wclean" and have no issues. When I execute "wmake" I get the error Code:
mkdir: cannot create directory ‘/opt/openfoam6/platforms/linux64GccDPInt32Opt/applications’: Permission denied /bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/interFoam/options: Directory nonexistent make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/interFoam/options'. Stop. /bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/interFoam/options: Directory nonexistent make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/interFoam/options', needed by 'all'. Stop. wmake error: file '/opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/interFoam/sourceFiles' could not be created in /opt/openfoam6/applications/solvers/multiphase/interFoam Code:
Allwmake /opt/openfoam6 make: Nothing to be done for 'all'. Allwmake: no ThirdParty directory found - skipping Allwmake src no git description found Allwmake src/Pstream wmake dummy mkdir: cannot create directory ‘/opt/openfoam6/platforms/linux64GccDPInt32Opt/src’: Permission denied /bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options: Directory nonexistent make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options'. Stop. /bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options: Directory nonexistent make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options', needed by 'all'. Stop. wmake error: file '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/sourceFiles' could not be created in /opt/openfoam6/src/Pstream/dummy |
|
March 23, 2020, 17:37 |
|
#2 |
Senior Member
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17 |
Hello!
You need to change the premission to be able to add/modifi files in the folder. The most easy but "dirty" way is to change the permission for the whole folder - Go to root folder - Type: sudo chmod -R 777 /opt/openfoam6/ - Give the password - If that did not works then try: sudo chmod -R 777 /opt/ Regards Peter |
|
March 23, 2020, 17:46 |
|
#3 | |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9 |
Quote:
Also, in opt/openfoam6 when I run ./Allmake I get the error Code:
Allwmake /opt/openfoam6 make: Nothing to be done for 'all'. Allwmake: no ThirdParty directory found - skipping Allwmake src no git description found Allwmake src/Pstream wmake dummy mkdir: cannot create directory ‘/opt/openfoam6/platforms/linux64GccDPInt32Opt/src’: Permission denied /bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options: Directory nonexistent make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options'. Stop. /bin/sh: 1: cannot create /opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options: Directory nonexistent make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/options', needed by 'all'. Stop. wmake error: file '/opt/openfoam6/platforms/linux64GccDPInt32Opt/src/Pstream/dummy/sourceFiles' could not be created in /opt/openfoam6/src/Pstream/dummy |
||
March 23, 2020, 18:29 |
|
#4 | |
Senior Member
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17 |
Quote:
Type: cd .. You are now in root! Regards Peter |
||
March 24, 2020, 12:03 |
|
#5 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9 |
||
May 19, 2020, 21:32 |
|
#6 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9 |
Hey Peter
I copied /opt/openfoam6/applications/solvers/multiphase/interFoam and called it bfInterFoam. Then I edited bfInterFoam/Make/files to match the name bfInterFoam. From here, I went into /opt/openfoam6/applications/solvers/multiphase/bfInterFoam and executed wclean (no errors) and then wmake, to which I get Code:
make: *** No rule to make target '/opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/bfInterFoam/bfInterFoam.C.dep', needed by '/opt/openfoam6/platforms/linux64GccDPInt32Opt/applications/solvers/multiphase/bfInterFoam/bfInterFoam.o'. Stop. EDIT: nevermind, the error was I forgot to change the name of the .C file. can't believe this! |
|
May 20, 2020, 04:51 |
|
#7 |
Senior Member
Peter Hess
Join Date: Apr 2011
Location: Austria
Posts: 250
Rep Power: 17 |
Hallo!
The best road map für doing this is to follow the tutorial: https://openfoamwiki.net/index.php/H...ure_to_icoFoam I can not answer the question directly, cause it is a while since I made thoe changes... Regards Peter |
|
May 20, 2020, 17:21 |
|
#8 |
Member
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15 |
I had a similar issue some time ago, I was compiling a new solver and it just didn't work, but after changing:
EXE = $(FOAM_APPBIN)/interFoam by EXE = $(FOAM_USER_APPBIN)/interFoam it worked. Just go to your Make folder and change it in the file "files". Hope it works! |
|
May 20, 2020, 17:42 |
|
#9 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 9 |
Thanks for the reply! I think I should have made my edit bigger, but the issue was the .C was not capitalized
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wmake compiling new solver | mksca | OpenFOAM Programming & Development | 14 | June 22, 2018 07:29 |
[OpenFOAM.org] Errors compiling OpenFOAM-5.0 | renardf | OpenFOAM Installation | 1 | January 12, 2018 09:35 |
[OpenFOAM.org] wmake problem | vville | OpenFOAM Installation | 1 | October 8, 2015 06:01 |
Patches for OpenFOAM 1.7 on MacOS X | gschaider | OpenFOAM Installation | 101 | September 21, 2011 06:37 |
Regarding FoamX running Kindly help out | hariya03 | OpenFOAM Pre-Processing | 0 | April 18, 2008 05:26 |