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

Problems in personal library compilation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2006, 09:09
Default Hi all, I've got problems i
  #1
New Member
 
Miriam
Join Date: Mar 2009
Posts: 15
Rep Power: 17
shrina is on a distinguished road
Hi all,

I've got problems in compiling a personal library.

I would like to create a personal library called libChemotherapy to use in my solver.
At present it is just made up of a single class called MatrixGeomFields, whose files have been put in the folder:
/home/miriam/OpenFOAM/miriam-1.2/src/Chemotherapy/MatrixGeomFields/

The elements of that class are pointers to object of class GeometricField.
I created that class by modyfing the Matrix class:

the template class T is substituted by

template<class> class PatchField, class Geomesh>
GeometricField<type,patchfiled,geomesh>*

I took off the arithmetic operators and Istream operator since they are not allowed for pointers.

I added To MatrixGeomfields.H file:

#include "GeometricField.H"
#include "GeometricFields.H"

since the elements of the matrix are pointers to objects of class GeometricField.

I have 4 files in the folder:
MatrixGeomFields/

file:///home/miriam/OpenFOAM/miriam-1.2/src/Chemotherapy/MatrixGeomFields/Matrix GeomFields.C
file:///home/miriam/OpenFOAM/miriam-1.2/src/Chemotherapy/MatrixGeomFields/Matrix GeomFields.H
file:///home/miriam/OpenFOAM/miriam-1.2/src/Chemotherapy/MatrixGeomFields/Matrix GeomFields.H~
file:///home/miriam/OpenFOAM/miriam-1.2/src/Chemotherapy/MatrixGeomFields/Matrix GeomFieldsI.H
file:///home/miriam/OpenFOAM/miriam-1.2/src/Chemotherapy/MatrixGeomFields/Matrix GeomFieldsIO.C

In order to compile the library libChemotherapy which now contains only that class (MatrixGeomFields) I created the folder "Make" in the folder "Chemotherapy"
where I put the following files and options:

Make/files:

$(HOME)/OpenFOAM/miriam-1.2/src/MatrixGeomFields/MatrixGeomFields.C
$(HOME)/OpenFOAM/miriam-1.2/src/MatrixGeomFields/MatrixGeomFieldsIO.C

LIB = $(HOME)/OpenFOAM/miriam-1.2/lib/libChemotherapy


Make/options:

EXE_INC = \
-I$(LIB_SRC)/OpenFOAM/lnInclude \ -I$(HOME)/OpenFOAM/miriam-1.2/src/Chemotherapy/MatrixGeomFields

LIB_LIBS = \
-L$(HOME)/miriam/OpenFOAM/OpenFOAM-1.2/lib \
-lOpenFOAM

I opened the shell in "Chemotherapy" and I edited:

wmake libso

The result is the following one:

miriam@cucciolo:~/OpenFOAM/miriam-1.2/src/Chemotherapy> wclean
miriam@cucciolo:~/OpenFOAM/miriam-1.2/src/Chemotherapy> wmake libso
/home/miriam/OpenFOAM/OpenFOAM-1.2/wmake/wmakeLnInclude: linking include files t o /home/miriam/OpenFOAM/miriam-1.2/src/Chemotherapy/lnInclude

make: *** No rule to make target `/home/miriam/OpenFOAM/miriam-1.2/src/MatrixGeo mFields/MatrixGeomFields.dep', needed by `Make/linuxGcc4Opt/dependencies'. Stop .
libso
Make/linuxGcc4Opt/includeDeps:1: /home/miriam/OpenFOAM/miriam-1.2/src/MatrixGeom Fields/MatrixGeomFields.dep: No such file or directory
Make/linuxGcc4Opt/includeDeps:2: /home/miriam/OpenFOAM/miriam-1.2/src/MatrixGeom Fields/MatrixGeomFieldsIO.dep: No such file or directory
make: *** No rule to make target `/home/miriam/OpenFOAM/miriam-1.2/src/MatrixGeo mFields/MatrixGeomFieldsIO.dep'. Stop.
miriam@cucciolo:~/OpenFOAM/miriam-1.2/src/Chemotherapy>


I cannot understand where the error is.

Thanks in advance
Bye

Miriam
shrina is offline   Reply With Quote

Old   September 11, 2007, 06:41
Default Hej Miriam, I have the same
  #2
mss
Guest
 
Posts: n/a
Hej Miriam,

I have the same problem. Did you solve it?

best regards,
Rita
  Reply With Quote

Old   February 23, 2009, 10:00
Default Hello, I am also having a
  #3
Member
 
Virginie Ehrlacher
Join Date: Mar 2009
Posts: 52
Rep Power: 17
virginie_e is on a distinguished road
Hello,

I am also having a problem while compiling my own dynamic library:
+ wmake libso freeSurfacePerso/
make: *** No rule to make target `makeFreeSurfaceDataPerso.dep', needed by `Make/linux64GccDPOpt/dependencies'. Stop.

I have seen several links on the forum where people had this problem and managed to solve it, but most of the time they do not say how they did.

Could someone give a hint on how to solve the problem? Just a precision: I have compiled OpenFOAM-1.5-dev from svn two weeks ago and I hav installed gmp and mpfr and set the corresponding links in $PATH and $LD_LIBRAR_PATH. (OpenFOAM compiled fine).

Thank you in advance.

Virginie
virginie_e is offline   Reply With Quote

Old   February 23, 2009, 11:12
Default Sorry for the last message. I
  #4
Member
 
Virginie Ehrlacher
Join Date: Mar 2009
Posts: 52
Rep Power: 17
virginie_e is on a distinguished road
Sorry for the last message. I have also found how to solve the problem. Th idea: I used the executable wmakeFilesAndOptions which added lines to the original files such as:
lnInclude = lnInclude
and changed the order of the compiled files.

hope this might help somebody perhaps ...

Virginie
virginie_e 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
UDF compilation problems MateuszZb FLUENT 4 October 20, 2008 02:46
Personal library compilation mss OpenFOAM Running, Solving & CFD 1 September 13, 2007 06:10
PROBLEMS WITH THE COMPILATION oscar_j OpenFOAM Running, Solving & CFD 6 July 18, 2007 21:41
Compilation problems and file locations Joel Siemens 3 February 11, 2003 12:42
personal support Dolker Siemens 1 July 30, 2001 13:18


All times are GMT -4. The time now is 07:04.