CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Compilation error with OF 2.1.x (http://www.cfd-online.com/Forums/openfoam-installation/107118-compilation-error-2-1-x.html)

GerhardHolzinger September 18, 2012 06:29

Compilation error with OF 2.1.x
 
1 Attachment(s)
Hello,

I tried to update my OpenFOAM 2.1.x so I typed

Code:

git pull
and then

Code:

./Allwmake
This way I updated my OpenFOAM 2.1.x several times since I installed it. It always worked, until now.

Unfortunately, the compilation produces some error messages and stops.

Some errors are about files which aren't found:

DataEntryFwd.H
MapDimensionedFields.H
ParticleTrap.H


and some errors are about "undefined reference"

Foam::polyMesh::clearAdditionalGeom()
Foam::pointMesh::typeName
Foam::polyMesh::movePoints()

After the unsuccessful compilation some commands, presumably those affected by the compilation errors, are not found anymore.

wyldckat September 18, 2012 07:29

Greetings Gerhard,

It's somewhat simple: new files were added to the main OpenFOAM library. The simplest fix is this:
Code:

src
wclean libso OpenFOAM
wmake libso OpenFOAM

When it finishes building, you can run Allwmake once again. Whenever you see that a library does this, you can perform steps similar to these.

Best regards,
Bruno

GerhardHolzinger September 18, 2012 07:33

Thanks for the reply.

In the mean time I found a bug report about my problem and there the same solution is explained.

I should have been googling a little longer before posting my problem here.

http://www.openfoam.org/mantisbt/view.php?id=626

EDIT: It is you who (wyldckat) who posted the solution in the bug report. The world is a small one.

GerhardHolzinger September 18, 2012 08:02

1 Attachment(s)
There is still the error about the missing file particleTrap.H

wyldckat September 18, 2012 08:30

OK, this time it stopped on this command:
Code:

wmake libso intermediate
Since I don't know by heart the location of this library, this is what I would do:
Code:

src
find . -name intermediate

Then cd to the given folder and do:
Code:

wclean libso
wmake libso

Then back to Allwmake :D

GerhardHolzinger September 18, 2012 09:04

I did it the brute force way

Code:

wclean all
./Allwmake

It took a while, but now it is working again.


All times are GMT -4. The time now is 06:55.