CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM Installation (
-   -   Canbt build foamDebugSwitches (

gitsnedbutzi July 20, 2008 09:06

Hi, i've been trying to bui

i've been trying to build OpenFOAM from the sources but there's a problem in building foamDebugSwitches which seems to be caused by autoRefineDriver.h. Has anyone an idea what could be causing that problem? Thanks a lot!!

The error messages are first:

/home/markus/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/PtrList.C: In copy constructor 'Foam::PtrList<t>::PtrList(const Foam::PtrList<t>&) [with T = Foam::featureEdgeMesh]':
autoHexMesh/autoHexMeshDriver/autoRefineDriver.C:260: instantiated from here
/home/markus/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/PtrList.C:56: error: invalid conversion from 'Foam::IOobject*' to 'Foam::featureEdgeMesh*'
make: *** [Make/linux64GccDPOpt/autoRefineDriver.o] Error 1
+ wmake libso errorEstimation
'/home/markus/OpenFOAM/OpenFOAM-1.5/lib/linux64GccDPOpt/' is up to date.

and then also

/usr/bin/ld: cannot find -lautoMesh
collect2: ld returned 1 exit status
make[2]: *** [/home/markus/OpenFOAM/OpenFOAM-1.5/applications/bin/linux64GccDPOpt/foamDebugSw itches] Error 1
make[2]: Leaving directory `/home/markus/OpenFOAM/OpenFOAM-1.5/applications/utilities/miscellaneous/foamDeb ugSwitches'
make[1]: *** [foamDebugSwitches] Error 2
make[1]: Target `application' not remade because of errors.
make[1]: Leaving directory `/home/markus/OpenFOAM/OpenFOAM-1.5/applications/utilities/miscellaneous'
make: *** [miscellaneous] Error 2

gitsnedbutzi July 21, 2008 11:48

I could solve the problem myse
I could solve the problem myself. the reason is i'm still using gcc 4.2 as 4.3 isn't a ubuntu package yet. in case anyone else has the same problem: in the openfoam bugs forum you can find a patched version of autorefinedriver which works with gcc 4.2

All times are GMT -4. The time now is 01:37.