Question #326649 on Yade changed:
https://answers.launchpad.net/yade/+question/326649

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,
what version of Yade do you use?
The error seems to come from VTK, do you have to use VTKRecorder? An
alternative is to try to compile yade without VTK (cmake ...
-DENABLE_VTK=OFF) and use export.VTKExporter instead.
cheers
Jan


2016-08-06 9:32 GMT+02:00 sandedadi <question326...@answers.launchpad.net>:

> New question #326649 on Yade:
> https://answers.launchpad.net/yade/+question/326649
>
> I have cofigure done myfile but when I input "make install" ,an error
> occured.my "cmake file" is here:
> -- The C compiler identification is GNU 4.8.4
> -- The CXX compiler identification is GNU 4.8.4
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Found PythonInterp: /usr/bin/python (found version "2.7.6")
> -- Try OpenMP C flag = [-fopenmp]
> -- Performing Test OpenMP_FLAG_DETECTED
> -- Performing Test OpenMP_FLAG_DETECTED - Success
> -- Try OpenMP CXX flag = [-fopenmp]
> -- Performing Test OpenMP_FLAG_DETECTED
> -- Performing Test OpenMP_FLAG_DETECTED - Success
> -- Found OpenMP: -fopenmp
> -- Looking for Q_WS_X11
> -- Looking for Q_WS_X11 - found
> -- Looking for Q_WS_WIN
> -- Looking for Q_WS_WIN - not found
> -- Looking for Q_WS_QWS
> -- Looking for Q_WS_QWS - not found
> -- Looking for Q_WS_MAC
> -- Looking for Q_WS_MAC - not found
> -- Found Qt4: /usr/bin/qmake (found version "4.8.6")
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
> -- Version is set to 1.20.0
> -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/
> libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
> -- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/
> libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
> -- Looking for gethostbyname
> -- Looking for gethostbyname - found
> -- Looking for connect
> -- Looking for connect - found
> -- Looking for remove
> -- Looking for remove - found
> -- Looking for shmat
> -- Looking for shmat - found
> -- Looking for IceConnectionNumber in ICE
> -- Looking for IceConnectionNumber in ICE - found
> -- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
> -- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
> -- GTS using gts-config /usr/bin/gts-config
> -- Using GTS from /usr
> -- Found GL2PS: /usr/lib/libgl2ps.so
> -- Found CGAL: /usr/include/CGAL, /usr/lib/libCGAL.so
> -- Found NumPy: version "1.8.2" /usr/lib/python2.7/dist-
> packages/numpy/core/include
> -- Found Loki: /usr/include
> -- GCC Version >= 4.8. Adding -ftrack-macro-expansion=0 and -save-temps
> -- Boost version: 1.54.0
> -- Found the following Boost libraries:
> --   python
> --   thread
> --   filesystem
> --   iostreams
> --   regex
> --   serialization
> --   system
> --   date_time
> --   Boost_VERSION: 105400
> --   Boost_LIB_VERSION: 1_54
> --   Boost_INCLUDE_DIRS: /usr/include
> --   Boost_LIBRARIES: /usr/lib/x86_64-linux-gnu/libb
> oost_python.so/usr/lib/x86_64-linux-gnu/libboost_thread.so/
> usr/lib/x86_64-linux-gnu/libboost_filesystem.so/usr/
> lib/x86_64-linux-gnu/libboost_iostreams.so/usr/lib/x86_64-
> linux-gnu/libboost_regex.so/usr/lib/x86_64-linux-gnu/
> libboost_serialization.so/usr/lib/x86_64-linux-gnu/libboost_
> system.so/usr/lib/x86_64-linux-gnu/libboost_date_time.
> so/usr/lib/x86_64-linux-gnu/libpthread.so
> -- Found Eigen3: /usr/local/include/eigen3 (Required is at least version
> "2.91.0")
> -- Found BZip2: /usr/lib/x86_64-linux-gnu/libbz2.so (found version
> "1.0.6")
> -- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so
> -- Looking for BZ2_bzCompressInit in /usr/lib/x86_64-linux-gnu/libbz2.so
> - found
> -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
> -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found
> version "2.7.6")
> -- Found Eigen3, version: 3.2.9
> -- Disable vectorization
> -- Found VTK
> -- Found OpenMP
> -- GTS using gts-config /usr/bin/gts-config
> -- Using GTS from /usr
> -- checking for one of the modules 'glib-2.0'
> -- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/
> lib/x86_64-linux-gnu/glib-2.0/include
> -- Looking for include file glib/gregex.h
> -- Looking for include file glib/gregex.h - not found
> -- Found GTS
> -- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
> -- Found QGLVIEWER: /usr/include/QGLViewer
> -- Found Qt4: /usr/bin/qmake (found version "4.8.6")
> -- Found GUI-LIBS
> -- GMP libs: /usr/lib/x86_64-linux-gnu/libgmp.so
> /usr/lib/x86_64-linux-gnu/libgmpxx.so
> -- Found GMP: /usr/include/x86_64-linux-gnu
> -- GMP libs: /usr/lib/x86_64-linux-gnu/libgmp.so
> /usr/lib/x86_64-linux-gnu/libgmpxx.so
> -- Found CGAL
> -- Could NOT find Cholmod (missing:  CHOLMOD_LIBRARIES CHOLMOD_INCLUDE_DIR
> AMD_LIBRARY CAMD_LIBRARY COLAMD_LIBRARY CCOLAMD_LIBRARY)
> -- Could NOT find OpenBlas (missing:  OPENBLAS_LIBRARY)
> -- Could NOT find Metis (missing:  METIS_INCLUDE_DIR METIS_LIBRARY)
> -- Missing dependency for LINSOLV, disabled
> -- Found GL2PS
> LBMFLOW is still experimental, building and running LBM engine are at your
> own risk!
> Yade will be installed to /home/zwq/yade/install
> -- Suffix is set to -1.20.0
> -- LIBRARY_OUTPUT_PATH is set to lib/x86_64-linux-gnu
> -- runtimePREFIX is set to /home/zwq/yade/install
> -- Found gts: /usr/lib/python2.7/dist-packages/gts
> -- Use system gts version
> -- Found minieigen: /usr/lib/python2.7/dist-packages/minieigen.so
> -- Found Tkinter: /usr/lib/python2.7/lib-tk/Tkinter.pyc
> -- VTK version 6 is found
> -- ===========================================================
> -- Yade configured with following features: Odeint VTK OpenMP GTS GUI CGAL
> PFVFLOW GL2PS LBMFLOW
> -- Disabled features: LINSOLV SPH LIQMIGRATION MASK_ARBITRARY PROFILING
> -- Optimized build
> -- ===========================================================
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/zwq/yade/build
> and this is my problem when I input"make install":
> [  7%] Built target _GLViewer
> [  8%] Building CXX object CMakeFiles/yade.dir/pkg/dem/VTKRecorder.cpp.o
> In file included from /usr/include/vtk-6.0/vtkTriangle.h:26:0,
>                  from /home/zwq/yade/trunk/pkg/dem/VTKRecorder.cpp:16:
> /usr/include/vtk-6.0/vtkMath.h: In static member function ‘static int
> vtkMath::IsInf(double)’:
> /usr/include/vtk-6.0/vtkMath.h:1249:18: error: call of overloaded
> ‘isinf(double&)’ is ambiguous
>    return (isinf(x) != 0); // Force conversion to bool
>                   ^
> /usr/include/vtk-6.0/vtkMath.h:1249:18: note: candidates are:
> In file included from /usr/include/math.h:69:0,
>                  from /usr/include/c++/4.8/cmath:44,
>                  from /usr/include/c++/4.8/random:38,
>                  from /usr/include/c++/4.8/bits/stl_algo.h:65,
>                  from /usr/include/c++/4.8/algorithm:62,
>                  from /home/zwq/yade/trunk/lib/base/Math.hpp:11,
>                  from /home/zwq/yade/trunk/lib/serialization/Serializable.
> hpp:15,
>                  from /home/zwq/yade/trunk/core/Engine.hpp:13,
>                  from /home/zwq/yade/trunk/core/GlobalEngine.hpp:11,
>                  from /home/zwq/yade/trunk/pkg/
> common/PeriodicEngines.hpp:5,
>                  from /home/zwq/yade/trunk/pkg/dem/VTKRecorder.hpp:2,
>                  from /home/zwq/yade/trunk/pkg/dem/VTKRecorder.cpp:3:
> /usr/include/x86_64-linux-gnu/bits/mathcalls.h:201:12: note: int
> isinf(double)
>  __MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__
> ((__const__));
>             ^
> In file included from /usr/include/c++/4.8/random:38:0,
>                  from /usr/include/c++/4.8/bits/stl_algo.h:65,
>                  from /usr/include/c++/4.8/algorithm:62,
>                  from /home/zwq/yade/trunk/lib/base/Math.hpp:11,
>                  from /home/zwq/yade/trunk/lib/serialization/Serializable.
> hpp:15,
>                  from /home/zwq/yade/trunk/core/Engine.hpp:13,
>                  from /home/zwq/yade/trunk/core/GlobalEngine.hpp:11,
>                  from /home/zwq/yade/trunk/pkg/
> common/PeriodicEngines.hpp:5,
>                  from /home/zwq/yade/trunk/pkg/dem/VTKRecorder.hpp:2,
>                  from /home/zwq/yade/trunk/pkg/dem/VTKRecorder.cpp:3:
> /usr/include/c++/4.8/cmath:608:3: note: constexpr bool std::isinf(long
> double)
>    isinf(long double __x)
>    ^
> /usr/include/c++/4.8/cmath:604:3: note: constexpr bool std::isinf(double)
>    isinf(double __x)
>    ^
> /usr/include/c++/4.8/cmath:600:3: note: constexpr bool std::isinf(float)
>    isinf(float __x)
>    ^
> In file included from /usr/include/vtk-6.0/vtkTriangle.h:26:0,
>                  from /home/zwq/yade/trunk/pkg/dem/VTKRecorder.cpp:16:
> /usr/include/vtk-6.0/vtkMath.h: In static member function ‘static int
> vtkMath::IsNan(double)’:
> /usr/include/vtk-6.0/vtkMath.h:1259:18: error: call of overloaded
> ‘isnan(double&)’ is ambiguous
>    return (isnan(x) != 0); // Force conversion to bool
>                   ^
> /usr/include/vtk-6.0/vtkMath.h:1259:18: note: candidates are:
> In file included from /usr/include/math.h:69:0,
>                  from /usr/include/c++/4.8/cmath:44,
>                  from /usr/include/c++/4.8/random:38,
>                  from /usr/include/c++/4.8/bits/stl_algo.h:65,
>                  from /usr/include/c++/4.8/algorithm:62,
>                  from /home/zwq/yade/trunk/lib/base/Math.hpp:11,
>                  from /home/zwq/yade/trunk/lib/serialization/Serializable.
> hpp:15,
>                  from /home/zwq/yade/trunk/core/Engine.hpp:13,
>                  from /home/zwq/yade/trunk/core/GlobalEngine.hpp:11,
>                  from /home/zwq/yade/trunk/pkg/
> common/PeriodicEngines.hpp:5,
>                  from /home/zwq/yade/trunk/pkg/dem/VTKRecorder.hpp:2,
>                  from /home/zwq/yade/trunk/pkg/dem/VTKRecorder.cpp:3:
> /usr/include/x86_64-linux-gnu/bits/mathcalls.h:234:12: note: int
> isnan(double)
>  __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__
> ((__const__));
>             ^
> In file included from /usr/include/c++/4.8/random:38:0,
>                  from /usr/include/c++/4.8/bits/stl_algo.h:65,
>                  from /usr/include/c++/4.8/algorithm:62,
>                  from /home/zwq/yade/trunk/lib/base/Math.hpp:11,
>                  from /home/zwq/yade/trunk/lib/serialization/Serializable.
> hpp:15,
>                  from /home/zwq/yade/trunk/core/Engine.hpp:13,
>                  from /home/zwq/yade/trunk/core/GlobalEngine.hpp:11,
>                  from /home/zwq/yade/trunk/pkg/
> common/PeriodicEngines.hpp:5,
>                  from /home/zwq/yade/trunk/pkg/dem/VTKRecorder.hpp:2,
>                  from /home/zwq/yade/trunk/pkg/dem/VTKRecorder.cpp:3:
> /usr/include/c++/4.8/cmath:626:3: note: constexpr bool std::isnan(long
> double)
>    isnan(long double __x)
>    ^
> /usr/include/c++/4.8/cmath:622:3: note: constexpr bool std::isnan(double)
>    isnan(double __x)
>    ^
> /usr/include/c++/4.8/cmath:618:3: note: constexpr bool std::isnan(float)
>    isnan(float __x)
>    ^
> make[2]: *** [CMakeFiles/yade.dir/pkg/dem/VTKRecorder.cpp.o] 错误 1
> make[1]: *** [CMakeFiles/yade.dir/all] 错误 2
> make: *** [all] 错误 2
> I'm using ubantu 14.04.can someone help me?
>
>
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to