Some errors occured when i installed openfoam-adapter in my system.
Here is the description of my system:
- precice-2.1.0(build as a shared library)
- openfoam5.x
- centos7.4
when I run ./Allwmake , I get the following log:
Building the OpenFOAM adapter for preCICE...
Current OpenFOAM environment:
WM_PROJECT = OpenFOAM
WM_PROJECT_VERSION = 5.x
The adapter will be built into:
ADAPTER_TARGET_DIR = /home/hhuzty/OpenFOAM/hhuzty-5.x/platforms/linux64GccDPInt64Opt/lib
The following building options will be used:
ADAPTER_PREP_FLAGS = -DADAPTER_DEBUG_MODE
ADAPTER_WMAKE_OPTIONS =
Dependencies (preCICE) will be located using the following environment variables:
ADAPTER_PRECICE_ROOT =
preCICE dependencies: not specified (ok if preCICE is built as a shared library)
ADAPTER_PKG_CONFIG_CFLAGS = -I/home/hhuzty/precice-2.1.0/include
ADAPTER_PKG_CONFIG_LIBS = -L/home/hhuzty/precice-2.1.0/lib64 -lprecice
ADAPTER_GLOBAL_CPLUS_INC_PATHS = -I/home/hhuzty/boost-1.72.0/include -I/home/hhuzty/boost-1.72.0/include -I/home/hhuzty/boost-1.72.0/include -I/home/hhuzty/boost-1.72.0/include
ADAPTER_GLOBAL_LD_LIBRARY_PATHS = -L/home/hhuzty/OpenFOAM/ThirdParty-5.x/platforms/linux64Gcc/CGAL-4.10/lib64 -L/home/hhuzty/OpenFOAM/ThirdParty-5.x/platforms/linux64Gcc/boost_1_55_0/lib -L/home/hhuzty/OpenFOAM/ThirdParty-5.x/platforms/linux64Gcc/gperftools-svn/lib -L/home/hhuzty/OpenFOAM/ThirdParty-5.x/platforms/linux64Gcc/ParaView-5.4.0/lib/paraview-5.4 -L/home/hhuzty/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt64Opt/lib/openmpi-2.1.1 -L/home/hhuzty/OpenFOAM/ThirdParty-5.x/platforms/linux64GccDPInt64/lib/openmpi-2.1.1 -L/home/hhuzty/OpenFOAM/ThirdParty-5.x/platforms/linux64Gcc/openmpi-2.1.1/lib -L/home/hhuzty/OpenFOAM/ThirdParty-5.x/platforms/linux64Gcc/openmpi-2.1.1/lib64 -L/home/hhuzty/OpenFOAM/hhuzty-5.x/platforms/linux64GccDPInt64Opt/lib -L/home/hhuzty/OpenFOAM/site/5.x/platforms/linux64GccDPInt64Opt/lib -L/home/hhuzty/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt64Opt/lib -L/home/hhuzty/OpenFOAM/ThirdParty-5.x/platforms/linux64GccDPInt64/lib -L/home/hhuzty/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt64Opt/lib/dummy -L/home/hhuzty/precice-2.1.0/lib64 -L/home/hhuzty/petsc-3.14.0//lib -L/home/hhuzty/openmpi-2.1.1/lib -L/home/hhuzty/boost-1.72.0/lib -L/home/hhuzty/gcc-5.3.0/libexe -L/home/hhuzty/gcc-5.3.0/lib64 -L/home/hhuzty/gcc-5.3.0/lib -L/home/hhuzty/gcc-5.3.0/libexe -L/home/hhuzty/openmpi-2.1.1/lib/ -L/home/hhuzty/gcc-5.3.0/libexe -L/home/hhuzty/gcc-5.3.0/libexe
ADAPTER_GLOBAL_LIBRARY_PATHS = -L/home/hhuzty/boost-1.72.0/lib -L/home/hhuzty/boost-1.72.0/lib -L/home/hhuzty/boost-1.72.0/lib -L/home/hhuzty/boost-1.72.0/lib
Building with WMake (see the wmake.log log file)...
=== ERROR: Building completed with linking problems: there were undefined symbols. ===
Possible causes:
- Is preCICE discoverable at runtime? Check the content of ADAPTER_PKG_CONFIG_LIBS and ADAPTER_GLOBAL_LD_LIBRARY_PATHS above.
- If preCICE is (in purpose) only build as a static library, please set the ADAPTER_PRECICE_DEP in this script appropriately (see comments).
See wmake.log and ldd.log for more details.
Here are the wmake.log, Allwmake.log and ldd.log:
Allwmake.log (2.9 KB) ldd.log (7.4 KB) wmake.log (30.9 KB)
Anybody help?