-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug fixes #115
Bug fixes #115
Conversation
Include python to have python-helpers for python_install_on_site.
for more information, see https://pre-commit.ci
CMakeLists.txt
Outdated
@@ -21,6 +21,7 @@ set(DOXYGEN_USE_MATHJAX YES) | |||
# JRL-cmakemodule setup | |||
include(cmake/base.cmake) | |||
include(cmake/boost.cmake) | |||
include(cmake/python.cmake) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't include this file. eigenpy package its version, and this should be the good one to use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not doing it ends up with:
--- stderr: dynamic-graph-python
CMake Error at src/CMakeLists.txt:9 (python_install_on_site):
Unknown CMake command "python_install_on_site".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with eigenpy-3.1.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try again with 3.1.1 ? I think 3.1.0 was broken on this topic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will remove this line and will use locally. eigenpy is still in 3.1.0 on conda (the environment I am currently testing), and I would like to avoid recompiling pinocchio.
cmake
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This update removes files compile.py
that seems necessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have an error message about this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes even after removing the build directory.
[ 37%] Linking CXX shared module dynamic_graph/tracer/wrap.so
cd /home/florent/devel/hpp/src/dynamic-graph-python/build-rel/src && /usr/bin/cmake -E cmake_link_script CMakeFiles/tracer-wrap.dir/link.txt --verbose=1
/usr/lib/ccache/g++ -fPIC -pedantic -Wno-long-long -Wall -Wextra -Wcast-align -Wcast-qual -Wformat -Wwrite-strings -Wconversion -O3 -DNDEBUG -shared -o dynamic_graph/tracer/wrap.so CMakeFiles/tracer-wrap.dir/dynamic_graph/tracer/wrap.cc.o -L/home/florent/devel/hpp/src/dynamic-graph-python/src/lib/dynamic-graph-plugins -Wl,-rpath,"lib/dynamic-graph-plugins:\$ORIGIN/../../../../../lib/dynamic-graph-plugins:/home/florent/devel/hpp/src/dynamic-graph-python/src/lib/dynamic-graph-plugins:/home/florent/devel/hpp/install/lib/dynamic-graph-plugins:/home/florent/devel/hpp/src/dynamic-graph-python/build-rel:/home/florent/devel/hpp/install/lib:" -Wl,--no-as-needed /home/florent/devel/hpp/install/lib/dynamic-graph-plugins/libtracer.so /usr/lib/x86_64-linux-gnu/libboost_python38.so ../libdynamic-graph-python.so /home/florent/devel/hpp/install/lib/libdynamic-graph.so /usr/lib/x86_64-linux-gnu/libboost_serialization.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_system.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.71.0 /usr/lib/x86_64-linux-gnu/libboost_atomic.so.1.71.0 -lpthread -ldl -lpthread /usr/lib/x86_64-linux-gnu/libboost_python38.so /usr/lib/x86_64-linux-gnu/libpython3.8.so
make[3]: Leaving directory '/home/florent/devel/hpp/src/dynamic-graph-python/build-rel'
[ 37%] Built target tracer-wrap
make -f src/CMakeFiles/compile_pyc__home_florent_devel_hpp_src_dynamic-graph-python_src.dir/build.make src/CMakeFiles/compile_pyc__home_florent_devel_hpp_src_dynamic-graph-python_src.dir/depend
make[3]: Entering directory '/home/florent/devel/hpp/src/dynamic-graph-python/build-rel'
cd /home/florent/devel/hpp/src/dynamic-graph-python/build-rel && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/florent/devel/hpp/src/dynamic-graph-python /home/florent/devel/hpp/src/dynamic-graph-python/src /home/florent/devel/hpp/src/dynamic-graph-python/build-rel /home/florent/devel/hpp/src/dynamic-graph-python/build-rel/src /home/florent/devel/hpp/src/dynamic-graph-python/build-rel/src/CMakeFiles/compile_pyc__home_florent_devel_hpp_src_dynamic-graph-python_src.dir/DependInfo.cmake --color=
Scanning dependencies of target compile_pyc__home_florent_devel_hpp_src_dynamic-graph-python_src
make[3]: Leaving directory '/home/florent/devel/hpp/src/dynamic-graph-python/build-rel'
make -f src/CMakeFiles/compile_pyc__home_florent_devel_hpp_src_dynamic-graph-python_src.dir/build.make src/CMakeFiles/compile_pyc__home_florent_devel_hpp_src_dynamic-graph-python_src.dir/build
make[3]: Entering directory '/home/florent/devel/hpp/src/dynamic-graph-python/build-rel'
cd /home/florent/devel/hpp/src/dynamic-graph-python/build-rel/src && /usr/bin/python3 /home/florent/devel/hpp/src/dynamic-graph-python/cmake/compile.py /home/florent/devel/hpp/src/dynamic-graph-python/src /home/florent/devel/hpp/src/dynamic-graph-python/build-rel/src dynamic_graph/__init__.py
/usr/bin/python3: can't open file '/home/florent/devel/hpp/src/dynamic-graph-python/cmake/compile.py': [Errno 2] No such file or directory
make[3]: *** [src/CMakeFiles/compile_pyc__home_florent_devel_hpp_src_dynamic-graph-python_src.dir/build.make:60: compile_pyc__home_florent_devel_hpp_src_dynamic-graph-python_src] Error 2
make[3]: Leaving directory '/home/florent/devel/hpp/src/dynamic-graph-python/build-rel'
make[2]: *** [CMakeFiles/Makefile2:1520: src/CMakeFiles/compile_pyc__home_florent_devel_hpp_src_dynamic-graph-python_src.dir/all] Error 2
make[2]: Leaving directory '/home/florent/devel/hpp/src/dynamic-graph-python/build-rel'
make[1]: *** [Makefile:144: all] Error 2
make[1]: Leaving directory '/home/florent/devel/hpp/src/dynamic-graph-python/build-rel'
make: *** [Makefile:694: dynamic-graph-python.install_nodep] Error 2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't reproduce. Could you try to clean your config/build directories, and try again ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, wait, maybe this is an issue with the added include(cmake/python.cmake)
. Could you try to remove it and start again ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had an old version of eigenpy. I have updated and I am recompiling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After recompiling and removing include(cmake/python.cmake)
it now works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gitlab-ci did not start properly. I launched it manually, and it failed: https://gitlab.laas.fr/stack-of-tasks/dynamic-graph-python/-/jobs/216685
In file included from /root/robotpkg/wip/py-dynamic-graph-v3/work/dynamic-graph-python-4.0.11/include/dynamic-graph/python/dynamic-graph-py.hh:13,
from /root/robotpkg/wip/py-dynamic-graph-v3/work/dynamic-graph-python-4.0.11/src/dynamic_graph/entity-py.cc:13:
/root/robotpkg/wip/py-dynamic-graph-v3/work/dynamic-graph-python-4.0.11/include/dynamic-graph/python/signal-wrapper.hh:25:45: error: 'sigtime_t' was not declared in this scope; did you mean 'time_t'?
25 | void signalRegistration(const SignalArray<sigtime_t>& signals);
| ^~~~~~~~~
| time_t
/root/robotpkg/wip/py-dynamic-graph-v3/work/dynamic-graph-python-4.0.11/include/dynamic-graph/python/signal-wrapper.hh:25:54: error: template argument 1 is invalid
25 | void signalRegistration(const SignalArray<sigtime_t>& signals);
| ^
This is probrably due to a wrong version of dynamic-graph. |
Yes we probably need a release of dynamic-graph. |
@nim65s : I finally recompiled eigenpy with 3.1.1,hpp-fcl and pinocchio from HEAD of devel and it works. |
This PR fixes a certain number of fixes:
include(cmake/python.cmake)
sprintf
ininterpreter.cpp
which is deprecated.long int
andunsigned long int
in convert-dg-to-pylocals_
inInterpreter
class.