|
[Sponsors] |
|
August 5, 2017, 12:50 |
Dependencies .dep compile issue
|
#1 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 259
Rep Power: 22 |
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 |
|
August 5, 2017, 16:06 |
here the relevant files
|
#2 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 259
Rep Power: 22 |
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?! Last edited by klausb; August 6, 2017 at 09:03. Reason: new information |
|
August 7, 2017, 15:18 |
|
#3 |
Senior Member
|
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). |
|
August 8, 2017, 08:17 |
thank you
|
#4 |
Senior Member
Klaus
Join Date: Mar 2009
Posts: 259
Rep Power: 22 |
there was a problem with a path name with two of the custom libraries I use
|
|
March 5, 2023, 21:31 |
|
#5 |
Member
bany
Join Date: Nov 2019
Posts: 47
Rep Power: 7 |
The other reason may be that your files Make and *.C/*.H are not on the same path.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issue on zeroGradient BC for system rotation | magnushaese | OpenFOAM Running, Solving & CFD | 2 | January 28, 2022 13:43 |
rhoCentralFoam inviscid airfoil issue (Foam::error::printStack(Foam::Ostream&) at ??) | kmkb21 | OpenFOAM Running, Solving & CFD | 1 | March 1, 2018 01:07 |
foamToTecplot360 issue with multiregion solvers | manuc | OpenFOAM Post-Processing | 2 | November 21, 2016 13:51 |
Convergence issue in natural convection problem | chrisf90 | FLUENT | 5 | March 5, 2016 08:30 |
DUNS compile with VC++, VF or gcc/g77 in PC | Ali Irvi | Main CFD Forum | 17 | August 6, 2014 09:19 |