New question #402702 on Yade: https://answers.launchpad.net/yade/+question/402702
Hi, I had YADE (daily) working fine on my computer with Ubuntu 14 but then I got proposed to update to Ubuntu 16. Since I cannot compile YADE, I get the error bellow with qt4 it seems. Does anyone have an idea? Benoit ------------------------------------- bch@bch-HP-EliteBook-840-G2:~/YADE-THERMAL/build$ make -j4 Scanning dependencies of target _packObb Scanning dependencies of target WeightedAverage2d Scanning dependencies of target _polyhedra_utils [ 0%] Building CXX object py/CMakeFiles/_packObb.dir/pack/_packObb.cpp.o [ 0%] Building CXX object py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d.cpp.o [ 1%] Building CXX object py/CMakeFiles/_polyhedra_utils.dir/_polyhedra_utils.cpp.o [ 1%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o [ 2%] Linking CXX shared library lib/x86_64-linux-gnu/_packObb.so [ 2%] Built target _packObb [ 3%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/_GLViewer.cpp.o In file included from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1781:0, from /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:18, from /home/bch/YADE-THERMAL/mytrunk/py/_polyhedra_utils.cpp:15: /usr/local/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp] #warning "Using deprecated NumPy API, disable it by " \ ^ [ 4%] Linking CXX shared library lib/x86_64-linux-gnu/WeightedAverage2d.so [ 4%] Built target WeightedAverage2d [ 5%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/OpenGLManager.cpp.o /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp: In member function ‘void GLViewer::centerScene()’: /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:355:27: error: ‘isnan’ was not declared in this scope bool hasNan=(isnan(min[0])||isnan(min[1])||isnan(min[2])||isnan(max[0])||isnan ^ /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:355:27: note: suggested alternatives: In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21:0, from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:15, from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13, from /usr/include/boost/date_time/posix_time/ptime.hpp:12, from /usr/include/boost/date_time/posix_time/posix_time.hpp:15, from /home/bch/YADE-THERMAL/mytrunk/core/Omega.hpp:14, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.hpp:6, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:11: /usr/include/c++/5/cmath:641:5: note: ‘std::isnan’ isnan(_Tp __x) ^ In file included from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:35:0, from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:64, from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:53, from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:34, from /usr/include/boost/lexical_cast.hpp:32, from /usr/include/boost/date_time/string_parse_tree.hpp:13, from /usr/include/boost/date_time/period_parser.hpp:14, from /usr/include/boost/date_time/date_facet.hpp:23, from /usr/include/boost/date_time/gregorian/gregorian_io.hpp:16, from /usr/include/boost/date_time/gregorian/gregorian.hpp:31, from /usr/include/boost/date_time/posix_time/time_formatters.hpp:12, from /usr/include/boost/date_time/posix_time/posix_time.hpp:24, from /home/bch/YADE-THERMAL/mytrunk/core/Omega.hpp:14, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.hpp:6, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:11: /usr/include/boost/math/special_functions/fpclassify.hpp:579:14: note: ‘boost::math::isnan’ inline bool (isnan)(T x) ^ In file included from /usr/include/eigen3/Eigen/Core:441:0, from /home/bch/YADE-THERMAL/mytrunk/lib/base/Math.hpp:89, from /home/bch/YADE-THERMAL/mytrunk/core/Omega.hpp:20, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.hpp:6, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:11: /usr/include/eigen3/Eigen/src/Core/GlobalFunctions.h:67:139: note: ‘Eigen::isnan’ In file included from /usr/include/eigen3/Eigen/Core:302:0, from /home/bch/YADE-THERMAL/mytrunk/lib/base/Math.hpp:89, from /home/bch/YADE-THERMAL/mytrunk/core/Omega.hpp:20, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.hpp:6, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:11: /usr/include/eigen3/Eigen/src/Core/MathFunctions.h:930:28: note: ‘Eigen::numext::isnan’ template<typename T> EIGEN_DEVICE_FUNC bool (isnan) (const T &x) { return int ^ /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:367:18: error: ‘isinf’ was not declared in this scope if(isinf(min[0])||isinf(min[1])||isinf(min[2])||isinf(max[0])||isinf(max[1])| ^ /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:367:18: note: suggested alternatives: In file included from /usr/include/boost/config/no_tr1/cmath.hpp:21:0, from /usr/include/boost/date_time/posix_time/posix_time_config.hpp:15, from /usr/include/boost/date_time/posix_time/posix_time_system.hpp:13, from /usr/include/boost/date_time/posix_time/ptime.hpp:12, from /usr/include/boost/date_time/posix_time/posix_time.hpp:15, from /home/bch/YADE-THERMAL/mytrunk/core/Omega.hpp:14, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.hpp:6, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:11: /usr/include/c++/5/cmath:621:5: note: ‘std::isinf’ isinf(_Tp __x) ^ In file included from /usr/include/boost/lexical_cast/detail/inf_nan.hpp:35:0, from /usr/include/boost/lexical_cast/detail/converter_lexical_streams.hpp:64, from /usr/include/boost/lexical_cast/detail/converter_lexical.hpp:53, from /usr/include/boost/lexical_cast/try_lexical_convert.hpp:34, from /usr/include/boost/lexical_cast.hpp:32, from /usr/include/boost/date_time/string_parse_tree.hpp:13, from /usr/include/boost/date_time/period_parser.hpp:14, from /usr/include/boost/date_time/date_facet.hpp:23, from /usr/include/boost/date_time/gregorian/gregorian_io.hpp:16, from /usr/include/boost/date_time/gregorian/gregorian.hpp:31, from /usr/include/boost/date_time/posix_time/time_formatters.hpp:12, from /usr/include/boost/date_time/posix_time/posix_time.hpp:24, from /home/bch/YADE-THERMAL/mytrunk/core/Omega.hpp:14, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.hpp:6, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:11: /usr/include/boost/math/special_functions/fpclassify.hpp:496:14: note: ‘boost::math::isinf’ inline bool (isinf)(T x) ^ In file included from /usr/include/eigen3/Eigen/Core:441:0, from /home/bch/YADE-THERMAL/mytrunk/lib/base/Math.hpp:89, from /home/bch/YADE-THERMAL/mytrunk/core/Omega.hpp:20, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.hpp:6, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:11: /usr/include/eigen3/Eigen/src/Core/GlobalFunctions.h:68:139: note: ‘Eigen::isinf’ In file included from /usr/include/eigen3/Eigen/Core:302:0, from /home/bch/YADE-THERMAL/mytrunk/lib/base/Math.hpp:89, from /home/bch/YADE-THERMAL/mytrunk/core/Omega.hpp:20, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.hpp:6, from /home/bch/YADE-THERMAL/mytrunk/gui/qt4/GLViewer.cpp:11: /usr/include/eigen3/Eigen/src/Core/MathFunctions.h:931:28: note: ‘Eigen::numext::isinf’ template<typename T> EIGEN_DEVICE_FUNC bool (isinf) (const T &x) { return int ^ gui/CMakeFiles/_GLViewer.dir/build.make:72: recipe for target 'gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o' failed make[2]: *** [gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... CMakeFiles/Makefile2:256: recipe for target 'gui/CMakeFiles/_GLViewer.dir/all' failed make[1]: *** [gui/CMakeFiles/_GLViewer.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 5%] Linking CXX shared library lib/x86_64-linux-gnu/_polyhedra_utils.so [ 5%] Built target _polyhedra_utils Makefile:127: recipe for target 'all' failed make: *** [all] Error 2 -- 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