CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Programming & Development (
-   -   no rules for target *Foam.dep which needed... (

goodkid May 7, 2011 09:00

no rules for target *Foam.dep which needed...
when i compiled a new slover which was just copied by an existed solver and only modified about the equation,it came an error that was "make error ,no rules to target *Foam.dep which is needed by ..."

but when i wclean an existed slover and wmake again ,it is OK.

i used OpenFoam in redhat 5.:(

gwierink May 8, 2011 11:33

Did you change both the C file and the names in Make/files to the same names? So, to change icoFoam to somethingElseFoam, change icoFoam.C to somethingElseFoam.C and change Make/files from


EXE = $(FOAM_APPBIN)/icoFoam



EXE = $(FOAM_USER_APPBIN)/somethingElseFoam

and do wclean and wmake.

goodkid May 12, 2011 20:54

Dear Gijs!
Thank you very much for you reply!
I just have done it with your notes.The problem i hvae is that i forgot to wclean the existed slover before i copied the existed slover.when i do wclean first,it works very well.

All times are GMT -4. The time now is 20:47.