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

compile a library

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 3, 2011, 08:26
Smile compile a library
  #1
Member
 
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 15
aqua is on a distinguished road
I am trying to create a new library based on "movingConeTopoFvMesh". are there someone can help? I am using the OpenFoam2.0.1 version. when type in wmake libso, there is always the mistake :

wmakeLnInclude: linking include files to ./lnInclude
make: *** lnInclude/: Is a directory. Stop.

help me please...
aqua is offline   Reply With Quote

Old   November 3, 2011, 12:18
Default
  #2
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
marupio is on a distinguished road
What do your Make/options and Make/files files look like?
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   November 3, 2011, 21:03
Default Hi,
  #3
Member
 
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 15
aqua is on a distinguished road
What I did is try to follow the steps bellow (it's for version 1.7) on version 2.0.1, after those command, the “wmake libso” didn't work...:
1 cp −r $FOAM_SRC/ topoChangerFvMesh /movingConeTopoFvMesh \
2 $WM_PROJECT_USER_DIR/ slidingConesFvMesh
3 cd $WM_PROJECT_USER_DIR/ slidingConesFvMesh
4 sed s /movingConeTopoFvMesh / slidingConesTopo / \
5 <movingConeTopoFvMesh.C >slidingConesFvMesh.C
6 sed s /movingConeTopoFvMesh / slidingConesTopo / \
7 <movingConeTopoFvMesh.H >slidingConesFvMesh.H
The library was copied and the names were changed to slidingConesFvMesh.. Copied were
also the Make folder containg the files files and options.
1 cp −r $FOAM_SRC/ topoChangerFvMesh /Make/ \
2 $WM_PROJECT_USER_DIR/ slidingConesFvMesh /
The files were rewritten into the following lines in order to only compile the slidingConesFvMesh library.
1 slidingConesFvMesh.C
2
3 LIB = $ (FOAM_USER_LIBBIN) / libslidingConesFvMesh
In the options file a line for including the files from the original library was added.
1 −I$ (LIB_SRC) / topoChangerFvMesh / lnInclude \
The copied movingConeTopotFvMesh can now be adopted for the new functionality. To compile
the changes made in the library the command
1 cd $WM_PROJECT_USER_DIR/ slidingConesFvMesh
2 wmake l i b s o




beside, i wonder, where is the "slidingConesFvMesh.so" if this compilation succeed?
Thank you so much!
aqua 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
Compile boundary condition as a new dynamic library mohanphy OpenFOAM Programming & Development 22 January 21, 2021 06:53
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 18:22
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51
OpenFOAM141dev linking error on IBM AIX 52 matthias OpenFOAM Installation 24 April 28, 2008 16:49
Compile of the library is so slow liu OpenFOAM Running, Solving & CFD 1 July 15, 2005 03:49


All times are GMT -4. The time now is 15:27.