|
[Sponsors] |
February 26, 2008, 05:42 |
Hallo,
I'm trying to compile
|
#1 |
New Member
Mattia
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
Hallo,
I'm trying to compile the liftDrag utility with OpenSuse 10.3, but I have this output: mattia@linux:~/OpenFOAM/OpenFOAM-1.4.1/src/postProcessing> ./Allwmake /home/mattia/OpenFOAM/OpenFOAM-1.4.1/wmake/wmake: line 198: make: command not found /home/mattia/OpenFOAM/OpenFOAM-1.4.1/wmake/wmake: line 199: make: command not found /home/mattia/OpenFOAM/OpenFOAM-1.4.1/wmake/wmake: cannot make, file Make/linuxGccDPOpt/objectFiles was not created successfully /home/mattia/OpenFOAM/OpenFOAM-1.4.1/wmake/wmake: line 198: make: command not found /home/mattia/OpenFOAM/OpenFOAM-1.4.1/wmake/wmake: line 199: make: command not found /home/mattia/OpenFOAM/OpenFOAM-1.4.1/wmake/wmake: cannot make, file Make/linuxGccDPOpt/objectFiles was not created successfully What have I to do? |
|
February 26, 2008, 06:34 |
You have to install at least (
|
#2 |
Member
Michael Wild
Join Date: Mar 2009
Location: Bern, Switzerland
Posts: 79
Rep Power: 17 |
You have to install at least (using YaST):
- make - flex You probably will also need binutils and if it is not installed already, something called libc6-dev (or similar, I don't have suse). If you didn't install the gcc binary pack you will also need gcc-c++. Might be that I forgot something... Hope this helps. Michael |
|
February 26, 2008, 08:03 |
I installed 'make' and 'flex'
|
#3 |
New Member
Mattia
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
I installed 'make' and 'flex' and now it works.
Thanks! |
|
March 3, 2008, 05:55 |
Now I'm trying to install lift
|
#4 |
New Member
Mattia
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
Now I'm trying to install liftDrag tool in another machine (a cluster), but when I run wmake in the liftDrag utility location, I have the following error:
[mattia@cluster liftDrag]$ wmake g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/ -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/cfdTools/general/lnInclude -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/thermophysicalModels/specie/lnInclude -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/thermophysicalModels/basic/lnInclude -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/turbulenceModels -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/transportModels -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/postProcessing -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/LESmodels -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/LESmodels/LESdeltas/lnInclude -IlnInclude -I. -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC Make/linux64GccDPOpt/liftDrag.o -L/home/mattia/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt \ -lcompressiblePostProcessing -lincompressiblePostProcessing -lOpenFOAM -liberty -ldl -lm -o /home/mattia/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/liftDrag /usr/bin/ld: cannot find -lcompressiblePostProcessing collect2: ld returned 1 exit status make: *** [/home/mattia/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/liftDrag] Error 1 Can anyone help me? |
|
March 3, 2008, 11:24 |
It complains about libcompress
|
#5 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
It complains about libcompressiblePostProcessing! I didn't find a library with this name in my distribution. Remove it from the options file and see what functions is actually after. Then you can try to identify them in a new library.
Dragos |
|
March 6, 2008, 13:12 |
I removed lcompressiblePostPro
|
#6 |
New Member
Mattia
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
I removed lcompressiblePostProcessing from the option file and now after typing "wmake" I have a lot of output lines. I post only the last, but if you need I can post all the output:
liftDrag.C.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldE NS_7volMeshEEC1ERKNS_8IOobject ERKS3_[Foam::GeometricField<double,>::GeometricField(Foam ::IOobject const&, Foam::GeometricField<double,> const&)]+0x105): undefined reference to `Foam::GeometricField<double,>::debug' Make/linux64GccDPOpt/liftDrag.o: In function `Foam::GeometricField<double,>::GeometricField(Foa m::IOobject const&, Foam::fvMesh const&, Foam::dimensionSet const&, Foam::word const&)': liftDrag.C.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldE NS_7volMeshEEC1ERKNS_8IOobject ERKNS_6fvMeshERKNS_12dimensionSetERKNS_4wordE[Foam::GeometricField<double,>::Geo metricField(Foam::IOobject const&, Foam::fvMesh const&, Foam::dimensionSet const&, Foam::word const&)]+0xde): undefined reference to `Foam::fvMesh::boundary() const' liftDrag.C.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldE NS_7volMeshEEC1ERKNS_8IOobject ERKNS_6fvMeshERKNS_12dimensionSetERKNS_4wordE[Foam::GeometricField<double,>::Geo metricField(Foam::IOobject const&, Foam::fvMesh const&, Foam::dimensionSet const&, Foam::word const&)]+0xfd): undefined reference to `Foam::GeometricField<double,>::debug' Make/linux64GccDPOpt/liftDrag.o: In function `Foam::tmp<foam::geometricfield<double,> > Foam::operator*<foam::fvpatchfield,>(Foam::Geometr icField<double,> const&, Foam::GeometricField<double,> const&)': liftDrag.C.text._ZN4FoammlINS_12fvPatchFieldENS_7volMeshEEEN S_3tmpINS_14GeometricFieldIdT_ T0_EEEERKS7_SA_[Foam::tmp<foam::geometricfield<double,> > Foam::operator*<foam::fvpatchfield,>(Foam::Geometr icField<double,> const&, Foam::GeometricField<double,> const&)]+0x2a5): undefined reference to `Foam::calculatedFvPatchField<double>::typeName' Make/linux64GccDPOpt/liftDrag.o.data.rel.ro._ZTIN4Foam11wallFvPatchE[typeinfo for Foam::wallFvPatch]+0x10): undefined reference to `typeinfo for Foam::fvPatch' collect2: ld returned 1 exit status make: *** [/home/mattia/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/liftDrag] Error 1 What's the problem now? Do you have any solution? |
|
March 6, 2008, 13:46 |
Ok, so try now to replace the
|
#7 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Ok, so try now to replace the -lcompressiblePostProcessing with -lOpenFOAM.
Dragos |
|
March 7, 2008, 03:54 |
Thanks Dragos, I raplaced -lco
|
#8 |
New Member
Mattia
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
Thanks Dragos, I raplaced -lcompressiblePostProcessing and then it couldn't find the -lincompressiblePostProcessing. So I removed that line from the option file and now the error is the following:
Make/linux64GccDPOpt/liftDrag.o: In function `Foam::GeometricField<double,>::GeometricField(Foa m::IOobject const&, Foam::fvMesh const&, Foam::dimensionSet const&, Foam::word const&)': liftDrag.C.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldE NS_7volMeshEEC1ERKNS_8IOobject ERKNS_6fvMeshERKNS_12dimensionSetERKNS_4wordE[Foam::GeometricField<double,>::Geo metricField(Foam::IOobject const&, Foam::fvMesh const&, Foam::dimensionSet const&, Foam::word const&)]+0xde): undefined reference to `Foam::fvMesh::boundary() const' liftDrag.C.text._ZN4Foam14GeometricFieldIdNS_12fvPatchFieldE NS_7volMeshEEC1ERKNS_8IOobject ERKNS_6fvMeshERKNS_12dimensionSetERKNS_4wordE[Foam::GeometricField<double,>::Geo metricField(Foam::IOobject const&, Foam::fvMesh const&, Foam::dimensionSet const&, Foam::word const&)]+0xfd): undefined reference to `Foam::GeometricField<double,>::debug' Make/linux64GccDPOpt/liftDrag.o: In function `Foam::tmp<foam::geometricfield<double,> > Foam::operator*<foam::fvpatchfield,>(Foam::Geometr icField<double,> const&, Foam::GeometricField<double,> const&)': liftDrag.C.text._ZN4FoammlINS_12fvPatchFieldENS_7volMeshEEEN S_3tmpINS_14GeometricFieldIdT_ T0_EEEERKS7_SA_[Foam::tmp<foam::geometricfield<double,> > Foam::operator*<foam::fvpatchfield,>(Foam::Geometr icField<double,> const&, Foam::GeometricField<double,> const&)]+0x2a5): undefined reference to `Foam::calculatedFvPatchField<double>::typeName' Make/linux64GccDPOpt/liftDrag.o.data.rel.ro._ZTIN4Foam11wallFvPatchE[typeinfo for Foam::wallFvPatch]+0x10): undefined reference to `typeinfo for Foam::fvPatch' collect2: ld returned 1 exit status make: *** [/home/mattia/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/liftDrag] Error 1 What can I do now? |
|
March 7, 2008, 05:16 |
Hi Mattia,
In my previous pos
|
#9 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Hi Mattia,
In my previous post I said that you have to replace -lcompressiblePostProcessing with -lOpenFOAM. The removing part was just a test to see what functions it needs. Dragos |
|
March 7, 2008, 10:37 |
Hi Dragos,
that's what I did,
|
#10 |
New Member
Mattia
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
Hi Dragos,
that's what I did, but now I have the same problem with -lincompressiblePostProcessing that is in the line under in the option file. |
|
March 7, 2008, 18:58 |
Hm, my appologies, I should re
|
#11 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Hm, my appologies, I should read more careful the post.
Ok, so until now you have removed -lcompressiblePostProcessing and -lincompressiblePostProcessing, and added -lOpenFOAM. Now add -lfiniteVolume in your options file. Dragos |
|
March 8, 2008, 06:03 |
Hi Dragos,
this is last outpu
|
#12 |
New Member
Mattia
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
Hi Dragos,
this is last output after -lfiniteVolume has been added: [mattia@cluster liftDrag]$ wmake SOURCE=liftDrag.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/ -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/cfdTools/general/lnInclude -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/thermophysicalModels/specie/lnInclude -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/thermophysicalModels/basic/lnInclude -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/turbulenceModels -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/transportModels -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/postProcessing -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/LESmodels -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/LESmodels/LESdeltas/lnInclude -IlnInclude -I. -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/liftDrag.o g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/ -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/cfdTools/general/lnInclude -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/thermophysicalModels/specie/lnInclude -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/thermophysicalModels/basic/lnInclude -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/turbulenceModels -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/transportModels -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/postProcessing -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/LESmodels -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/LESmodels/LESdeltas/lnInclude -IlnInclude -I. -I/home/mattia/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC Make/linux64GccDPOpt/liftDrag.o -L/home/mattia/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt \ -lOpenFOAM -lfiniteVolume -lOpenFOAM -liberty -ldl -lm -o /home/mattia/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/liftDrag Make/linux64GccDPOpt/liftDrag.o: In function `main': liftDrag.C.text+0x2729): undefined reference to `Foam::basicThermo::New(Foam::fvMesh const&)' liftDrag.C.text+0x2d46): undefined reference to `Foam::momentCoefficient(Foam::GeometricField<foam ::vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::dimensioned<double> const&, Foam::word const&, Foam::Vector<double> const&, double const&, double const&)' liftDrag.C.text+0x2de2): undefined reference to `Foam::liftCoefficient(Foam::GeometricField<foam:: vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::dimensioned<double> const&, Foam::word const&, Foam::Vector<double> const&, double const&)' liftDrag.C.text+0x2e75): undefined reference to `Foam::dragCoefficient(Foam::GeometricField<foam:: vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::dimensioned<double> const&, Foam::word const&, Foam::Vector<double> const&, double const&)' liftDrag.C.text+0x390b): undefined reference to `Foam::compressible::pressureMomentCoefficient(Foa m::GeometricField<foam::vector <double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::word const&, Foam::Vector<double> const&, double const&, double const&, double const&)' liftDrag.C.text+0x39ad): undefined reference to `Foam::compressible::pressureLiftCoefficient(Foam: :GeometricField<foam::vector<d ouble>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::word const&, Foam::Vector<double> const&, double const&, double const&)' liftDrag.C.text+0x3a43): undefined reference to `Foam::compressible::pressureDragCoefficient(Foam: :GeometricField<foam::vector<d ouble>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::word const&, Foam::Vector<double> const&, double const&, double const&)' liftDrag.C.text+0x4461): undefined reference to `Foam::compressible::momentCoefficient(Foam::Geome tricField<foam::vector<double> , Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::GeometricField<double,> const&, Foam::word const&, Foam::Vector<double> const&, double const&, double const&, double const&)' liftDrag.C.text+0x450e): undefined reference to `Foam::compressible::liftCoefficient(Foam::Geometr icField<foam::vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::GeometricField<double,> const&, Foam::word const&, Foam::Vector<double> const&, double const&, double const&)' liftDrag.C.text+0x45ae): undefined reference to `Foam::compressible::dragCoefficient(Foam::Geometr icField<foam::vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double,> const&, Foam::GeometricField<double,> const&, Foam::word const&, Foam::Vector<double> const&, double const&, double const&)' collect2: ld returned 1 exit status make: *** [/home/mattia/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt/liftDrag] Error 1 Thanks in advance! |
|
March 8, 2008, 06:25 |
The class basicThermo comes in
|
#13 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
The class basicThermo comes in libbasicThermophysicalModels, so add:
-lbasicThermophysicalModels Dragos |
|
March 8, 2008, 07:24 |
Thanks, these are last lines o
|
#14 |
New Member
Mattia
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
Thanks, these are last lines of the new output:
liftDrag.C.text+0x3a43): undefined reference to `Foam::compressible::pressureD ragCoefficient(Foam::GeometricField<foam::vector<d ouble>, Foam::fvPatchField, Fo am::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volM esh> const&, Foam::word const&, Foam::Vector<double> const&, double const&, doub le const&)' liftDrag.C.text+0x4461): undefined reference to `Foam::compressible::momentCoe fficient(Foam::GeometricField<foam::vector<double> , Foam::fvPatchField, Foam::vo lMesh> const&, Foam::GeometricField<double,> c onst&, Foam::GeometricField<double,> const&, F oam::word const&, Foam::Vector<double> const&, double const&, double const&, dou ble const&)' liftDrag.C.text+0x450e): undefined reference to `Foam::compressible::liftCoeff icient(Foam::GeometricField<foam::vector<double>, Foam::fvPatchField, Foam::volM esh> const&, Foam::GeometricField<double,> con st&, Foam::GeometricField<double,> const&, Foa m::word const&, Foam::Vector<double> const&, double const&, double const&)' liftDrag.C.text+0x45ae): undefined reference to `Foam::compressible::dragCoeff icient(Foam::GeometricField<foam::vector<double>, Foam::fvPatchField, Foam::volM esh> const&, Foam::GeometricField<double,> con st&, Foam::GeometricField<double,> const&, Foa m::word const&, Foam::Vector<double> const&, double const&, double const&)' /home/mattia/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libbasicThermophysicalM odels.so: undefined reference to `Foam::specie::RR' /home/mattia/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libbasicThermophysicalM odels.so: undefined reference to `Foam::perfectGas::perfectGas(Foam::Istream&)' /home/mattia/OpenFOAM/OpenFOAM-1.4.1/lib/linux64GccDPOpt/libbasicThermophysicalM odels.so: undefined reference to `Foam::specie::Tstd' collect2: ld returned 1 exit status make: *** [/home/mattia/OpenFOAM/OpenFOAM-1.4.1/applications/bin/linux64GccDPOpt /liftDrag] Error 1 |
|
March 8, 2008, 10:16 |
Another thing: if I copy the -
|
#15 |
New Member
Mattia
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
Another thing: if I copy the -libcompressiblePostProcessing and -libincompressiblePostProcessing libraries from the 32bit version to the 64bit version where I can't find them, can it cause any problem?
|
|
March 10, 2008, 02:23 |
Hi Mattia,
On short:
1. If y
|
#16 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Hi Mattia,
On short: 1. If you copy the libraries and put them in let say /tmp/libcompressiblePostProcessing and /tmp/libincompressiblePostProcessing you should add something like this -L/tmp and then the usual -lcompress.... But I don't know if you can use the 32bit versions! 2. The function/class missed by the compiler (Foam::compressible::pressureDragCoefficient) in the above message is not on my distribution so... Anyway I will try to compile myself the utility and I will let you know about it. Dragos |
|
March 10, 2008, 03:53 |
Thanks Dragos,
you're very ki
|
#17 |
New Member
Mattia
Join Date: Mar 2009
Posts: 26
Rep Power: 17 |
Thanks Dragos,
you're very kind to help me! |
|
March 13, 2008, 07:26 |
Hello Mattia,
Well, good and
|
#18 |
Senior Member
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20 |
Hello Mattia,
Well, good and bad news. The good ones are that liftDrag utility gets compiled without any problems on the OpenFOAM-1.4.1-dev version. The bad news is that you have to download it and compile it yourself, still if you follow the build instructions it should go smooth. Dragos |
|
March 16, 2008, 02:21 |
Hey,
Im a relatively new Op
|
#19 |
New Member
Ryan Middleton
Join Date: Mar 2009
Posts: 17
Rep Power: 17 |
Hey,
Im a relatively new OpenFOAM user (1 week). I have run plenty of 2D cases with ok results. Im looking at using the liftDrag tool but getting really confused with so much info on the forum. The only version of OpenFOAM I have on my computer is 1.4.1. Can somebody please tell where to download liftDrag from and which folder to put it in for 1.4.1? Thanks very much for any help. Ryan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compiling UDF | Claud | FLUENT | 10 | December 18, 2006 17:52 |
Compiling my UDF | chris | FLUENT | 5 | July 12, 2006 09:49 |
Compiling UDF | Rahul | FLUENT | 3 | March 23, 2003 06:12 |
Compiling | MON | FLUENT | 0 | October 20, 2002 21:48 |
Compiling UDF | Zhang_clement | FLUENT | 5 | February 3, 2002 01:56 |