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] CfMesh v1.1.2 not working as expected with OpenFOAM 8 (https://www.cfd-online.com/Forums/openfoam-community-contributions/233307-cfmesh-v1-1-2-not-working-expected-openfoam-8-a.html)

akashpatel95 January 21, 2021 01:34

CfMesh v1.1.2 not working as expected with OpenFOAM 8
 
I have tried meshing same geometry (bunny mesh in cfmesh examples) with OpenFOAM 5/6/7, and OpenFOAM 8. It works flawlessly when compiled with OpenFOAM 5/6/7 but fails to complete the process (stuck at "found x inverted boundaries") when compiled with OpenFOAM 8.


Meshers I have encountered same problem with are Cartesian2DMesh, CartesianMesh, tetMesh, and pMesh.


Has anyone tried using CfMesh with OpenFOAM 8?

Kahnbein.Kai February 14, 2021 11:19

Hey,
can you please tell, how you edit the /meshLibary/Make/Options file.
I cant even install cfMesh on OF8. I got an Error if i execte ./Allwmake > log.make 2>&1



Best regards
Kai

akashpatel95 February 14, 2021 14:49

Can you post your error log here? I can help you with that.

Kahnbein.Kai February 15, 2021 12:20

Thank you very much.



I downloaded the cfMesh-v1.1.2.tgz folder unzip it, and copied it to my OF8 folder in "~/OpenFOAM/kai-8".

I edited the "cfMesh/meshLibary/Make/Options" file like this:
Code:

ifeq (Gcc,$(findstring Gcc,$(WM_COMPILER)))
OMP_FLAGS = -DUSE_OMP -fopenmp
else
OMP_FLAGS =
endif

ifeq (OpenFOAM,$(findstring OpenFOAM,$(WM_PROJECT)))
ifeq (Int,$(findstring Int,$(WM_LABEL_OPTION)))
CFMESH_MACROS = -DNoSizeType
LIBS =
else
CFMESH_MACROS =
LIBS =
endif
endif

ifeq (v, $(findstring v, $(WM_PROJECT_VERSION)))
CFMESH_MACROS += -DOpenCFDSpecific
endif

ifeq ($(WM_PROJECT), foam)
VER := $(shell expr `echo $(WM_PROJECT_VERSION)` \>= 3.2)
ifeq ($(VER), 1)
CFMESH_MACROS = -DExtendSpecific -std=c++11
LIBS = -lmeshTools -ledgeMesh
else
CFMESH_MACROS =
endif
endif

EXE_INC = \
$(OMP_FLAGS) $(CFMESH_MACROS) \
-I$(LIB_SRC)/triSurface/lnInclude \
-I$(LIB_SRC)/surfMesh/lnInclude \
-I$(LIB_SRC)/meshTools/edgeMesh/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude

 LIB_LIBS = $(LIBS)

If i execute the order "./Allwmake > log.make 2>&1", this logfile will made:
Code:

make libso meshLibrary
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    mkdir: das Verzeichnis »/opt/openfoam8/src/meshTools/edgeMesh//lnInclude“ kann nicht angelegt werden: Keine Berechtigung
wmakeLnInclude error: failed to create include directory /opt/openfoam8/src/meshTools/edgeMesh//lnInclude
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DUSE_OMP -fopenmp -DNoSizeType -I/opt/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/surfMesh/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude  -fPIC -c utilities/meshes/polyMeshGen/polyMeshGen.C -o Make/linux64GccDPInt32Opt/utilities/meshes/polyMeshGen/polyMeshGen.o
In file included from lnInclude/meshSubset.H:162,
                from utilities/meshes/polyMeshGen/polyMeshGenPoints.H:45,
                from utilities/meshes/polyMeshGen/polyMeshGenFaces.H:40,
                from utilities/meshes/polyMeshGen/polyMeshGenCells.H:40,
                from utilities/meshes/polyMeshGen/polyMeshGen.H:39,
                from utilities/meshes/polyMeshGen/polyMeshGen.C:28:
lnInclude/meshSubsetI.H: In member function ‘bool Foam::meshSubset::operator==(const Foam::meshSubset&) const’:
lnInclude/meshSubsetI.H:173:18: warning: self-comparison always evaluates to false [-Wtautological-compare]
  173 |    if( ms.type_ != ms.type_ )
      |        ~~~~~~~~ ^~ ~~~~~~~~
In file included from utilities/meshes/polyMeshGen/polyMeshGen.C:28:
utilities/meshes/polyMeshGen/polyMeshGen.H: At global scope:
utilities/meshes/polyMeshGen/polyMeshGen.H:52:9: error: ‘IOdictionary’ does not name a type; did you mean ‘dictionary’?
  52 |        IOdictionary metaDict_;
      |        ^~~~~~~~~~~~
      |        dictionary
utilities/meshes/polyMeshGen/polyMeshGen.H: In member function ‘const Foam::dictionary& Foam::polyMeshGen::metaData() const’:
utilities/meshes/polyMeshGen/polyMeshGen.H:89:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
  89 |            return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
utilities/meshes/polyMeshGen/polyMeshGen.H: In member function ‘Foam::dictionary& Foam::polyMeshGen::metaData()’:
utilities/meshes/polyMeshGen/polyMeshGen.H:95:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
  95 |            return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
utilities/meshes/polyMeshGen/polyMeshGen.C: In constructor ‘Foam::polyMeshGen::polyMeshGen(const Foam::Time&)’:
utilities/meshes/polyMeshGen/polyMeshGen.C:40:5: error: class ‘Foam::polyMeshGen’ does not have any field named ‘metaDict_’
  40 |    metaDict_
      |    ^~~~~~~~~
utilities/meshes/polyMeshGen/polyMeshGen.C: In constructor ‘Foam::polyMeshGen::polyMeshGen(const Foam::Time&, const pointField&, const faceList&, const cellList&)’:
utilities/meshes/polyMeshGen/polyMeshGen.C:64:5: error: class ‘Foam::polyMeshGen’ does not have any field named ‘metaDict_’
  64 |    metaDict_
      |    ^~~~~~~~~
utilities/meshes/polyMeshGen/polyMeshGen.C: In constructor ‘Foam::polyMeshGen::polyMeshGen(const Foam::Time&, const pointField&, const faceList&, const cellList&, const wordList&, const labelList&, const labelList&)’:
utilities/meshes/polyMeshGen/polyMeshGen.C:100:5: error: class ‘Foam::polyMeshGen’ does not have any field named ‘metaDict_’
  100 |    metaDict_
      |    ^~~~~~~~~
utilities/meshes/polyMeshGen/polyMeshGen.C: In member function ‘void Foam::polyMeshGen::write() const’:
utilities/meshes/polyMeshGen/polyMeshGen.C:156:5: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
  156 |    metaDict_.writeHeader(fName);
      |    ^~~~~~~~~
      |    metaData
make: *** [/opt/openfoam8/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/utilities/meshes/polyMeshGen/polyMeshGen.o] Fehler 1
wmake executables
wmake cartesian2DMesh
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/executables/cartesian2DMesh“ wird betreten
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude  -fPIC -c cartesian2DMesh.C -o Make/linux64GccDPInt32Opt/cartesian2DMesh.o
In file included from ../../meshLibrary/lnInclude/meshSubset.H:162,
                from ../../meshLibrary/lnInclude/polyMeshGenPoints.H:45,
                from ../../meshLibrary/lnInclude/polyMeshGenFaces.H:40,
                from ../../meshLibrary/lnInclude/polyMeshGenCells.H:40,
                from ../../meshLibrary/lnInclude/polyMeshGen.H:39,
                from ../../meshLibrary/lnInclude/cartesian2DMeshGenerator.H:38,
                from cartesian2DMesh.C:33:
../../meshLibrary/lnInclude/meshSubsetI.H: In member function ‘bool Foam::meshSubset::operator==(const Foam::meshSubset&) const’:
../../meshLibrary/lnInclude/meshSubsetI.H:173:18: warning: self-comparison always evaluates to false [-Wtautological-compare]
  173 |    if( ms.type_ != ms.type_ )
      |        ~~~~~~~~ ^~ ~~~~~~~~
In file included from ../../meshLibrary/lnInclude/cartesian2DMeshGenerator.H:38,
                from cartesian2DMesh.C:33:
../../meshLibrary/lnInclude/polyMeshGen.H: At global scope:
../../meshLibrary/lnInclude/polyMeshGen.H:52:9: error: ‘IOdictionary’ does not name a type; did you mean ‘dictionary’?
  52 |        IOdictionary metaDict_;
      |        ^~~~~~~~~~~~
      |        dictionary
../../meshLibrary/lnInclude/polyMeshGen.H: In member function ‘const Foam::dictionary& Foam::polyMeshGen::metaData() const’:
../../meshLibrary/lnInclude/polyMeshGen.H:89:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
  89 |            return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
../../meshLibrary/lnInclude/polyMeshGen.H: In member function ‘Foam::dictionary& Foam::polyMeshGen::metaData()’:
../../meshLibrary/lnInclude/polyMeshGen.H:95:20: error: ‘metaDict_’ was not declared in this scope; did you mean ‘metaData’?
  95 |            return metaDict_;
      |                    ^~~~~~~~~
      |                    metaData
make[1]: *** [/opt/openfoam8/wmake/rules/General/transform:26: Make/linux64GccDPInt32Opt/cartesian2DMesh.o] Fehler 1
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/executables/cartesian2DMesh“ wird verlassen
make: *** [/opt/openfoam8/wmake/makefiles/apps:39: cartesian2DMesh] Fehler 2
wmake utilities
wmake checkSurfaceMesh
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/utilities/checkSurfaceMesh“ wird betreten
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude  -fPIC -fuse-ld=bfd -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/checkSurfaceMesh.o -L/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib \
    -lmeshTools -ltriSurface -lfiniteVolume -ledgeMesh -L/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib -lmeshLibrary -lOpenFOAM -ldl  \
    -lm -o /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh
/usr/bin/ld.bfd: -ledgeMesh kann nicht gefunden werden
/usr/bin/ld.bfd: -lmeshLibrary kann nicht gefunden werden
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam8/wmake/makefiles/general:142: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh] Fehler 1
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/utilities/checkSurfaceMesh“ wird verlassen
 make: *** [/opt/openfoam8/wmake/makefiles/apps:39: checkSurfaceMesh] Fehler 2


If i try "sudo ./Allwmake > log.make 2>&1"
this will appear:
Code:

./Allwmake: 3: ./Allwmake: wmake: not found ./Allwmake: 6: ./Allwmake: wmake: not found ./Allwmake: 9: ./Allwmake: wmake: not found

best regards
Kai

akashpatel95 February 15, 2021 12:57

I have uploaded my version here. https://github.com/akashaero/CfMesh-OpenFOAM-8


See if you can compile this one.


Regards,
Akash

Kahnbein.Kai February 15, 2021 14:07

Hey Akash,
thank you very much, i downloaded it, copied and run the ./allwmake script.


Unfortunatley it didnt work. For example the cartesianMesh command didnt work.
Here is the logfile
Code:

wmake libso meshLibrary
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    wmakeLnInclude error: base directory /opt/openfoam8/src/edgeMesh/ does not exist
Make/options:17: error: invalid preprocessing directive #Use
  17 | # Use the same macro for OpenFOAM.com and OpenFOAM.org
      |
wmakeLnInclude: linking include files to ./lnInclude
Making dependency list for source file voronoiMeshGenerator.C
could not open file labelledPoint.H for source file voronoiMesh/voronoiMeshGenerator/voronoiMeshGenerator.C due to No such file or directory
could not open file foamTime.H for source file voronoiMesh/voronoiMeshGenerator/voronoiMeshGenerator.C due to No such file or directory
Making dependency list for source file voronoiMeshExtractorCreateMesh.C
could not open file foamTime.H for source file voronoiMesh/voronoiMeshExtractor/voronoiMeshExtractorCreateMesh.C due to No such file or directory
Making dependency list for source file voronoiMeshExtractorAddressing.C
could not open file foamTime.H for source file voronoiMesh/voronoiMeshExtractor/voronoiMeshExtractorAddressing.C due to No such file or directory
Making dependency list for source file voronoiMeshExtractor.C
could not open file foamTime.H for source file voronoiMesh/voronoiMeshExtractor/voronoiMeshExtractor.C due to No such file or directory
Making dependency list for source file tetMeshGenerator.C
could not open file labelledPoint.H for source file tetMesh/tetMeshGenerator/tetMeshGenerator.C due to No such file or directory
could not open file foamTime.H for source file tetMesh/tetMeshGenerator/tetMeshGenerator.C due to No such file or directory
Making dependency list for source file tetMeshExtractorOctree.C
could not open file foamTime.H for source file tetMesh/tetMeshExtractorOctree/tetMeshExtractorOctree.C due to No such file or directory
Making dependency list for source file cartesian2DMeshGenerator.C
could not open file labelledPoint.H for source file cartesian2DMesh/cartesian2DMeshGenerator/cartesian2DMeshGenerator.C due to No such file or directory
could not open file foamTime.H for source file cartesian2DMesh/cartesian2DMeshGenerator/cartesian2DMeshGenerator.C due to No such file or directory
Making dependency list for source file cartesianMeshGenerator.C
could not open file labelledPoint.H for source file cartesianMesh/cartesianMeshGenerator/cartesianMeshGenerator.C due to No such file or directory
could not open file foamTime.H for source file cartesianMesh/cartesianMeshGenerator/cartesianMeshGenerator.C due to No such file or directory
Making dependency list for source file cartesianMeshExtractorDecomposeSplitHexes.C
could not open file foamTime.H for source file cartesianMesh/cartesianMeshExtractor/cartesianMeshExtractorDecomposeSplitHexes.C due to No such file or directory
Making dependency list for source file cartesianMeshExtractorPolyMesh.C
could not open file labelledPair.H for source file cartesianMesh/cartesianMeshExtractor/cartesianMeshExtractorPolyMesh.C due to No such file or directory
could not open file foamTime.H for source file cartesianMesh/cartesianMeshExtractor/cartesianMeshExtractorPolyMesh.C due to No such file or directory
Making dependency list for source file cartesianMeshExtractorPointsAndAddressing.C
could not open file foamTime.H for source file cartesianMesh/cartesianMeshExtractor/cartesianMeshExtractorPointsAndAddressing.C due to No such file or directory
Making dependency list for source file cartesianMeshExtractor.C
could not open file foamTime.H for source file cartesianMesh/cartesianMeshExtractor/cartesianMeshExtractor.C due to No such file or directory
Making dependency list for source file coordinateModifier.C
Making dependency list for source file polyMeshGenGeometryModification.C
could not open file foamTime.H for source file utilities/anisotropicMeshing/polyMeshGenGeometryModification/polyMeshGenGeometryModification.C due to No such file or directory
Making dependency list for source file surfaceMeshGeometryModification.C
Making dependency list for source file edgeMeshGeometryModification.C
Making dependency list for source file boxScaling.C
Making dependency list for source file planeScaling.C
Making dependency list for source file newCoordinateModification.C
Making dependency list for source file coordinateModification.C
make: *** Keine Regel vorhanden, um das Ziel „Make/linux64GccDPInt32Opt/utilities/checkMeshDict/checkMeshDict.C.dep“,
  benötigt von „Make/linux64GccDPInt32Opt/utilities/checkMeshDict/checkMeshDict.o“, zu erstellen.  Schluss.
wmake executables
wmake cartesian2DMesh
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/executables/cartesian2DMesh“ wird betreten
Making dependency list for source file cartesian2DMesh.C
could not open file foamTime.H for source file cartesian2DMesh.C due to No such file or directory
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude  -fPIC -c cartesian2DMesh.C -o Make/linux64GccDPInt32Opt/cartesian2DMesh.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude  -fPIC -fuse-ld=bfd -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/cartesian2DMesh.o -L/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib \
    -lmeshTools -lfiniteVolume -L/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib -lmeshLibrary -lOpenFOAM -ldl  \
    -lm -o /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/cartesian2DMesh
/usr/bin/ld.bfd: -lmeshLibrary kann nicht gefunden werden
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam8/wmake/makefiles/general:142: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/cartesian2DMesh] Fehler 1
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/executables/cartesian2DMesh“ wird verlassen
make: *** [/opt/openfoam8/wmake/makefiles/apps:39: cartesian2DMesh] Fehler 2
wmake utilities
wmake checkSurfaceMesh
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/utilities/checkSurfaceMesh“ wird betreten
Making dependency list for source file checkSurfaceMesh.C
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/surfMesh/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude  -fPIC -c checkSurfaceMesh.C -o Make/linux64GccDPInt32Opt/checkSurfaceMesh.o
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/surfMesh/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude  -fPIC -fuse-ld=bfd -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/checkSurfaceMesh.o -L/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib \
    -lmeshTools -lfiniteVolume -L/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib -lmeshLibrary -lOpenFOAM -ldl  \
    -lm -o /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh
/usr/bin/ld.bfd: -lmeshLibrary kann nicht gefunden werden
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam8/wmake/makefiles/general:142: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh] Fehler 1
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfMesh/utilities/checkSurfaceMesh“ wird verlassen
make: *** [/opt/openfoam8/wmake/makefiles/apps:39: checkSurfaceMesh] Fehler 2


Something occured to me, how is OF8 linked in you "~/bashsrc" file.
At mine, its only this line.

Code:

source /opt/openfoam8/etc/bashrc

Is yours different ?



Best regards
Kai

akashpatel95 February 15, 2021 14:24

Kai,


I have Openfoam 8 installed from the source in my home directory so mty source path in ~/.bashrc looks like this


source ~/OpenFOAM/OpenFOAM-8/etc/bashrc.


But I do not think that is what's causing the problem. Can you run al other Openfoam solvers and mesh utilities?

Kahnbein.Kai February 15, 2021 14:48

Ok, yes all other "native" commands e. g. blockMesh, snappyHexMesh, interFoam are works flawlessly. Best regards Kai

Kahnbein.Kai March 1, 2021 13:13

Hello,
its me again. So im going further, on my investigation, but a clue why the installation dont work at all i still dont have.



I even tried the Options File from the CfMesh at OpenFoam7, where the installation works flawlessly.



I executed the "env" command on my of7 and of8 installation. For my it seems very simular, so i dont realy sees any differents.

Maybe the experts do ?

Here is the return at OpenFoam7
Code:

of7
SHELL=/bin/bash
SESSION_MANAGER=local/Kai-Desktop:@/tmp/.ICE-unix/2217,unix/Kai-Desktop:/tmp/.ICE-unix/2217
WM_COMPILER=Gcc
FOAM_SETTINGS=
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
ParaView_INCLUDE_DIR=/opt/paraviewopenfoam56/include/paraview-5.6
XDG_MENU_PREFIX=gnome-
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
FOAM_MPI=openmpi-system
GNOME_SHELL_SESSION_MODE=ubuntu
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
ParaView_GL=mesa
WM_PRECISION_OPTION=DP
WM_PROJECT_USER_DIR=/home/kai/OpenFOAM/kai-7
WM_MPLIB=SYSTEMOPENMPI
XMODIFIERS=@im=ibus
DESKTOP_SESSION=ubuntu
SSH_AGENT_PID=2161
FOAM_RUN=/home/kai/OpenFOAM/kai-7/run
FOAM_EXT_LIBBIN=/opt/ThirdParty-7/platforms/linux64GccDPInt32/lib
GTK_MODULES=gail:atk-bridge
DBUS_STARTER_BUS_TYPE=session
PWD=/home/kai/OpenFOAM/kai-7/run/tutorials_of/multiphase/interFoam/laminar/damBreak_stl_II
LOGNAME=kai
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
WM_OPTIONS=linux64GccDPInt32Opt
WM_ARCH=linux64
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
ParaView_MAJOR=5.6
XAUTHORITY=/run/user/1000/gdm/Xauthority
FOAM_TUTORIALS=/opt/openfoam7/tutorials
WM_LABEL_SIZE=32
WM_PROJECT=OpenFOAM
WINDOWPATH=2
FOAM_APPBIN=/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin
WM_THIRD_PARTY_DIR=/opt/ThirdParty-7
HOME=/home/kai
USERNAME=kai
IM_CONFIG_PHASE=1
LANG=de_DE.UTF-8
WM_LABEL_OPTION=Int32
WM_CC=gcc
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CURRENT_DESKTOP=ubuntu:GNOME
WM_CFLAGS=-m64 -fPIC
FOAM_JOB_DIR=/opt/jobControl
FOAM_LIBBIN=/opt/openfoam7/platforms/linux64GccDPInt32Opt/lib
VTE_VERSION=6003
WM_LINK_LANGUAGE=c++
ParaView_VERSION=5.6.0
ParaView_DIR=/opt/paraviewopenfoam56
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/f1def7eb_f985_42e9_b0d7_7cf73da69624
FOAM_ETC=/opt/openfoam7/etc
INVOCATION_ID=6b44afa063484583a35535b8b8a4ccac
MANAGERPID=1956
FOAM_UTILITIES=/opt/openfoam7/applications/utilities
FOAM_SITE_LIBBIN=/opt/site/7/platforms/linux64GccDPInt32Opt/lib
WM_OSTYPE=POSIX
WM_PROJECT_VERSION=7
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
WM_DIR=/opt/openfoam7/wmake
TERM=xterm-256color
FOAM_SITE_APPBIN=/opt/site/7/platforms/linux64GccDPInt32Opt/bin
WM_ARCH_OPTION=64
LESSOPEN=| /usr/bin/lesspipe %s
USER=kai
WM_CXXFLAGS=-m64 -fPIC -std=c++0x
MPI_ARCH_PATH=/usr/lib/x86_64-linux-gnu/openmpi
WM_PROJECT_INST_DIR=/opt
GNOME_TERMINAL_SERVICE=:1.154
FOAM_SRC=/opt/openfoam7/src
DISPLAY=:0
SHLVL=1
FOAM_USER_LIBBIN=/home/kai/OpenFOAM/kai-7/platforms/linux64GccDPInt32Opt/lib
QT_IM_MODULE=ibus
DBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=0d2484cc9555a5ea4a237df3602e8aac
FOAM_APP=/opt/openfoam7/applications
WM_LDFLAGS=-m64
WM_CXX=g++
LD_LIBRARY_PATH=/opt/ThirdParty-7/platforms/linux64Gcc/gperftools-svn/lib:/opt/paraviewopenfoam56/lib/paraview-5.6:/opt/openfoam7/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/opt/ThirdParty-7/platforms/linux64GccDPInt32/lib/openmpi-system:/usr/lib/x86_64-linux-gnu/openmpi/lib:/home/kai/OpenFOAM/kai-7/platforms/linux64GccDPInt32Opt/lib:/opt/site/7/platforms/linux64GccDPInt32Opt/lib:/opt/openfoam7/platforms/linux64GccDPInt32Opt/lib:/opt/ThirdParty-7/platforms/linux64GccDPInt32/lib:/opt/openfoam7/platforms/linux64GccDPInt32Opt/lib/dummy
XDG_RUNTIME_DIR=/run/user/1000
WM_COMPILE_OPTION=Opt
FOAM_INST_DIR=/opt
MPI_BUFFER_SIZE=20000000
JOURNAL_STREAM=9:46863
FOAM_SOLVERS=/opt/openfoam7/applications/solvers
WM_PROJECT_DIR=/opt/openfoam7
WM_COMPILER_TYPE=system
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
FOAM_USER_APPBIN=/home/kai/OpenFOAM/kai-7/platforms/linux64GccDPInt32Opt/bin
PATH=/opt/ThirdParty-7/platforms/linux64Gcc/gperftools-svn/bin:/opt/paraviewopenfoam56/bin:/home/kai/OpenFOAM/kai-7/platforms/linux64GccDPInt32Opt/bin:/opt/site/7/platforms/linux64GccDPInt32Opt/bin:/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin:/opt/openfoam7/bin:/opt/openfoam7/wmake:/home/kai/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PV_PLUGIN_PATH=/opt/openfoam7/platforms/linux64GccDPInt32Opt/lib/paraview-5.6
GDMSESSION=ubuntu
WM_COMPILER_LIB_ARCH=64
FOAM_SIGFPE=
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=0d2484cc9555a5ea4a237df3602e8aac
_=/usr/bin/env

and here at OpenFoam8
Code:

of8
SHELL=/bin/bash
SESSION_MANAGER=local/Kai-Desktop:@/tmp/.ICE-unix/2217,unix/Kai-Desktop:/tmp/.ICE-unix/2217
WM_COMPILER=Gcc
FOAM_SETTINGS=
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
ParaView_INCLUDE_DIR=/opt/paraviewopenfoam56/include/paraview-5.6
XDG_MENU_PREFIX=gnome-
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
FOAM_MPI=openmpi-system
GNOME_SHELL_SESSION_MODE=ubuntu
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
ParaView_GL=mesa
WM_PRECISION_OPTION=DP
WM_PROJECT_USER_DIR=/home/kai/OpenFOAM/kai-8
WM_MPLIB=SYSTEMOPENMPI
XMODIFIERS=@im=ibus
DESKTOP_SESSION=ubuntu
SSH_AGENT_PID=2161
FOAM_RUN=/home/kai/OpenFOAM/kai-8/run
FOAM_EXT_LIBBIN=/opt/ThirdParty-8/platforms/linux64GccDPInt32/lib
GTK_MODULES=gail:atk-bridge
DBUS_STARTER_BUS_TYPE=session
PWD=/home/kai/OpenFOAM/kai-8/run/multiphase/interFoam/laminar/damBreak
LOGNAME=kai
XDG_SESSION_DESKTOP=ubuntu
XDG_SESSION_TYPE=x11
WM_OPTIONS=linux64GccDPInt32Opt
WM_ARCH=linux64
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
ParaView_LIB_DIR=/opt/paraviewopenfoam56/lib
ParaView_MAJOR=5.6
XAUTHORITY=/run/user/1000/gdm/Xauthority
FOAM_TUTORIALS=/opt/openfoam8/tutorials
WM_LABEL_SIZE=32
WM_PROJECT=OpenFOAM
WINDOWPATH=2
FOAM_APPBIN=/opt/openfoam8/platforms/linux64GccDPInt32Opt/bin
WM_THIRD_PARTY_DIR=/opt/ThirdParty-8
HOME=/home/kai
USERNAME=kai
IM_CONFIG_PHASE=1
LANG=de_DE.UTF-8
WM_LABEL_OPTION=Int32
WM_CC=gcc
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_CURRENT_DESKTOP=ubuntu:GNOME
WM_CFLAGS=-m64 -fPIC
FOAM_JOB_DIR=/opt/jobControl
FOAM_LIBBIN=/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib
VTE_VERSION=6003
WM_LINK_LANGUAGE=c++
ParaView_VERSION=5.6.0
ParaView_DIR=/opt/paraviewopenfoam56
GNOME_TERMINAL_SCREEN=/org/gnome/Terminal/screen/7a617517_9f98_4e78_a5a2_dc7bdbd8ff09
FOAM_ETC=/opt/openfoam8/etc
INVOCATION_ID=6b44afa063484583a35535b8b8a4ccac
MANAGERPID=1956
FOAM_UTILITIES=/opt/openfoam8/applications/utilities
FOAM_SITE_LIBBIN=/opt/site/8/platforms/linux64GccDPInt32Opt/lib
WM_OSTYPE=POSIX
WM_PROJECT_VERSION=8
LESSCLOSE=/usr/bin/lesspipe %s %s
XDG_SESSION_CLASS=user
WM_DIR=/opt/openfoam8/wmake
TERM=xterm-256color
FOAM_SITE_APPBIN=/opt/site/8/platforms/linux64GccDPInt32Opt/bin
WM_ARCH_OPTION=64
LESSOPEN=| /usr/bin/lesspipe %s
USER=kai
WM_CXXFLAGS=-m64 -fPIC -std=c++0x
MPI_ARCH_PATH=/usr/lib/x86_64-linux-gnu/openmpi
WM_PROJECT_INST_DIR=/opt
GNOME_TERMINAL_SERVICE=:1.159
FOAM_SRC=/opt/openfoam8/src
DISPLAY=:0
SHLVL=1
FOAM_USER_LIBBIN=/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib
QT_IM_MODULE=ibus
DBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=0d2484cc9555a5ea4a237df3602e8aac
FOAM_APP=/opt/openfoam8/applications
WM_LDFLAGS=-m64
WM_CXX=g++
LD_LIBRARY_PATH=/opt/ThirdParty-8/platforms/linux64Gcc/gperftools-svn/lib:/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib/paraview-5.6:/opt/paraviewopenfoam56/lib:/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib/openmpi-system:/opt/ThirdParty-8/platforms/linux64GccDPInt32/lib/openmpi-system:/usr/lib/x86_64-linux-gnu/openmpi/lib:/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib:/opt/site/8/platforms/linux64GccDPInt32Opt/lib:/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib:/opt/ThirdParty-8/platforms/linux64GccDPInt32/lib:/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib/dummy
XDG_RUNTIME_DIR=/run/user/1000
WM_COMPILE_OPTION=Opt
FOAM_INST_DIR=/opt
MPI_BUFFER_SIZE=20000000
JOURNAL_STREAM=9:46863
FOAM_SOLVERS=/opt/openfoam8/applications/solvers
WM_PROJECT_DIR=/opt/openfoam8
WM_COMPILER_TYPE=system
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
FOAM_USER_APPBIN=/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin
PATH=/opt/ThirdParty-8/platforms/linux64Gcc/gperftools-svn/bin:/opt/paraviewopenfoam56/bin:/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin:/opt/site/8/platforms/linux64GccDPInt32Opt/bin:/opt/openfoam8/platforms/linux64GccDPInt32Opt/bin:/opt/openfoam8/bin:/opt/openfoam8/wmake:/home/kai/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
PV_PLUGIN_PATH=/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib/paraview-5.6
GDMSESSION=ubuntu
WM_COMPILER_LIB_ARCH=64
FOAM_SIGFPE=
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=0d2484cc9555a5ea4a237df3602e8aac
_=/usr/bin/env


Is there any note why the isntallation dont work problably.



Best regards
Kai

akashpatel95 April 6, 2021 18:17

CfMesh compatible with OpenFOAM 8
 
It looks like someone is maintaining an updated fork for CfMesh which is compatible with OpenFOAM 8.0. Try this and see if this works



https://sourceforge.net/p/cfmesh-cfd...i/master/tree/

Kahnbein.Kai April 10, 2021 12:14

Thank you for that information. It dosent work at my computer.


When i do "./Allwmake > log.make 2>&1", i will get this message:
Code:

wmake libso meshLibrary
wmakeLnIncludeAll: running wmakeLnInclude on dependent libraries:
    wmakeLnInclude error: base directory /opt/openfoam8/src/edgeMesh/ does not exist
wmake executables
wmake cartesian2DMesh
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfmesh/executables/cartesian2DMesh“ wird betreten
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_VERSION_6 -DNoSizeType  -I/opt/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/surfMesh/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude  -fPIC -fuse-ld=bfd -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/cartesian2DMesh.o -L/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib \
    -ltriSurface -lmeshTools -lmeshLibrary -lOpenFOAM -ldl  \
    -lm -o /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/cartesian2DMesh
/usr/bin/ld.bfd: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib/libmeshLibrary.so: undefined reference to `Foam::dictionary::dictionary(Foam::Istream&)'
/usr/bin/ld.bfd: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib/libmeshLibrary.so: undefined reference to `Foam::Ostream::write(Foam::keyType const&)'
/usr/bin/ld.bfd: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib/libmeshLibrary.so: undefined reference to `Foam::UOPstream::write(Foam::token const&)'
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam8/wmake/makefiles/general:142: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/cartesian2DMesh] Fehler 1
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfmesh/executables/cartesian2DMesh“ wird verlassen
make: *** [/opt/openfoam8/wmake/makefiles/apps:39: cartesian2DMesh] Fehler 2
wmake utilities
wmake checkSurfaceMesh
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfmesh/utilities/checkSurfaceMesh“ wird betreten
g++ -std=c++11 -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -Wno-attributes -O3  -DNoRepository -ftemplate-depth-100 -DFOAM_VERSION_6 -DNoSizeType  -I/opt/openfoam8/src/triSurface/lnInclude -I/opt/openfoam8/src/surfMesh/lnInclude -I/opt/openfoam8/src/meshTools/lnInclude -I/opt/openfoam8/src/finiteVolume/lnInclude -I/opt/openfoam8/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -L/home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib -IlnInclude -I. -I/opt/openfoam8/src/OpenFOAM/lnInclude -I/opt/openfoam8/src/OSspecific/POSIX/lnInclude  -fPIC -fuse-ld=bfd -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/checkSurfaceMesh.o -L/opt/openfoam8/platforms/linux64GccDPInt32Opt/lib \
    -ltriSurface -lmeshTools -lmeshLibrary -lOpenFOAM -ldl  \
    -lm -o /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh
/usr/bin/ld.bfd: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib/libmeshLibrary.so: undefined reference to `Foam::dictionary::dictionary(Foam::Istream&)'
/usr/bin/ld.bfd: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib/libmeshLibrary.so: undefined reference to `Foam::Ostream::write(Foam::keyType const&)'
/usr/bin/ld.bfd: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/lib/libmeshLibrary.so: undefined reference to `Foam::UOPstream::write(Foam::token const&)'
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam8/wmake/makefiles/general:142: /home/kai/OpenFOAM/kai-8/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh] Fehler 1
make[1]: Verzeichnis „/home/kai/OpenFOAM/kai-8/cfmesh/utilities/checkSurfaceMesh“ wird verlassen
make: *** [/opt/openfoam8/wmake/makefiles/apps:39: checkSurfaceMesh] Fehler 2


mzzmrt April 10, 2021 15:27

as a test, I have

1. tried to compile the version above in the github link on OpenFOAM 8 installation, no success.
It did not compiled at all.

2. tried to compile the version above in the sourceforge link on OpenFOAM 8 installation.
It did compiled but many features are not working such as pMesh, tetMesh.

cartesianMesh seems working though...


All times are GMT -4. The time now is 22:39.