zoukankan      html  css  js  c++  java
  • 运行cfdemCFDEMuti编译时出现的错误

    运行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

  • 相关阅读:
    Silverlight 开发环境
    Silverlight通过代码恢复控件属性到默认值
    msn登陆弹出“msnmsgr.exe无法找到入口”的解决办法
    Silverlight UI Designer has thrown an unhandled exception
    数据访问技术路线图
    Could Not Load Type ‘System.ServiceModel.Activation.HttpModule’
    卸载Macfee杀毒软件之后Outlook无法加载项scanotlk.dll,outlook已经将其禁用
    SQL Server 2008 无法生成FRunCM线程
    excel2007数据挖掘客户端看不到
    Windows Server 2008 R2 激活文件备份与还原方法如下
  • 原文地址:https://www.cnblogs.com/chunleili/p/12758215.html
Copyright © 2011-2022 走看看