Hi Oliver,
oliveroxtoby wrote: ↑Thu Apr 11, 2019 4:36 am
Could you try to to the build manually, like this (from a terminal):
Code: Select all
source /opt/openfoam-1812/etc/bashrc
cd /home/herbert/OpenFOAM/herbert-1812/cfmesh-cfdof
./Allwmake
and see if you still get the "undefined reference" errors (the "could not find file ..." errors are normal and can be ignored).
The undefined reference errors are still there if i try it:
Code: Select all
herbert@linux-uo4o:~> source /opt/openfoam-1812/etc/bashrc
herbert@linux-uo4o:~> cd /home/herbert/OpenFOAM/herbert-1812/cfmesh-cfdof
herbert@linux-uo4o:~/OpenFOAM/herbert-1812/cfmesh-cfdof> ./Allwmake
wmake libso meshLibrary
wmake executables
wmake cartesian2DMesh
make[1]: Verzeichnis „/home/herbert/OpenFOAM/herbert-1812/cfmesh-cfdof/executables/cartesian2DMesh“ wird betreten
g++ -std=c++11 -m64 -DOPENFOAM=1812 -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 -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam-1812/src/triSurface/lnInclude -I/opt/openfoam-1812/src/surfMesh/lnInclude -I/opt/openfoam-1812/src/meshTools/lnInclude -I/opt/openfoam-1812/src/finiteVolume/lnInclude -I/opt/openfoam-1812/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam-1812/src/OpenFOAM/lnInclude -I/opt/openfoam-1812/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/cartesian2DMesh.o -L/opt/openfoam-1812/platforms/linux64GccDPInt32Opt/lib \
-lmeshTools -lsurfMesh -lfiniteVolume -L/home/herbert/OpenFOAM/herbert-1812/platforms/linux64GccDPInt32Opt/lib -lmeshLibrary -lOpenFOAM -ldl \
-lm -o /home/herbert/OpenFOAM/herbert-1812/platforms/linux64GccDPInt32Opt/bin/cartesian2DMesh
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: Make/linux64GccDPInt32Opt/cartesian2DMesh.o: in function `main':
cartesian2DMesh.C:(.text.startup+0x13d): undefined reference to `Foam::cartesian2DMeshGenerator::cartesian2DMeshGenerator(Foam::Time const&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cartesian2DMesh.C:(.text.startup+0x1c1): undefined reference to `Foam::cartesian2DMeshGenerator::writeMesh() const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cartesian2DMesh.C:(.text.startup+0x1e8): undefined reference to `Foam::cartesian2DMeshGenerator::~cartesian2DMeshGenerator()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: cartesian2DMesh.C:(.text.startup+0x22b): undefined reference to `Foam::cartesian2DMeshGenerator::~cartesian2DMeshGenerator()'
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam-1812/wmake/makefiles/general:138: /home/herbert/OpenFOAM/herbert-1812/platforms/linux64GccDPInt32Opt/bin/cartesian2DMesh] Fehler 1
make[1]: Verzeichnis „/home/herbert/OpenFOAM/herbert-1812/cfmesh-cfdof/executables/cartesian2DMesh“ wird verlassen
make: *** [/opt/openfoam-1812/wmake/makefiles/apps:27: cartesian2DMesh] Fehler 2
wmake utilities
wmake checkSurfaceMesh
make[1]: Verzeichnis „/home/herbert/OpenFOAM/herbert-1812/cfmesh-cfdof/utilities/checkSurfaceMesh“ wird betreten
g++ -std=c++11 -m64 -DOPENFOAM=1812 -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 -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -DNoSizeType -I/opt/openfoam-1812/src/triSurface/lnInclude -I/opt/openfoam-1812/src/surfMesh/lnInclude -I/opt/openfoam-1812/src/meshTools/lnInclude -I/opt/openfoam-1812/src/finiteVolume/lnInclude -I/opt/openfoam-1812/src/edgeMesh/lnInclude -I../../meshLibrary/lnInclude -IlnInclude -I. -I/opt/openfoam-1812/src/OpenFOAM/lnInclude -I/opt/openfoam-1812/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/checkSurfaceMesh.o -L/opt/openfoam-1812/platforms/linux64GccDPInt32Opt/lib \
-lmeshTools -lsurfMesh -lfiniteVolume -L/home/herbert/OpenFOAM/herbert-1812/platforms/linux64GccDPInt32Opt/lib -lmeshLibrary -lOpenFOAM -ldl \
-lm -o /home/herbert/OpenFOAM/herbert-1812/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: Make/linux64GccDPInt32Opt/checkSurfaceMesh.o: in function `main':
checkSurfaceMesh.C:(.text.startup+0x2ba): undefined reference to `Foam::triSurf::triSurf(Foam::fileName const&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x327): undefined reference to `Foam::triSurfaceChecks::calculateBoundingBox(Foam::triSurf const&, Foam::boundBox&)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x4b8): undefined reference to `Foam::triSurfaceChecks::checkSurfaceManifolds(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x5a6): undefined reference to `Foam::triSurfaceChecks::checkForHoles(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x662): undefined reference to `Foam::triSurfaceChecks::checkForNonManifoldEdges(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x700): undefined reference to `Foam::triSurfaceChecks::checkDisconnectedParts(Foam::triSurf&, Foam::word)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x7a7): undefined reference to `Foam::triSurfaceChecks::checkAngles(Foam::triSurf&, Foam::word, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x84b): undefined reference to `Foam::triSurfaceChecks::checkSelfIntersections(Foam::triSurf&, Foam::word, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x904): undefined reference to `Foam::triSurfaceChecks::checkOverlaps(Foam::triSurf&, Foam::word, double, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0x999): undefined reference to `Foam::triSurfaceChecks::checkCollocatedPoints(Foam::triSurf&, Foam::word, double)'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0xa9e): undefined reference to `Foam::triSurf::writeSurface(Foam::fileName const&) const'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0xac5): undefined reference to `Foam::triSurf::~triSurf()'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: checkSurfaceMesh.C:(.text.startup+0xf8b): undefined reference to `Foam::triSurf::~triSurf()'
collect2: error: ld returned 1 exit status
make[1]: *** [/opt/openfoam-1812/wmake/makefiles/general:138: /home/herbert/OpenFOAM/herbert-1812/platforms/linux64GccDPInt32Opt/bin/checkSurfaceMesh] Fehler 1
make[1]: Verzeichnis „/home/herbert/OpenFOAM/herbert-1812/cfmesh-cfdof/utilities/checkSurfaceMesh“ wird verlassen
make: *** [/opt/openfoam-1812/wmake/makefiles/apps:27: checkSurfaceMesh] Fehler 2
herbert@linux-uo4o:~/OpenFOAM/herbert-1812/cfmesh-cfdof>
It would also be interesting to try installing HiSA and see if you get the same errors there.
wow, HiSA sems to be installed without an error.
I don*t try it with the updated cfdOF WB before, - because of the error mesages of cfmesh. - Sorry