Running into issues while building ros_packages

Typically: "How do I... ", "How can I... " questions
Post Reply
kleinash
Posts: 112
Joined: 28 Sep 2014, 09:58

Running into issues while building ros_packages

Post by kleinash »

Hi, I am trying to link my workspace with V-REP and am running into an install issue.


This is the tail of output while running catkin_make.

Code: Select all

 Finished prerequisites of target file 'vrep_common_generate_messages_cpp'.
  Must remake target 'vrep_common_generate_messages_cpp'.
  Successfully remade target file 'vrep_common_generate_messages_cpp'.
 Finished prerequisites of target file 'vrep_common/CMakeFiles/vrep_common_generate_messages_cpp.dir/build'.
Must remake target 'vrep_common/CMakeFiles/vrep_common_generate_messages_cpp.dir/build'.
Successfully remade target file 'vrep_common/CMakeFiles/vrep_common_generate_messages_cpp.dir/build'.
Reaping winning child 0xf71260 PID 7809 
Live child 0xf42a80 (vrep_common/CMakeFiles/vrep_common_generate_messages_py.dir/all) PID 7837 
Live child 0xf71260 (vrep_common/CMakeFiles/vrep_common_generate_messages_cpp.dir/all) PID 7839 
[ 76%] Built target vrep_common_generate_messages_py
Reaping winning child 0xf42a80 PID 7837 
Removing child 0xf42a80 PID 7837 from chain.
Released token for child 0xf42a80 (vrep_common/CMakeFiles/vrep_common_generate_messages_py.dir/all).
Live child 0xf71260 (vrep_common/CMakeFiles/vrep_common_generate_messages_cpp.dir/all) PID 7839 
Live child 0xf71260 (vrep_common/CMakeFiles/vrep_common_generate_messages_cpp.dir/all) PID 7839 
[ 95%] Built target vrep_common_generate_messages_cpp
Reaping winning child 0xf71260 PID 7839 
Removing child 0xf71260 PID 7839 from chain.
Reaping losing child 0x238a660 PID 6432 
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Removing child 0x238a660 PID 6432 from chain.
Invoking "make -d -j8 -l8" failed
Where can I start looking for the issue? Which package is this looking for?

Thx

kleinash
Posts: 112
Joined: 28 Sep 2014, 09:58

Re: Running into issues while building ros_packages

Post by kleinash »

Please bear with me as I problem solve.

I deleted my build/ folder and started again and now I get this error:

Code: Select all

-- Configuring done
CMake Error at v_repExtRosInterface/CMakeLists.txt:37 (add_library):
  Cannot find source file:

    generated/ros_msg_io.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error: CMake can not determine linker language for target: v_repExtRosInterface
CMake Error: Cannot determine link language for target "v_repExtRosInterface".
-- Generating done
-- Build files have been written to: /home/ashley/CHAMP/WAM/build
Invoking "cmake" failed


kleinash
Posts: 112
Joined: 28 Sep 2014, 09:58

Re: Running into issues while building ros_packages

Post by kleinash »

Now I really am stuck.

When I run ./vrep.sh I get this error:

libv_repExtRos.so: undefined symbol: _ZN3ros4initERiPPcRKSsj

and when I do a check by running ./libLoadErrorCheck.sh:

V-REP_PRO_EDU_V3_3_1_64_Linux/libLoadErrorCheck
./libLoadErrorCheck.sh: 21: ./libLoadErrorCheck.sh: /home/ashley/V-REP_PRO_EDU_V3_3_1_64_Linux/libLoadErrorCheck: not found

coppelia
Site Admin
Posts: 10361
Joined: 14 Dec 2012, 00:25

Re: Running into issues while building ros_packages

Post by coppelia »

Hello Ashley,

have a look at this post. This post contains a script that can be used to recompile the whole thing, which is not needed if you didn't modify the source code.

Since last release, you should really use the catking build tools (and not catkin_make). Always make sure that your ROS environment is correctly configured and initialized. Also, as you mentioned it, it sometimes helps already to completely clear the workspace.

In the V-REP folder there is another folder that contains the precompiled ROS libraries. You should be able to simply copy them into the V-REP folder, without compilation.

If you didn't modify the packages source code, but you want to recompile them, then you could simply do:

Code: Select all

source /opt/ros/indigo/setup.bash ** or source /opt/ros/jade/setup.bash, etc. **
rm -r -f ~/catkin_ws/*
mkdir ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd ..
catkin_make
source devel/setup.bash
** copy v_repExtRosInterface folder (or/and the other packages) into ~/catkin_ws/src **
catkin build
Cheers

Post Reply