CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [cfMesh] installation Problems with v1.1.1 and OpenFOAM 3.0.1 (https://www.cfd-online.com/Forums/openfoam-community-contributions/173227-installation-problems-v1-1-1-openfoam-3-0-1-a.html)

astronauti June 15, 2016 18:21

installation Problems with v1.1.1 and OpenFOAM 3.0.1
 
Hi,

I tried to install cfMesh on Ubuntu 16.04 and OpenFoam 3.0.1, but there is a problem while installing it. I don't understand the error message:
Code:

g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/triSurface/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/edgeMesh/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/meshTools/lnInclude -IlnInclude -I. -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude  -fPIC -c utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C -o Make/linux64GccDPInt64Opt/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o
In file included from lnInclude/DynList.H:233:0,
                from lnInclude/VRWGraph.H:42,
                from lnInclude/meshSubset.H:40,
                from lnInclude/polyMeshGenPoints.H:42,
                from lnInclude/polyMeshGenFaces.H:40,
                from lnInclude/polyMeshGenCells.H:40,
                from lnInclude/polyMeshGen.H:39,
                from utilities/meshes/polyMeshGenModifier/polyMeshGenModifier.H:40,
                from utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.C:28:
lnInclude/DynListI.H: In instantiation of ‘Foam::DynList<T, staticSize>::DynList(const ListType&) [with ListType = int; T = long int; long int staticSize = 16l]’:
lnInclude/helperFunctionsTopologyManipulationI.H:491:34:  required from here
lnInclude/DynListI.H:136:12: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
    setSize(l.size());
            ^
lnInclude/DynListI.H:138:32: error: subscripted value is neither array nor pointer
        this->operator[](i) = l[i];
                                ^
lnInclude/DynListI.H: In instantiation of ‘Foam::DynList<T, staticSize>::DynList(const ListType&) [with ListType = int; T = Foam::Vector2D<double>; long int staticSize = 6l]’:
lnInclude/helperFunctionsGeometryQueriesI.H:1059:37:  required from here
lnInclude/DynListI.H:136:12: error: request for member ‘size’ in ‘l’, which is of non-class type ‘const int’
    setSize(l.size());
            ^
lnInclude/DynListI.H:138:32: error: subscripted value is neither array nor pointer
        this->operator[](i) = l[i];
                                ^
/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/wmake/rules/General/transform:8: die Regel für Ziel „Make/linux64GccDPInt64Opt/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o“ scheiterte
make: *** [Make/linux64GccDPInt64Opt/utilities/meshes/polyMeshGenModifier/polyMeshGenModifierAddBufferCells.o] Fehler 1
make[1]: Verzeichnis „/home/sebastian/cfMesh-v1.1.1/executables/cartesian2DMesh“ wird betreten
Making dependency list for source file cartesian2DMesh.C
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/triSurface/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/meshTools/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/finiteVolume/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude  -fPIC -c cartesian2DMesh.C -o Make/linux64GccDPInt64Opt/cartesian2DMesh.o
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/triSurface/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/meshTools/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/finiteVolume/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt64Opt/cartesian2DMesh.o -L/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/platforms/linux64GccDPInt64Opt/lib \
    -lmeshTools -ltriSurface -lfiniteVolume -ledgeMesh -L/home/sebastian/OpenFOAM/sebastian-3.0.1/platforms/linux64GccDPInt64Opt/lib -lmeshLibrary -lOpenFOAM -ldl  \
    -lm -o /home/sebastian/OpenFOAM/sebastian-3.0.1/platforms/linux64GccDPInt64Opt/bin/cartesian2DMesh
/usr/bin/ld: cannot find -lmeshLibrary
collect2: error: ld returned 1 exit status
/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/wmake/Makefile:138: die Regel für Ziel „/home/sebastian/OpenFOAM/sebastian-3.0.1/platforms/linux64GccDPInt64Opt/bin/cartesian2DMesh“ scheiterte
make[1]: *** [/home/sebastian/OpenFOAM/sebastian-3.0.1/platforms/linux64GccDPInt64Opt/bin/cartesian2DMesh] Fehler 1
make[1]: Verzeichnis „/home/sebastian/cfMesh-v1.1.1/executables/cartesian2DMesh“ wird verlassen
/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/wmake/MakefileApps:39: die Regel für Ziel „cartesian2DMesh“ scheiterte
make: *** [cartesian2DMesh] Fehler 2
make[1]: Verzeichnis „/home/sebastian/cfMesh-v1.1.1/utilities/FLMAToSurface“ wird betreten
Making dependency list for source file FLMAToSurface.C
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I../../meshLibrary/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/triSurface/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/meshTools/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/edgeMesh/lnInclude -IlnInclude -I. -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude  -fPIC -c FLMAToSurface.C -o Make/linux64GccDPInt64Opt/FLMAToSurface.o
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=64 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I../../meshLibrary/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/triSurface/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/meshTools/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/edgeMesh/lnInclude -IlnInclude -I. -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/OpenFOAM/lnInclude -I/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt64Opt/FLMAToSurface.o -L/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/platforms/linux64GccDPInt64Opt/lib \
    -ltriSurface -L/home/sebastian/OpenFOAM/sebastian-3.0.1/platforms/linux64GccDPInt64Opt/lib -lmeshLibrary -lmeshTools -ledgeMesh -lOpenFOAM -ldl  \
    -lm -o /home/sebastian/OpenFOAM/sebastian-3.0.1/platforms/linux64GccDPInt64Opt/bin/FLMAToSurface
/usr/bin/ld: cannot find -lmeshLibrary
collect2: error: ld returned 1 exit status
/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/wmake/Makefile:138: die Regel für Ziel „/home/sebastian/OpenFOAM/sebastian-3.0.1/platforms/linux64GccDPInt64Opt/bin/FLMAToSurface“ scheiterte
make[1]: *** [/home/sebastian/OpenFOAM/sebastian-3.0.1/platforms/linux64GccDPInt64Opt/bin/FLMAToSurface] Fehler 1
make[1]: Verzeichnis „/home/sebastian/cfMesh-v1.1.1/utilities/FLMAToSurface“ wird verlassen
/home/sebastian/OpenFOAM/OpenFOAM-3.0.1/wmake/MakefileApps:39: die Regel für Ziel „FLMAToSurface“ scheiterte
make: *** [FLMAToSurface] Fehler 2

E// It seems like you can not compile it with OpenFOAM 3.0.x, so I installed OF2.4 and now it works, so this thread can be closed.


All times are GMT -4. The time now is 17:14.