CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

Compiling difficulty for dynamicTopoFvMesh-port2.2.x in openfoam220

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 4, 2014, 21:33
Default Compiling difficulty for dynamicTopoFvMesh-port2.2.x in openfoam220
  #1
New Member
 
Detian Liu
Join Date: Mar 2013
Location: Beijing, P.R.China
Posts: 20
Rep Power: 13
Detian Liu is on a distinguished road
Dear every one:
Recently I have a problem to compile dynamicTopoFvMesh-port2.2.x in openfoam220,I really need help from you!Thank you for the help!
the step for me to compile it like this:
1.
Code:
export MESQUITE_DIR=/opt/ThirdParty-2.2.0/mesquite-2.3.0
export MESQUITE_LIB_DIR=/opt/ThirdParty-2.2.0/mesquite-2.3.0/lib
2.
Code:
in the mesquite-2.3.0 folder, compile it as the install.txt
1)./configure --prefix=$MESQUITE_DIR --enable-release --disable-debug-assertions --disable-igeom --disable-imesh --disable-irel --enable-shared --without-cppunit --enable-trap-fpe --disable-function-timers
2)make
3)make install
there seems to be no problem, but when I try to compile dynamicTopoFvMesh-port2.2.x, I just input ./Allwmake in the dynamicTopoFvMesh-port2.2.x folder, but it gives the error like this:
Code:
+ [ 0 = 1 ]
+ ./AllwmakeLnInclude
+ wmakeLnInclude enginePointPatchFields
+ wmakeLnInclude mesquiteMotionSolver
+ wmakeLnInclude dynamicTopoFvMesh
+ cd fluxCorrector
+ ./AllwmakeLnInclude
+ wmakeLnInclude incompressible
+ wmake libso enginePointPatchFields
'/home/administrator/OpenFOAM/administrator-2.2.0/platforms/linux64GccDPOpt/lib/libenginePointPatchFields.so' is up to date.
+ wmake libso mesquiteMotionSolver
SOURCE=mesquiteMotionSolver.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/ThirdParty-2.2.0/mesquite-2.3.0/include -I/opt/openfoam220/src/meshTools/lnInclude -I/opt/openfoam220/src/dynamicMesh/lnInclude  -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/mesquiteMotionSolver.o
In file included from mesquiteMotionSolver.C:27:0:
mesquiteMotionSolver.H:83:9: error: ‘UpdateableMeshObject’ is not a member of ‘Foam’
mesquiteMotionSolver.H:83:9: error: ‘UpdateableMeshObject’ is not a member of ‘Foam’
mesquiteMotionSolver.H:85:5: error: wrong number of template arguments (3, should be 2)
/opt/openfoam220/src/OpenFOAM/lnInclude/MeshObject.H:52:7: error: provided for ‘template<class Mesh, class Type> class Foam::MeshObject’
mesquiteMotionSolver.C: In constructor ‘Foam::mesquiteMotionSolver::mesquiteMotionSolver(const Foam::polyMesh&)’:
mesquiteMotionSolver.C:71:9: error: ‘UpdateableMeshObject’ is not a member of ‘Foam’
mesquiteMotionSolver.C:71:9: error: ‘UpdateableMeshObject’ is not a member of ‘Foam’
mesquiteMotionSolver.C:73:5: error: wrong number of template arguments (3, should be 2)
/opt/openfoam220/src/OpenFOAM/lnInclude/MeshObject.H:52:7: error: provided for ‘template<class Mesh, class Type> class Foam::MeshObject’
mesquiteMotionSolver.C:62:1: error: uninitialized reference member ‘Foam::mesquiteMotionSolver::Mesh_’ [-fpermissive]
mesquiteMotionSolver.C:68:5: error: no matching function for call to ‘Foam::IOField<Foam::Vector<double> >::IOField()’
mesquiteMotionSolver.C:68:5: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:129:1: note: Foam::IOField<Type>::IOField(const Foam::IOobject&, const Foam::Xfer<Foam::Field<Type> >&) [with Type = Foam::Vector<double>, Foam::IOobject = Foam::IOobject]
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:129:1: note:   candidate expects 2 arguments, 0 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:95:1: note: Foam::IOField<Type>::IOField(const Foam::IOobject&, const Foam::Field<Type>&) [with Type = Foam::Vector<double>, Foam::IOobject = Foam::IOobject]
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:95:1: note:   candidate expects 2 arguments, 0 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:61:1: note: Foam::IOField<Type>::IOField(const Foam::IOobject&, Foam::label) [with Type = Foam::Vector<double>, Foam::IOobject = Foam::IOobject, Foam::label = int]
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:61:1: note:   candidate expects 2 arguments, 0 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:31:1: note: Foam::IOField<Type>::IOField(const Foam::IOobject&) [with Type = Foam::Vector<double>, Foam::IOobject = Foam::IOobject]
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:31:1: note:   candidate expects 1 argument, 0 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.H:51:7: note: Foam::IOField<Foam::Vector<double> >::IOField(const Foam::IOField<Foam::Vector<double> >&)
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.H:51:7: note:   candidate expects 1 argument, 0 provided
mesquiteMotionSolver.C:73:6: error: expected ‘{’ before ‘(’ token
mesquiteMotionSolver.C: At global scope:
mesquiteMotionSolver.C:73:12: error: expected constructor, destructor, or type conversion before ‘,’ token
mesquiteMotionSolver.C:74:10: error: expected constructor, destructor, or type conversion before ‘(’ token
mesquiteMotionSolver.C: In constructor ‘Foam::mesquiteMotionSolver::mesquiteMotionSolver(const Foam::polyMesh&, const Foam::IOdictionary&)’:
mesquiteMotionSolver.C:119:9: error: ‘UpdateableMeshObject’ is not a member of ‘Foam’
mesquiteMotionSolver.C:119:9: error: ‘UpdateableMeshObject’ is not a member of ‘Foam’
mesquiteMotionSolver.C:121:5: error: wrong number of template arguments (3, should be 2)
/opt/openfoam220/src/OpenFOAM/lnInclude/MeshObject.H:52:7: error: provided for ‘template<class Mesh, class Type> class Foam::MeshObject’
mesquiteMotionSolver.C:109:1: error: uninitialized reference member ‘Foam::mesquiteMotionSolver::Mesh_’ [-fpermissive]
mesquiteMotionSolver.C:116:5: error: no matching function for call to ‘Foam::IOField<Foam::Vector<double> >::IOField()’
mesquiteMotionSolver.C:116:5: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:129:1: note: Foam::IOField<Type>::IOField(const Foam::IOobject&, const Foam::Xfer<Foam::Field<Type> >&) [with Type = Foam::Vector<double>, Foam::IOobject = Foam::IOobject]
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:129:1: note:   candidate expects 2 arguments, 0 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:95:1: note: Foam::IOField<Type>::IOField(const Foam::IOobject&, const Foam::Field<Type>&) [with Type = Foam::Vector<double>, Foam::IOobject = Foam::IOobject]
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:95:1: note:   candidate expects 2 arguments, 0 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:61:1: note: Foam::IOField<Type>::IOField(const Foam::IOobject&, Foam::label) [with Type = Foam::Vector<double>, Foam::IOobject = Foam::IOobject, Foam::label = int]
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:61:1: note:   candidate expects 2 arguments, 0 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:31:1: note: Foam::IOField<Type>::IOField(const Foam::IOobject&) [with Type = Foam::Vector<double>, Foam::IOobject = Foam::IOobject]
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.C:31:1: note:   candidate expects 1 argument, 0 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.H:51:7: note: Foam::IOField<Foam::Vector<double> >::IOField(const Foam::IOField<Foam::Vector<double> >&)
/opt/openfoam220/src/OpenFOAM/lnInclude/IOField.H:51:7: note:   candidate expects 1 argument, 0 provided
mesquiteMotionSolver.C:121:6: error: expected ‘{’ before ‘(’ token
mesquiteMotionSolver.C: At global scope:
mesquiteMotionSolver.C:121:12: error: expected constructor, destructor, or type conversion before ‘,’ token
mesquiteMotionSolver.C:122:10: error: expected constructor, destructor, or type conversion before ‘(’ token
/opt/ThirdParty-2.2.0/mesquite-2.3.0/include/TMetricBarrier.hpp:42:27: warning: ‘Mesquite2::barrier_violated_msg’ defined but not used [-Wunused-variable]
/opt/ThirdParty-2.2.0/mesquite-2.3.0/include/AWMetricBarrier.hpp:42:27: warning: ‘Mesquite2::barrier_violated_msg_aw’ defined but not used [-Wunused-variable]
make: *** [Make/linux64GccDPOpt/mesquiteMotionSolver.o] Error 1
+ wmake libso dynamicTopoFvMesh
SOURCE=dynamicTopoFvMesh.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/openfoam220/src/meshTools/lnInclude -I/opt/openfoam220/src/dynamicMesh/lnInclude -I/opt/openfoam220/src/dynamicFvMesh/dynamicFvMesh -I/opt/openfoam220/src/dynamicMesh/fvMeshDistribute -I/opt/openfoam220/src/parallel/decompose/decompositionMethods/lnInclude -I/opt/openfoam220/src/finiteVolume/lnInclude  -IlnInclude -I. -I/opt/openfoam220/src/OpenFOAM/lnInclude -I/opt/openfoam220/src/OSspecific/POSIX/lnInclude   -fPIC -c $SOURCE -o Make/linux64GccDPOpt/dynamicTopoFvMesh.o
dynamicTopoFvMesh.C: In member function ‘bool Foam::dynamicTopoFvMesh::resetMesh()’:
dynamicTopoFvMesh.C:4286:9: error: no matching function for call to ‘Foam::mapPolyMesh::mapPolyMesh(Foam::dynamicTopoFvMesh&, Foam::label&, Foam::label&, Foam::label&, Foam::labelList&, Foam::List<Foam::objectMap>&, Foam::labelList&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::labelList&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::labelList&, Foam::labelList&, Foam::labelList&, Foam::labelHashSet&, Foam::labelListList&, Foam::labelListList&, Foam::labelListList&, Foam::labelListList&, Foam::labelListList&, Foam::pointField&, Foam::labelList&, Foam::labelList&, Foam::autoPtr<Foam::Field<double> >&, bool)’
dynamicTopoFvMesh.C:4286:9: note: candidates are:
/opt/openfoam220/src/OpenFOAM/lnInclude/mapPolyMesh.H:318:9: note: Foam::mapPolyMesh::mapPolyMesh(const Foam::polyMesh&, Foam::label, Foam::label, Foam::label, Foam::labelList&, Foam::List<Foam::objectMap>&, Foam::labelList&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::labelList&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::List<Foam::objectMap>&, Foam::labelList&, Foam::labelList&, Foam::labelList&, Foam::labelHashSet&, Foam::labelListList&, Foam::labelListList&, Foam::labelListList&, Foam::labelListList&, Foam::labelListList&, Foam::pointField&, Foam::labelList&, Foam::labelList&, bool)
/opt/openfoam220/src/OpenFOAM/lnInclude/mapPolyMesh.H:318:9: note:   candidate expects 28 arguments, 29 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/mapPolyMesh.H:286:9: note: Foam::mapPolyMesh::mapPolyMesh(const Foam::polyMesh&, Foam::label, Foam::label, Foam::label, const labelList&, const Foam::List<Foam::objectMap>&, const labelList&, const Foam::List<Foam::objectMap>&, const Foam::List<Foam::objectMap>&, const Foam::List<Foam::objectMap>&, const labelList&, const Foam::List<Foam::objectMap>&, const Foam::List<Foam::objectMap>&, const Foam::List<Foam::objectMap>&, const Foam::List<Foam::objectMap>&, const labelList&, const labelList&, const labelList&, const labelHashSet&, const labelListList&, const labelListList&, const labelListList&, const labelListList&, const labelListList&, const pointField&, const labelList&, const labelList&)
/opt/openfoam220/src/OpenFOAM/lnInclude/mapPolyMesh.H:286:9: note:   candidate expects 27 arguments, 29 provided
/opt/openfoam220/src/OpenFOAM/lnInclude/mapPolyMesh.H:275:9: note: Foam::mapPolyMesh::mapPolyMesh(const Foam::mapPolyMesh&)
/opt/openfoam220/src/OpenFOAM/lnInclude/mapPolyMesh.H:275:9: note:   candidate expects 1 argument, 29 provided
make: *** [Make/linux64GccDPOpt/dynamicTopoFvMesh.o] Error 1
+ cd fluxCorrector
+ ./Allwmake
+ [ 0 = 1 ]
+ ./AllwmakeLnInclude
+ wmakeLnInclude incompressible
+ wmake libso incompressible
/usr/bin/ld: cannot find -ldynamicTopoFvMesh
collect2: ld returned 1 exit status
make: *** [/home/administrator/OpenFOAM/administrator-2.2.0/platforms/linux64GccDPOpt/lib/libincompressibleFluxCorrector.so] Error 1
Can someone give me some suggestions?
Thanks again for the kind help!

Detian
2014.1.5
Detian Liu is offline   Reply With Quote

Old   January 5, 2014, 09:17
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Detian,

It's very likely because you are still using OpenFOAM 2.2.0. Several changes occurred since it was released. Try to update to OpenFOAM 2.2.2 or 2.2.x.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 13, 2014, 07:03
Default
  #3
New Member
 
Detian Liu
Join Date: Mar 2013
Location: Beijing, P.R.China
Posts: 20
Rep Power: 13
Detian Liu is on a distinguished road
Dear Bruno,

Thanks for the help! I will have a try!

Best regards,
Detian
Detian Liu is offline   Reply With Quote

Old   January 13, 2014, 13:50
Default
  #4
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Where is this port being hosted?
mturcios777 is offline   Reply With Quote

Old   January 13, 2014, 16:11
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

@Marco:
Quote:
Originally Posted by mturcios777 View Post
Where is this port being hosted?
On the official (I think) repository by Sandeep Menon: https://github.com/smenon/dynamicTopoFvMesh

The port is on the respective branch: https://github.com/smenon/dynamicTop...ree/Port-2.2.x

Best regards,
Bruno
mturcios777 and Detian Liu like this.
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
difficulty with paraview compiling linch OpenFOAM Installation 10 October 14, 2010 07:28


All times are GMT -4. The time now is 08:00.