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

compile a library

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   November 3, 2011, 08:26
Smile compile a library
  #1
Member
 
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 5
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: 397
Rep Power: 12
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: 5
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

Thread Tools
Display Modes

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 On
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 Meshing & Mesh Conversion 15 August 6, 2015 06:20
PV3FoamReader compile error.... PEM_GUY OpenFOAM Installation 6 April 5, 2010 17: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 15:49
Compile of the library is so slow liu OpenFOAM Running, Solving & CFD 1 July 15, 2005 02:49


All times are GMT -4. The time now is 19:59.