autowarefoundation / autoware_ai

Apache License 2.0
23 stars 8 forks source link

autoware install question #94

Closed dingjiangang closed 6 years ago

dingjiangang commented 6 years ago

10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Map.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/MapDrawer.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Optimizer.cc.o /home/dingjiangang/Autoware/ros/src/computing/perception/localization/packages/orb_localizer/src/Map.cc: In member function ‘void ORB_SLAM2::Map::extractVocabulary(ORB_SLAM2::ORBVocabulary)’: /home/dingjiangang/Autoware/ros/src/computing/perception/localization/packages/orb_localizer/src/Map.cc:423:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<ORB_SLAM2::KeyFrame>::size_type {aka long unsigned int}’ [-Wformat=] fprintf (stderr, "KF: %d\n", allKeyFrames.size()); ^ [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/PnPsolver.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Frame.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/KeyFrameDatabase.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Sim3Solver.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Initializer.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Viewer.cc.o [ 10%] Linking CXX static library /home/dingjiangang/Autoware/ros/devel/lib/liborb_slam2.a [ 10%] Built target orb_slam2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed

here is the question,and my system is unbutu16.4,i install ros kinematic

amc-nu commented 6 years ago

@dingjiangang there is no error shown in the output.

  1. try installing all the dependencies
  2. try compiling adding -j1
dingjiangang commented 6 years ago

@ amc-nu
you mean is this command? ./catkin_make_release -j1?

amc-nu commented 6 years ago

@dingjiangang yes, the real error should be shown now.

dingjiangang commented 6 years ago

@amc-nu when i use this command ./catkin_make_release -j1,another problem happen: [ 11%] Generating EusLisp manifest code for dbw_mkz_msgs [ 11%] Built target dbw_mkz_msgs_generate_messages_eus Scanning dependencies of target std_msgs_generate_messages_cpp [ 11%] Built target std_msgs_generate_messages_cpp Scanning dependencies of target geometry_msgs_generate_messages_cpp [ 11%] Built target geometry_msgs_generate_messages_cpp Scanning dependencies of target dbw_mkz_msgs_generate_messages_cpp [ 11%] Generating C++ code from dbw_mkz_msgs/AmbientLight.msg Traceback (most recent call last): File "/opt/ros/kinetic/share/gencpp/cmake/../../../lib/gencpp/gen_cpp.py", line 41, in import genmsg.template_tools File "/opt/ros/kinetic/lib/python2.7/dist-packages/genmsg/template_tools.py", line 39, in import em ModuleNotFoundError: No module named 'em' msgs/dbw_mkz_msgs/CMakeFiles/dbw_mkz_msgs_generate_messages_cpp.dir/build.make:87: recipe for target '/home/dingjiangang/Autoware/ros/devel/include/dbw_mkz_msgs/AmbientLight.h' failed make[2]: [/home/dingjiangang/Autoware/ros/devel/include/dbw_mkz_msgs/AmbientLight.h] Error 1 CMakeFiles/Makefile2:4689: recipe for target 'msgs/dbw_mkz_msgs/CMakeFiles/dbw_mkz_msgs_generate_messages_cpp.dir/all' failed make[1]: [msgs/dbw_mkz_msgs/CMakeFiles/dbw_mkz_msgs_generate_messages_cpp.dir/all] Error 2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j1" failed

amc-nu commented 6 years ago

@dingjiangang this is the actual error. Seems you are missing that package em. you need to install it python-empy Also check you're not using Python3, ROS requires Python 2.7.

Here are more details: https://answers.ros.org/question/257757/importerror-no-module-named-em-error/

dingjiangang commented 6 years ago

@amc-nu do you have the install-tutorial about "how to install autoware",my system is ubuntu16.4,and my python environment is 3.6,so there is so many problems when i install this

amc-nu commented 6 years ago

If you cannot change your environment to match ROS and Autoware requirements, I recommend you to use Docker https://github.com/CPFL/Autoware/wiki/Installation

dingjiangang commented 6 years ago

docker: Error response from daemon: Unknown runtime specified nvidiawhile running nvidia docker @amc-nu

amc-nu commented 6 years ago

I Think you have an incorrect docker setup

Please check https://github.com/NVIDIA/nvidia-docker/wiki/Frequently-Asked-Questions#why-do-i-get-the-error-unknown-runtime-specified-nvidia

amc-nu commented 6 years ago

I think you probably solved this. If possible please sshare your solution. If you need extra help. Feel free to re open the issue.

CurlyWei commented 4 years ago

10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Map.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/MapDrawer.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Optimizer.cc.o /home/dingjiangang/Autoware/ros/src/computing/perception/localization/packages/orb_localizer/src/Map.cc: In member function ‘void ORB_SLAM2::Map::extractVocabulary(ORB_SLAM2::ORBVocabulary)’: /home/dingjiangang/Autoware/ros/src/computing/perception/localization/packages/orb_localizer/src/Map.cc:423:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘std::vector<ORB_SLAM2::KeyFrame>::size_type {aka long unsigned int}’ [-Wformat=] fprintf (stderr, "KF: %d\n", allKeyFrames.size()); ^ [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/PnPsolver.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Frame.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/KeyFrameDatabase.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Sim3Solver.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Initializer.cc.o [ 10%] Building CXX object computing/perception/localization/packages/orb_localizer/CMakeFiles/orb_slam2.dir/src/Viewer.cc.o [ 10%] Linking CXX static library /home/dingjiangang/Autoware/ros/devel/lib/liborb_slam2.a [ 10%] Built target orb_slam2 Makefile:138: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j4 -l4" failed

here is the question,and my system is unbutu16.4,i install ros kinematic

I have the same question,it`s probably that CUDA driver version is not supported

I try to uninstall.Finally it`s work

uninstall cuda:(My cuda version is 9.0) sudo /usr/local/cuda-9.0/bin/uninstall_cuda_9.0.pl sudo /usr/bin/nvidia-uninstall