problems compiling ros_packages from v-rep in ros workspace

Report crashes, strange behaviour, or apparent bugs
tomihrw
Posts: 2
Joined: 30 Oct 2016, 12:19

problems compiling ros_packages from v-rep in ros workspace

Postby tomihrw » 31 Oct 2016, 09:01

I am trying to compile the 8 packages from programming/ros_packages in the ros workspace without success. Below are the error logs:

Code: Select all

Errors     << vrep_ros_interface:make /home/iki/rosvrep_ws/logs/vrep_ros_interface/build.make.006.log
In file included from /home/iki/rosvrep_ws/src/v_repExtRosInterface/src/stubs.cpp:1:0:
/home/iki/rosvrep_ws/src/v_repExtRosInterface/include/stubs.h:4:22: fatal error: v_repLib.h: No such file or directory
 #include <v_repLib.h>
                      ^
compilation terminated.
make[2]: *** [CMakeFiles/v_repExtRosInterface.dir/src/stubs.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/iki/rosvrep_ws/src/v_repExtRosInterface/src/v_repLib_inc.cpp:1:24: fatal error: v_repLib.cpp: No such file or directory
 #include "v_repLib.cpp"
                        ^
compilation terminated.
make[2]: *** [CMakeFiles/v_repExtRosInterface.dir/src/v_repLib_inc.cpp.o] Error 1
/home/iki/rosvrep_ws/src/v_repExtRosInterface/src/ros_msg_builtin_io.cpp:2:22: fatal error: v_repLib.h: No such file or directory
 #include <v_repLib.h>
                      ^
compilation terminated.
In file included from /home/iki/rosvrep_ws/src/v_repExtRosInterface/include/vrep_ros_interface.h:107:0,
                 from /home/iki/rosvrep_ws/src/v_repExtRosInterface/src/vrep_ros_interface.cpp:1:
/home/iki/rosvrep_ws/src/v_repExtRosInterface/include/stubs.h:4:22: fatal error: v_repLib.h: No such file or directory
 #include <v_repLib.h>
                      ^
compilation terminated.
In file included from /home/iki/rosvrep_ws/src/v_repExtRosInterface/include/vrep_ros_interface.h:107:0,
                 from /home/iki/rosvrep_ws/build/vrep_ros_interface/generated/ros_msg_io.h:5,
                 from /home/iki/rosvrep_ws/build/vrep_ros_interface/generated/ros_msg_io.cpp:1:
/home/iki/rosvrep_ws/src/v_repExtRosInterface/include/stubs.h:4:22: fatal error: v_repLib.h: No such file or directory
 #include <v_repLib.h>
                      ^
compilation terminated.
In file included from /home/iki/rosvrep_ws/src/v_repExtRosInterface/include/vrep_ros_interface.h:107:0,
                 from /home/iki/rosvrep_ws/build/vrep_ros_interface/generated/ros_msg_io.h:5,
                 from /home/iki/rosvrep_ws/build/vrep_ros_interface/generated/ros_srv_io.cpp:1:
/home/iki/rosvrep_ws/src/v_repExtRosInterface/include/stubs.h:4:22: fatal error: v_repLib.h: No such file or directory
 #include <v_repLib.h>
                      ^
compilation terminated.
make[2]: *** [CMakeFiles/v_repExtRosInterface.dir/src/ros_msg_builtin_io.cpp.o] Error 1
make[2]: *** [CMakeFiles/v_repExtRosInterface.dir/src/vrep_ros_interface.cpp.o] Error 1
make[2]: *** [CMakeFiles/v_repExtRosInterface.dir/generated/ros_msg_io.cpp.o] Error 1
make[2]: *** [CMakeFiles/v_repExtRosInterface.dir/generated/ros_srv_io.cpp.o] Error 1
make[1]: *** [CMakeFiles/v_repExtRosInterface.dir/all] Error 2
make: *** [all] Error 2
cd /home/iki/rosvrep_ws/build/vrep_ros_interface; catkin build --get-env vrep_ros_interface | catkin env -si  /usr/bin/make --jobserver-fds=6,7 -j; cd -



I am using V-Rep PRO EDU 3.3.2 and ROS Jade in Ubuntu 15.04

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

Re: problems compiling ros_packages from v-rep in ros worksp

Postby coppelia » 01 Nov 2016, 15:40

Hello,

Have you specified the location of your V-REP directory in file v_repExtRosInterface/CMakeLists.txt? It will then look for the missing file v_repLib.h in the correct location.

Cheers

tomihrw
Posts: 2
Joined: 30 Oct 2016, 12:19

Re: problems compiling ros_packages from v-rep in ros worksp

Postby tomihrw » 07 Nov 2016, 11:13

Hello,

Have you specified the location of your V-REP directory in file v_repExtRosInterface/CMakeLists.txt?


If by this you mean to specify the $ENV{VREP_ROOT} then yes.

I solved the problem by copying v_repLib.h and other files to the required location. I did this because I saw that the exact copy of some files were found in different folders. So I went and copied some more.

Regards


Return to “Bug reports”

Who is online

Users browsing this forum: No registered users and 3 guests