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

c Makefile compilation by wmake

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2018, 09:55
Default c Makefile compilation by wmake
  #1
New Member
 
Juan Blanco
Join Date: May 2017
Posts: 12
Rep Power: 8
juanblanco is on a distinguished road
Hello,

I am trying to compile some .c files which have its own Makefile in OpenFOAM 5.0 but the wmake doesn't recognize it.

How can I make it to read it?

Thank you.
juanblanco is offline   Reply With Quote

Old   February 22, 2018, 05:41
Default
  #2
Member
 
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 11
anuragm is on a distinguished road
I would suggest you refer to the Allwmake script that comes with any non-trivial solver in OpenFOAM. For example, multiphaseEulerFoam.

Using the example of the aforementioned script, you will first need to use wmake to compile the utility/libraries in the sub-directories, then link them in your solver's make options and then run wmake in your solver root directory.
anuragm is offline   Reply With Quote

Old   February 22, 2018, 11:05
Default
  #3
New Member
 
Juan Blanco
Join Date: May 2017
Posts: 12
Rep Power: 8
juanblanco is on a distinguished road
Thank you. I've tried the way you described and it does compile the .c files but still doesn't follow the Makefile instructions.
juanblanco is offline   Reply With Quote

Old   February 23, 2018, 06:42
Default
  #4
Member
 
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 11
anuragm is on a distinguished road
In this case please upload the example. Or at the very least, post the contents of your Make>files, Make>options and the directory structure. Without this I would not be able to help you.
anuragm 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
OpenFoam 1.6-ext - error ./Allwmake in /src preibie OpenFOAM Installation 14 June 14, 2011 05:57
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 08:48
Problems Installing OF 1.6 32 bit bucksfan OpenFOAM Installation 19 August 4, 2009 01:36
OpenFOAM15 installables are incomplete problem with paraFoam tryingof OpenFOAM Bugs 17 December 7, 2008 04:41
[OpenFOAM] ParaFoam error message joey ParaView 1 October 2, 2006 13:28


All times are GMT -4. The time now is 14:03.