Dependencies .dep compile issue
Hello,
I am trying to compile a new solver but I keep getting an error: wmake libso . wmakeLnInclude: linking include files to ./lnInclude make: *** Keine Regel vorhanden, um das Ziel „Make/linux64GccDPInt32Opt/gmresSolver/gmresSolver.C.dep“, benötigt von „Make/linux64GccDPInt32Opt/gmresSolver/gmresSolver.o“, zu erstellen. Schluss. I says basically, that there's no make rule to create gmresSolver.C.dep which is needed to create gmresSolver.o How can I make such a rule, what should it look like, where should I put it? Klaus |
here the relevant files
2 Attachment(s)
find attached the solver code .H and .C file
Make/files looks like this: gmresSolver/gmresSolver.C LIB = $(FOAM_USER_LIBBIN)/libgmresSolver Make/options looks like this: EXE_INC = \ -I$(LIB_SRC)/OpenFOAM/lnInclude LIB_LIBS = \ -lOpenFOAM I came across he following explanation regarding the "no rule" problem: ..."No rule to make target generally means simply that you have a compiler version that does not match the original compiler used in the project. You only need to go to the project properties and change the compiler to use the one you installed." I use Ubuntu 16.04, and gcc version 5.4.0 20160609 and custom turbulence models can be installed using wmake. Still I have no idea what causes the problem when it comes to linear solvers?! |
Hi,
More frequently the error happens, when you put non-existent files into Make/files. Check spelling, maybe there is an error in file name or folder name (hope gmresSolver.C is really located in gmresSolver folder). |
thank you
there was a problem with a path name with two of the custom libraries I use
|
The other reason may be that your files Make and *.C/*.H are not on the same path.
|
All times are GMT -4. The time now is 09:51. |