latest trunk make error

Asked by wangxiaoliang

When I downloaded the latest (trunk of 11th Apr.), after Cmake, there is error when make. All the dependent packages in the Yade installation page are all installed successfully, and yadedaily is installed successfully.

make error is below

make
Scanning dependencies of target _GLViewer
...
[ 32%] Building CXX object CMakeFiles/yade.dir/pkg.17.cpp.o
In file included from /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy.hpp:3:0,
                 from /home/mj/Yade/yade-trunk/trunk/pkg/dem/TesselationWrapper.cpp:11,
                 from /home/mj/Yade/yade-trunk/build/pkg.17.cpp:2:
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp: In constructor ‘numpy_boost<T, NDims>::numpy_boost(PyObject*)’:
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:193:25: error: reference to ‘detail’ is ambiguous
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:51:18: error: candidates are: namespace detail { }
/usr/include/boost/type_traits/remove_reference.hpp:27:17: error: namespace boost::detail { }
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:193:25: error: reference to ‘detail’ is ambiguous
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:51:18: error: candidates are: namespace detail { }
/usr/include/boost/type_traits/remove_reference.hpp:27:17: error: namespace boost::detail { }
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:193:25: error: expected primary-expression before ‘>’ token
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:193:25: error: ‘::typenum’ has not been declared
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp: In constructor ‘numpy_boost<T, NDims>::numpy_boost(const ExtentsList&)’:
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:222:25: error: reference to ‘detail’ is ambiguous
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:51:18: error: candidates are: namespace detail { }
/usr/include/boost/type_traits/remove_reference.hpp:27:17: error: namespace boost::detail { }
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:222:25: error: reference to ‘detail’ is ambiguous
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:51:18: error: candidates are: namespace detail { }
/usr/include/boost/type_traits/remove_reference.hpp:27:17: error: namespace boost::detail { }
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:222:25: error: expected primary-expression before ‘>’ token
/home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:222:25: error: ‘::typenum’ has not been declared
In file included from /home/mj/Yade/yade-trunk/trunk/pkg/dem/ConcretePM.cpp:2:0,
                 from /home/mj/Yade/yade-trunk/build/pkg.17.cpp:4:
/home/mj/Yade/yade-trunk/trunk/pkg/dem/ConcretePM.hpp: In constructor ‘CpmPhys::CpmPhys()’:
/home/mj/Yade/yade-trunk/trunk/pkg/dem/ConcretePM.hpp:206:1: warning: operation on ‘((CpmPhys*)this)->CpmPhys::kappaD’ may be undefined [-Wsequence-point]
make[2]: *** [CMakeFiles/yade.dir/pkg.17.cpp.o] Error 1
make[1]: *** [CMakeFiles/yade.dir/all] Error 2
make: *** [all] Error 2

Question information

Language:
English Edit question
Status:
Expired
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Anton Gladky (gladky-anton) said :
#1

Hi,

what operating system do you use? Did you try "clean" install?

Anton

2014-04-11 6:11 GMT+02:00 wangxiaoliang <
<email address hidden>>:

> New question #246843 on Yade:
> https://answers.launchpad.net/yade/+question/246843
>
> When I downloaded the latest (trunk of 11th Apr.), after Cmake, there is
> error when make. All the dependent packages in the Yade installation page
> are all installed successfully, and yadedaily is installed successfully.
>
> make error is below
>
> make
> Scanning dependencies of target _GLViewer
> ...
> [ 32%] Building CXX object CMakeFiles/yade.dir/pkg.17.cpp.o
> In file included from
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy.hpp:3:0,
> from
> /home/mj/Yade/yade-trunk/trunk/pkg/dem/TesselationWrapper.cpp:11,
> from /home/mj/Yade/yade-trunk/build/pkg.17.cpp:2:
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp: In
> constructor 'numpy_boost<T, NDims>::numpy_boost(PyObject*)':
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:193:25:
> error: reference to 'detail' is ambiguous
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:51:18:
> error: candidates are: namespace detail { }
> /usr/include/boost/type_traits/remove_reference.hpp:27:17: error:
> namespace boost::detail { }
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:193:25:
> error: reference to 'detail' is ambiguous
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:51:18:
> error: candidates are: namespace detail { }
> /usr/include/boost/type_traits/remove_reference.hpp:27:17: error:
> namespace boost::detail { }
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:193:25:
> error: expected primary-expression before '>' token
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:193:25:
> error: '::typenum' has not been declared
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp: In
> constructor 'numpy_boost<T, NDims>::numpy_boost(const ExtentsList&)':
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:222:25:
> error: reference to 'detail' is ambiguous
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:51:18:
> error: candidates are: namespace detail { }
> /usr/include/boost/type_traits/remove_reference.hpp:27:17: error:
> namespace boost::detail { }
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:222:25:
> error: reference to 'detail' is ambiguous
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:51:18:
> error: candidates are: namespace detail { }
> /usr/include/boost/type_traits/remove_reference.hpp:27:17: error:
> namespace boost::detail { }
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:222:25:
> error: expected primary-expression before '>' token
> /home/mj/Yade/yade-trunk/build/yade/lib/pyutil/numpy_boost.hpp:222:25:
> error: '::typenum' has not been declared
> In file included from
> /home/mj/Yade/yade-trunk/trunk/pkg/dem/ConcretePM.cpp:2:0,
> from /home/mj/Yade/yade-trunk/build/pkg.17.cpp:4:
> /home/mj/Yade/yade-trunk/trunk/pkg/dem/ConcretePM.hpp: In constructor
> 'CpmPhys::CpmPhys()':
> /home/mj/Yade/yade-trunk/trunk/pkg/dem/ConcretePM.hpp:206:1: warning:
> operation on '((CpmPhys*)this)->CpmPhys::kappaD' may be undefined
> [-Wsequence-point]
> make[2]: *** [CMakeFiles/yade.dir/pkg.17.cpp.o] Error 1
> make[1]: *** [CMakeFiles/yade.dir/all] Error 2
> make: *** [all] Error 2
>
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
wangxiaoliang (wangxiaoliang) said :
#2

Ubuntu 12.04. What do u mean by "clean" install ?

Revision history for this message
Anton Gladky (gladky-anton) said :
#3

Compile in a new place or remove all files in the current
build dir and compile.

Anton

2014-04-11 8:36 GMT+02:00 wangxiaoliang <
<email address hidden>>:

> Question #246843 on Yade changed:
> https://answers.launchpad.net/yade/+question/246843
>
> wangxiaoliang posted a new comment:
> Ubuntu 12.04. What do u mean by "clean" install ?
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>

Revision history for this message
wangxiaoliang (wangxiaoliang) said :
#4

After "clean" all files in directory "build", make has passed. But when running yade, where is still error shown below

./yade-2014-04-10.git-d1d4f33

Welcome to Yade 2014-04-10.git-d1d4f33
Traceback (most recent call last):
  File "./yade-2014-04-10.git-d1d4f33", line 125, in <module>
    import yade
  File "/home/mj/Yade/yade-trunk/install/lib/i386-linux-gnu/yade-2014-04-10.git-d1d4f33/py/yade/__init__.py", line 65, in <module>
    import boot
ImportError: /home/mj/Yade/yade-trunk/install/lib/i386-linux-gnu/yade-2014-04-10.git-d1d4f33/py/yade/qt/_GLViewer.so: undefined symbol: _ZN9QGLViewer28setPlayPathKeyboardModifiersE6QFlagsIN2Qt16KeyboardModifierEE

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Anton Gladky (gladky-anton) said :
#6

Try to install libqglviewer-qt4-dev

Revision history for this message
Kadiri (kadirims) said :
#7

I have the same problem with yade 1.10. Any issue?

Revision history for this message
Anton Gladky (gladky-anton) said :
#8

Try to install libqglviewer-qt4-dev and recompile Yade.