关于OpenFOAM-v1706安装失败的问题
-
准确的说应该是编译Thirdparty时就已经遇到的问题:
15%] Python Wrapping - generating vtkCellLinksPython.cxx [ 15%] Python Wrapping - generating vtkCellLocatorPython.cxx [ 15%] Python Wrapping - generating vtkCellTypesPython.cxx In file included from /usr/include/c++/5/random:49:0, from /usr/include/c++/5/bits/stl_algo.h:66, from /usr/include/c++/5/algorithm:62, from /home/maoyanjun/OpenFOAM/ThirdParty-v1706/build/linux64Gcc/ParaView-5.4.0/VTK/Common/Core/vtkSMPToolsInternal.h:15, from /home/maoyanjun/OpenFOAM/ThirdParty-v1706/ParaView-v5.4.0/VTK/Common/Core/vtkSMPTools.h:33, from /home/maoyanjun/OpenFOAM/ThirdParty-v1706/ParaView-v5.4.0/VTK/Common/ExecutionModel/vtkThreadedImageAlgorithm.cxx:27: /usr/include/c++/5/bits/random.h:4014:31: internal compiler error: Segmentation fault typename _CharT, typename _Traits> ^ [ 15%] Building CXX object VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/vtkTrivialConsumer.cxx.o Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/build.make:1287: recipe for target 'VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/vtkThreadedImageAlgorithm.cxx.o' failed make[2]: *** [VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/vtkThreadedImageAlgorithm.cxx.o] Error 1 make[2]: *** Waiting for unfinished jobs.... [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkDirectedAcyclicGraphClientServer.cxx.o [ 15%] Python Wrapping - generating vtkCompositeDataSetPython.cxx [ 15%] Python Wrapping - generating vtkCompositeDataIteratorPython.cxx [ 15%] Python Wrapping - generating vtkConePython.cxx [ 15%] Python Wrapping - generating vtkConvexPointSetPython.cxx [ 15%] Python Wrapping - generating vtkCubicLinePython.cxx [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkDirectedGraphClientServer.cxx.o [ 15%] Python Wrapping - generating vtkCylinderPython.cxx [ 15%] Python Wrapping - generating vtkDataSetCellIteratorPython.cxx [ 15%] Python Wrapping - generating vtkDataObjectCollectionPython.cxx [ 15%] Python Wrapping - generating vtkDataObjectPython.cxx [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkDistributedGraphHelperClientServer.cxx.o [ 15%] Python Wrapping - generating vtkDataObjectTypesPython.cxx [ 15%] Python Wrapping - generating vtkDataObjectTreePython.cxx [ 15%] Python Wrapping - generating vtkDataObjectTreeIteratorPython.cxx [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkEdgeListIteratorClientServer.cxx.o [ 15%] Python Wrapping - generating vtkDataSetAttributesPython.cxx [ 15%] Python Wrapping - generating vtkDataSetCollectionPython.cxx [ 15%] Python Wrapping - generating vtkDataSetPython.cxx [ 15%] Python Wrapping - generating vtkDirectedAcyclicGraphPython.cxx [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkEdgeTableClientServer.cxx.o CMakeFiles/Makefile2:2016: recipe for target 'VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/all' failed make[1]: *** [VTK/Common/ExecutionModel/CMakeFiles/vtkCommonExecutionModel.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 15%] Building CXX object Wrapping/ClientServer/CMakeFiles/vtkCommonDataModelCS.dir/vtkEmptyCellClientServer.cxx.o
-
结论:在出错后,不断尝试重复编译七次之后,终于成功了,给大家提个醒,遇到困难,不要灰心,不要放弃,多尝试几次或许就好了。愿大家不要像我一样点背。天天好运。
-
@maoyanjun_dut 我编译完了都没有出错,但是使用paraview出错,说是your opengl driver don not support require opengl feature for basic rendering, please exit and older version。关键我不知道如何更新旧的版本。
-
@maoyanjun_dut 关键显示的信息是指换成older version版本,所以 how?
-
@maoyanjun_dut ,您好,我想问下,您的OPENFOAM-v1706最后是怎么编译成功的,我现在在UBUNTU18.04上编译的时候,总是出现
这个问题,是需要改原先安装包的文件配置吗?谢谢您,麻烦您了