|
[Sponsors] |
July 28, 2009, 15:23 |
problems with installing OpenFOAM 1.6
|
#1 |
Senior Member
|
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 |
|
July 28, 2009, 17:58 |
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
What compiler are you using? gcc 4.3.3 works.
|
|
July 28, 2009, 18:01 |
|
#3 |
Senior Member
|
I am using gcc 4.2.1. Mybe it is the problem.
|
|
July 29, 2009, 02:57 |
cmake missing?
|
#4 |
Member
Thomas Wolfanger
Join Date: Mar 2009
Location: South West Germany
Posts: 62
Rep Power: 17 |
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 |
|
July 29, 2009, 05:23 |
|
#5 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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) |
||
July 29, 2009, 09:24 |
|
#6 |
Member
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17 |
||
September 8, 2009, 18:07 |
|
#7 |
New Member
Cheng
Join Date: Apr 2009
Posts: 6
Rep Power: 17 |
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 |
|
September 9, 2009, 18:16 |
|
#8 |
Senior Member
|
you can download binary version of openfoam and using the gcc in third-party dir not the system. This should solve the problem
|
|
September 10, 2009, 12:54 |
|
#9 | |
New Member
Cheng
Join Date: Apr 2009
Posts: 6
Rep Power: 17 |
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. |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM Version 1.6 Released | opencfd | OpenFOAM Announcements from ESI-OpenCFD | 0 | July 27, 2009 17:55 |
Problem installing OpenFOAM 1.5 installation on RHEL 4. | vwsj84 | OpenFOAM Installation | 4 | April 23, 2009 04:48 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 14:25 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 13:50 |
Problems installing OpenFoam on a 64bit machine | jango | OpenFOAM Installation | 1 | June 4, 2007 14:53 |