|
[Sponsors] |
November 3, 2011, 08:26 |
compile a library
|
#1 |
Member
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 15 |
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... |
|
November 3, 2011, 12:18 |
|
#2 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
What do your Make/options and Make/files files look like?
__________________
~~~ Follow me on twitter @DavidGaden |
|
November 3, 2011, 21:03 |
Hi,
|
#3 |
Member
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 15 |
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! |
|
|
|
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 |