daobilige-su/loam_velodyne

Errors on Launch

Closed this issue · 1 comments

I'm running the roslaunch command and getting continuous errors:

/home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry: error while loading shared libraries: libopencv_core3.so.3.3: cannot enable executable stack as shared object requires: Invalid argument
[laserOdometry-3] process has died [pid 630, exit code 127, cmd /home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry __name:=laserOdometry __log:=/home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3.log].
log file: /home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3*.log

What am I doing wrong?

Full sample:

$ roslaunch loam_velodyne loam_velodyne.launch
... logging to /home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/roslaunch-INV-LAP-166-532.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://INV-LAP-166:53994/

SUMMARY
========

PARAMETERS
 * /rosdistro: lunar
 * /rosversion: 1.13.5

NODES
  /
    laserMapping (loam_velodyne/laserMapping)
    laserOdometry (loam_velodyne/laserOdometry)
    rviz (rviz/rviz)
    scanRegistration (loam_velodyne/scanRegistration)
    transformMaintenance (loam_velodyne/transformMaintenance)

auto-starting new master
process[master]: started with pid [542]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to de7b9e10-14b2-11e8-82bc-507b9d27ac84
process[rosout-1]: started with pid [555]
started core service [/rosout]
/opt/ros/lunar/lib/python2.7/dist-packages/roslib/packages.py:447: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if resource_name in files:
process[scanRegistration-2]: started with pid [558]
process[laserOdometry-3]: started with pid [567]
/home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry: error while loading shared libraries: libopencv_core3.so.3.3: cannot enable executable stack as shared object requires: Invalid argument
process[laserMapping-4]: started with pid [573]
/home/adis/catkin_ws/devel/lib/loam_velodyne/laserMapping: error while loading shared libraries: libopencv_core3.so.3.3: cannot enable executable stack as shared object requires: Invalid argument
[laserOdometry-3] process has died [pid 567, exit code 127, cmd /home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry __name:=laserOdometry __log:=/home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3.log].
log file: /home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3*.log
[laserMapping-4] process has died [pid 573, exit code 127, cmd /home/adis/catkin_ws/devel/lib/loam_velodyne/laserMapping __name:=laserMapping __log:=/home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserMapping-4.log].
log file: /home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserMapping-4*.logprocess[transformMaintenance-5]: started with pid [575]

[laserOdometry-3] restarting process
process[laserOdometry-3]: started with pid [576]
/home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry: error while loading shared libraries: libopencv_core3.so.3.3: cannot enable executable stack as shared object requires: Invalid argument
[laserOdometry-3] process has died [pid 576, exit code 127, cmd /home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry __name:=laserOdometry __log:=/home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3.log].
log file: /home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3*.log
[laserOdometry-3] restarting process
process[rviz-6]: started with pid [623]
nice: cannot set niceness: Permission denied
process[laserOdometry-3]: started with pid [628]
/home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry: error while loading shared libraries: libopencv_core3.so.3.3: cannot enable executable stack as shared object requires: Invalid argument
[laserOdometry-3] process has died [pid 628, exit code 127, cmd /home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry __name:=laserOdometry __log:=/home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3.log].
log file: /home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3*.log
[laserOdometry-3] restarting process
process[laserOdometry-3]: started with pid [629]
/home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry: error while loading shared libraries: libopencv_core3.so.3.3: cannot enable executable stack as shared object requires: Invalid argument
[laserOdometry-3] process has died [pid 629, exit code 127, cmd /home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry __name:=laserOdometry __log:=/home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3.log].
log file: /home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3*.log
[laserOdometry-3] restarting process
process[laserOdometry-3]: started with pid [630]
/home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry: error while loading shared libraries: libopencv_core3.so.3.3: cannot enable executable stack as shared object requires: Invalid argument
[laserOdometry-3] process has died [pid 630, exit code 127, cmd /home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry __name:=laserOdometry __log:=/home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3.log].
log file: /home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3*.log
[laserOdometry-3] restarting process
process[laserOdometry-3]: started with pid [631]
/home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry: error while loading shared libraries: libopencv_core3.so.3.3: cannot enable executable stack as shared object requires: Invalid argument
[laserOdometry-3] process has died [pid 631, exit code 127, cmd /home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry __name:=laserOdometry __log:=/home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3.log].
log file: /home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3*.log
[laserOdometry-3] restarting process
process[laserOdometry-3]: started with pid [632]
/home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry: error while loading shared libraries: libopencv_core3.so.3.3: cannot enable executable stack as shared object requires: Invalid argument
[laserOdometry-3] process has died [pid 632, exit code 127, cmd /home/adis/catkin_ws/devel/lib/loam_velodyne/laserOdometry __name:=laserOdometry __log:=/home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3.log].
log file: /home/adis/.ros/log/de7b9e10-14b2-11e8-82bc-507b9d27ac84/laserOdometry-3*.log
...

Solved this (from here):

$ sudo apt-get install prelink
$ sudo execstack -c /opt/ros/lunar/lib/libopencv*.so*