CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (https://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   Can not compile user made solver using wmake (https://www.cfd-online.com/Forums/openfoam-bugs/233873-can-not-compile-user-made-solver-using-wmake.html)

mw4617 February 15, 2021 10:50

Can not compile user made solver using wmake
 
I'm trying to edit pimpleFoam application in a specific way that has already been done by a user. Trouble is that steps for compilation where not mentioned by the user and I can not compile myself, I get the following error:

mkdir: cannot create directory ‘/opt/openfoam8/platforms/linux64GccDPInt32Opt/applications’: Permission denied
/bin/sh: 1: cannot create /opt/openfoam8/platforms/linux64GccDPInt32Opt/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam/options: Directory nonexistent
make: *** No rule to make target '/opt/openfoam8/platforms/linux64GccDPInt32Opt/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam/options'. Stop.
/bin/sh: 1: cannot create /opt/openfoam8/platforms/linux64GccDPInt32Opt/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam/options: Directory nonexistent
make: *** No rule to make target '/opt/openfoam8/platforms/linux64GccDPInt32Opt/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam/options', needed by 'all'. Stop.
wmake error: file '/opt/openfoam8/platforms/linux64GccDPInt32Opt/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam/sourceFiles' could not be created in /opt/openfoam8/applications/solvers/incompressible/EHDpimpleFoam/SRFPimpleFoam

I've seen the thread (https://bugs.openfoam.org/view.php?id=927) by wyldcat on how to resolve this issue, but this does not seem to fix it for me. Not sure if I'm making a mistake somewhere or if in my case it is not sufficient


The EHDpimpleFoam/Make/files is:

EHDpimpleFoam.C

LIB = $(FOAM_USER_LIBBIN)/EHDpimpleFoam

The EHDpimpleFoam/Make/files is of the format:

EXE_INC = \

list of libaries - copied from pimplefoam

LIB_LIBS = \

list of libraries - copied from pimpleFoam

if I change the first EXE_INC to LIB_EXE I get the same error.

I've edited the MAKE in the SRFPimpleFoam subdirectory of EHDpimpleFoam to be the same.

mw4617 February 26, 2021 11:57

Issue Solved
 
I used a different pc with a openfoam version 6 instead of 8 and I did not have this issue, anymore. Additionally instead of LIB = $(FOAM_USER_LIBBIN)/EHDpimpleFoam I used EXE= $(FOAM_USER_APPBIN)/EHDpimpleFoam and EXE_LIBS instead of LIB_LIBS.


All times are GMT -4. The time now is 11:53.