运行cfdemCFDEMuti编译时出现的错误

本文详细记录了在运行cfdemCFDEMuti编译CFDEM的utilities时遇到的错误及解决方案,主要涉及动态库链接问题,通过修改ld.so.conf文件并添加缺失的动态库路径解决了编译错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

运行cfdemCFDEMuti编译时出现的错误


在安装CFDEM时,输入

cfdemCFDEMuti

进行utilities的编译

报错如下

This routine will compile the utilities specified in utilities-list.txt

Please provide the utilities to be compiled in the /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/src/lagrangian/cfdemParticle/etc/utilities-list.txt file.
structure:
path to provide the path relative to CFDEM_UT_DIR

example:
cfdemPostproc/dir

running compilation in pseudo-parallel mode of 1 utilities
do compilation on 12 procs in 1 chunks
waiting...
compiling cfdemPostproc

// log_compileCFDEMcoupling_cfdemPostproc_cfdemPostproc-2019-03-04-16:36 //

/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/applications/utilities/cfdemPostproc

removing all .dep files ...
Making dependency list for source file cfdemPostproc.C
could not open file omp.h for source file cfdemPostproc.C due to No such file or directory
could not open file openmpi/ompi/mpi/cxx/mpicxx.h for source file cfdemPostproc.C due to No such file or directory
could not open file math.h for source file cfdemPostproc.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 -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -DSUPERQUADRIC_ACTIVE_FLAG -DNONSPHERICAL_ACTIVE_FLAG -DCFDEMWMPROJECTVERSION="50" -I/usr/local/include -pthread -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/TurbulenceModels/incompressible/lnInclude -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/fvOptions/lnInclude -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/transportModels -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude -I/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/src/lagrangian/cfdemParticle/lnInclude -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/meshTools/lnInclude -I/home/ubantucl/LIGGGHTS/LIGGGHTS-PUBLIC/src -IlnInclude -I. -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/OSspecific/POSIX/lnInclude -fPIC -c cfdemPostproc.C -o Make/linux64GccDPInt32Opt/cfdemPostproc.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 -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -DSUPERQUADRIC_ACTIVE_FLAG -DNONSPHERICAL_ACTIVE_FLAG -DCFDEMWMPROJECTVERSION="50" -I/usr/local/include -pthread -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/TurbulenceModels/turbulenceModels/lnInclude -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/TurbulenceModels/incompressible/lnInclude -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/fvOptions/lnInclude -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/transportModels -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/transportModels/incompressible/singlePhaseTransportModel -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude -I/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/src/lagrangian/cfdemParticle/lnInclude -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/meshTools/lnInclude -I/home/ubantucl/LIGGGHTS/LIGGGHTS-PUBLIC/src -IlnInclude -I. -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude -I/home/ubantucl/OpenFOAM/OpenFOAM-5.x/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPInt32Opt/cfdemPostproc.o -L/home/ubantucl/OpenFOAM/OpenFOAM-5.x/platforms/linux64GccDPInt32Opt/lib \
-L/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib -lturbulenceModels -lincompressibleTurbulenceModels -lfvOptions -lincompressibleTransportModels -lfiniteVolume -llagrangianCFDEM-PUBLIC-5.x -lOpenFOAM -ldl \
-lm -o /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/bin/cfdemPostproc
/usr/bin/ld: warning: libvtkCommonCore-8.0.so.1, needed by /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkIOCore-8.0.so.1, needed by /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkIOXML-8.0.so.1, needed by /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkIOLegacy-8.0.so.1, needed by /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkCommonDataModel-8.0.so.1, needed by /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkIOParallelXML-8.0.so.1, needed by /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkParallelCore-8.0.so.1, needed by /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkParallelMPI-8.0.so.1, needed by /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkCommonExecutionModel-8.0.so.1, needed by /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libvtkFiltersCore-8.0.so.1, needed by /home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so, not found (try using -rpath or -rpath-link)
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkPolyData::SetVerts(vtkCellArray*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLPPolyDataWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*, vtkSmartPointerBase::NoReference const&)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkMultiBlockDataSet::GetBlock(unsigned int)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkDebugLeaksManager::vtkDebugLeaksManager()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLUnstructuredGridWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkCommunicator::Receive(vtkDataObject*, int, int)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkObjectBase*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkMultiProcessController::GetGlobalController()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkHexahedron::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkObjectFactoryRegistryCleanup::vtkObjectFactoryRegistryCleanup()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkPolyData::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkFieldData::GetAbstractArray(int)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLPRectilinearGridWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLPolyDataWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkSmartPointerBase::operator=(vtkSmartPointerBase const&)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkPolyDataAlgorithm::GetOutput()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkRectilinearGridWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkDataObjectTree::GetChildMetaData(unsigned int)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkDataSetAlgorithm::SetInputData(vtkDataObject*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkCellDataToPointData::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLWriter::SetDataModeToBinary()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkWriter::SetInputData(vtkDataObject*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkDebugLeaksManager::~vtkDebugLeaksManager()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkFieldData::GetArray(int)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkAppendPolyData::AddInputData(vtkPolyData*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkSmartPointerBase::operator=(vtkObjectBase*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkCommunicator::Send(vtkDataObject*, int, int)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLWriter::Write()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkDataSetAlgorithm::GetOutput()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkPolyData::SetLines(vtkCellArray*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLPUnstructuredGridWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkPolyData::SetPolys(vtkCellArray*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkPointDataToCellData::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLWriter::SetDataModeToAscii()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkIdList::SetNumberOfIds(long long)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkUnstructuredGridWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLWriter::SetCompressorType(int)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkMPIController::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkStringArray::InsertNextValue(char const*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkUnstructuredGrid::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkMultiBlockDataSet::GetNumberOfBlocks()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkRectilinearGrid::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkCompositeDataSet::NAME()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkMultiBlockDataSet::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkLine::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkRectilinearGrid::SetDimensions(int, int, int)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkCellArray::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkSmartPointerBase::vtkSmartPointerBase(vtkSmartPointerBase const&)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkDoubleArray::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkInformation::Set(vtkInformationStringKey*, char const*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLRectilinearGridWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkStringArray::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkMultiBlockDataSet::SetBlock(unsigned int, vtkDataObject*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkObjectFactoryRegistryCleanup::~vtkObjectFactoryRegistryCleanup()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLMultiBlockDataWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkAOSDataArrayTemplate::WritePointer(long long, long long)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkAppendPolyData::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkSmartPointerBase::~vtkSmartPointerBase()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLPImageDataWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkTriangle::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkPolyDataWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkIntArray::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkMultiProcessController::SetGlobalController(vtkMultiProcessController*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLImageDataWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLWriter::SetInputData(vtkDataObject*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkPoints::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkFieldData::AddArray(vtkAbstractArray*)'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkXMLPMultiBlockDataWriter::New()'
/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/lib/liblmp_auto.so: undefined reference to `vtkUnstructuredGrid::SetCells(int, vtkCellArray*)'
collect2: error: ld returned 1 exit status
/home/ubantucl/OpenFOAM/OpenFOAM-5.x/wmake/makefiles/general:140: recipe for target '/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/bin/cfdemPostproc' failed
make: *** [/home/ubantucl/CFDEM/CFDEMcoupling-PUBLIC-5.x/platforms/linux64GccDPInt32Opt/bin/cfdemPostproc] Error 1
waiting...
compilation done.
waiting...

解决如下

找到ld.so.conf文件,用以链接动态库。

sudo gedit /etc/ld.so.conf

然后将报错中缺少的动态库文件地址加到末尾。

include /etc/ld.so.conf.d/*.conf
/home/ubantucl/LIGGGHTS/LIGGGHTS-PUBLIC/lib/vtk/build/lib

如果是单独装的vtk,一般动态库文件在

/usr/local/lib

参考自
http://blog.sina.com.cn/s/blog_69b6a7c601012pgo.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值