CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   problems with installing OpenFOAM 1.6 (https://www.cfd-online.com/Forums/openfoam-installation/66928-problems-installing-openfoam-1-6-a.html)

su_junwei July 28, 2009 15:23

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

mattijs July 28, 2009 17:58

What compiler are you using? gcc 4.3.3 works.

su_junwei July 28, 2009 18:01

I am using gcc 4.2.1. Mybe it is the problem.

anger July 29, 2009 02:57

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

gschaider July 29, 2009 05:23

Quote:

Originally Posted by anger (Post 224525)
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

Yes it is. Just download it from www.cmake.org, extract it to ThirdParty-1.6, compile it and either install it or do somthing similar to

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)

roth July 29, 2009 09:24

Quote:

Originally Posted by mattijs (Post 224480)
What compiler are you using? gcc 4.3.3 works.

Are there any thoughts on reworking the code slightly to allow Foam to compile under gcc 4.2? Or should everyone bite the bullet and install 4.3 (or 4.4)?
Mike

jsltlx September 8, 2009 18:07

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:

Originally Posted by roth (Post 224572)
Are there any thoughts on reworking the code slightly to allow Foam to compile under gcc 4.2? Or should everyone bite the bullet and install 4.3 (or 4.4)?
Mike


su_junwei September 9, 2009 18:16

you can download binary version of openfoam and using the gcc in third-party dir not the system. This should solve the problem

jsltlx September 10, 2009 12:54

Quote:

Originally Posted by su_junwei (Post 229058)
you can download binary version of openfoam and using the gcc in third-party dir not the system. This should solve the problem

Thanks for the suggestion. This is of course worth trying (if you're lucky to have a compatible system). I'll stick to 1.5 for now.

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.