problems with installing OpenFOAM 1.6
Dear Foamers
When installing the new version of OpenFOAM, I encountered a problem in fvMesh.C. It seems that there are several invokings of default constructor (copy) which were defined as private members in the crossponding class. The errors are listed below. In file included from fvMesh/fvMesh.C:53: lnInclude/CECCellToFaceStencil.H: In constructor ‘Foam::centredCECCellToFaceStencilObject::centredC ECCellToFaceStencilObject(const Foam::fvMesh&)’: lnInclude/CECCellToFaceStencil.H:57: error: ‘Foam::CECCellToFaceStencil::CECCellToFaceStencil( const Foam::CECCellToFaceStencil&)’ is private lnInclude/centredCECCellToFaceStencilObject.H:69: error: within this context In file included from fvMesh/fvMesh.C:54: lnInclude/CFCCellToFaceStencil.H: In constructor ‘Foam::centredCFCCellToFaceStencilObject::centredC FCCellToFaceStencilObject(const Foam::fvMesh&)’: lnInclude/CFCCellToFaceStencil.H:57: error: ‘Foam::CFCCellToFaceStencil::CFCCellToFaceStencil( const Foam::CFCCellToFaceStencil&)’ is private lnInclude/centredCFCCellToFaceStencilObject.H:69: error: within this context In file included from fvMesh/fvMesh.C:55: lnInclude/CPCCellToFaceStencil.H: In constructor ‘Foam::centredCPCCellToFaceStencilObject::centredC PCCellToFaceStencilObject(const Foam::fvMesh&)’: lnInclude/CPCCellToFaceStencil.H:57: error: ‘Foam::CPCCellToFaceStencil::CPCCellToFaceStencil( const Foam::CPCCellToFaceStencil&)’ is private lnInclude/centredCPCCellToFaceStencilObject.H:69: error: within this context In file included from fvMesh/fvMesh.C:56: lnInclude/FECCellToFaceStencil.H: In constructor ‘Foam::centredFECCellToFaceStencilObject::centredF ECCellToFaceStencilObject(const Foam::fvMesh&)’: lnInclude/FECCellToFaceStencil.H:69: error: ‘Foam::FECCellToFaceStencil::FECCellToFaceStencil( const Foam::FECCellToFaceStencil&)’ is private lnInclude/centredFECCellToFaceStencilObject.H:69: error: within this context In file included from fvMesh/fvMesh.C:57: lnInclude/CECCellToFaceStencil.H: In constructor ‘Foam::upwindCECCellToFaceStencilObject::upwindCEC CellToFaceStencilObject(const Foam::fvMesh&, bool, Foam::scalar)’: lnInclude/CECCellToFaceStencil.H:57: error: ‘Foam::CECCellToFaceStencil::CECCellToFaceStencil( const Foam::CECCellToFaceStencil&)’ is private lnInclude/upwindCECCellToFaceStencilObject.H:76: error: within this context In file included from fvMesh/fvMesh.C:58: lnInclude/CFCCellToFaceStencil.H: In constructor ‘Foam::upwindCFCCellToFaceStencilObject::upwindCFC CellToFaceStencilObject(const Foam::fvMesh&, bool, Foam::scalar)’: lnInclude/CFCCellToFaceStencil.H:57: error: ‘Foam::CFCCellToFaceStencil::CFCCellToFaceStencil( const Foam::CFCCellToFaceStencil&)’ is private lnInclude/upwindCFCCellToFaceStencilObject.H:76: error: within this context In file included from fvMesh/fvMesh.C:59: lnInclude/CPCCellToFaceStencil.H: In constructor ‘Foam::upwindCPCCellToFaceStencilObject::upwindCPC CellToFaceStencilObject(const Foam::fvMesh&, bool, Foam::scalar)’: lnInclude/CPCCellToFaceStencil.H:57: error: ‘Foam::CPCCellToFaceStencil::CPCCellToFaceStencil( const Foam::CPCCellToFaceStencil&)’ is private lnInclude/upwindCPCCellToFaceStencilObject.H:76: error: within this context In file included from fvMesh/fvMesh.C:60: lnInclude/FECCellToFaceStencil.H: In constructor ‘Foam::upwindFECCellToFaceStencilObject::upwindFEC CellToFaceStencilObject(const Foam::fvMesh&, bool, Foam::scalar)’: lnInclude/FECCellToFaceStencil.H:69: error: ‘Foam::FECCellToFaceStencil::FECCellToFaceStencil( const Foam::FECCellToFaceStencil&)’ is private lnInclude/upwindFECCellToFaceStencilObject.H:76: error: within this context In file included from fvMesh/fvMesh.C:62: lnInclude/CFCFaceToCellStencil.H: In constructor ‘Foam::centredCFCFaceToCellStencilObject::centredC FCFaceToCellStencilObject(const Foam::fvMesh&)’: lnInclude/CFCFaceToCellStencil.H:60: error: ‘Foam::CFCFaceToCellStencil::CFCFaceToCellStencil( const Foam::CFCFaceToCellStencil&)’ is private lnInclude/centredCFCFaceToCellStencilObject.H:69: error: within this context Junwei |
What compiler are you using? gcc 4.3.3 works.
|
I am using gcc 4.2.1. Mybe it is the problem.
|
cmake missing?
Hello,
I tried to compile paraFoam but noticed an error saying that cmake was not found. Indeed, there is no cmake in the ThirdParty package I downloaded; using cmake form 1.5 didn't work because it's too old (v. 2.4.6 vs. 2.6 required for OF1.6). Is there any possibility to get cmake 2.6 from a different source? Best regards, -Thomas |
Quote:
export PATH=<ThirpartyDir>/<CmakeDir>/bin:$PATH (this is just a symbolic path) and you're set (test with "which cmake" whether the right one is picked up) |
Quote:
Mike |
I'm having the same problem with gcc-4.1.2. Mattijs suggested a workaround in the following thread:
http://www.cfd-online.com/Forums/ope...l-private.html I'm not sure if I understood it correctly, but it didn't work for me (I made changes in the header files in src/finiteVolume/fvMesh/extendedStencil/cellToFace/MeshObjects/) I'd highly appreciate if someone could help with this. Thanks. Cheng Quote:
|
you can download binary version of openfoam and using the gcc in third-party dir not the system. This should solve the problem
|
Quote:
I'm still waiting for a workaround for this (since installing higher version of gcc is out of the question). Any suggestion/help will be highly appreciated. |
All times are GMT -4. The time now is 05:36. |