CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Dependencies .dep compile issue

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 8 Post By alexeym

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 5, 2017, 12:50
Default Dependencies .dep compile issue
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 259
Rep Power: 22
klausb will become famous soon enough
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
klausb is offline   Reply With Quote

Old   August 5, 2017, 16:06
Default here the relevant files
  #2
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 259
Rep Power: 22
klausb will become famous soon enough
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?!
Attached Files
File Type: c gmresSolver.C (7.4 KB, 55 views)
File Type: h gmresSolver.H (3.4 KB, 16 views)

Last edited by klausb; August 6, 2017 at 09:03. Reason: new information
klausb is offline   Reply With Quote

Old   August 7, 2017, 15:18
Default
  #3
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
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).
alexeym is offline   Reply With Quote

Old   August 8, 2017, 08:17
Default thank you
  #4
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 259
Rep Power: 22
klausb will become famous soon enough
there was a problem with a path name with two of the custom libraries I use
klausb is offline   Reply With Quote

Old   March 5, 2023, 21:31
Default
  #5
Member
 
bany
Join Date: Nov 2019
Posts: 47
Rep Power: 7
bany is on a distinguished road
The other reason may be that your files Make and *.C/*.H are not on the same path.
bany is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 09:36.