orocos / rtt_ros_integration

Orocos-ROS integration libraries and tools
BSD 3-Clause "New" or "Revised" License
85 stars 56 forks source link

Errors << rtt_ros:make /home/xxx/isir/rtt_ros-2.9_ws/logs/rtt_ros/build.make.002.log /usr/bin/ld: 找不到 /lib: 不可识别的文件格式 #163

Open dbdxnuliba opened 3 years ago

dbdxnuliba commented 3 years ago

Errors << rtt_ros:make /home/xxx/isir/rtt_ros-2.9_ws/logs/rtt_ros/build.make.002.log /usr/bin/ld: 找不到 /lib: 不可识别的文件格式

meyerj commented 3 years ago

Could you please provide some more information?

Preferably switch the language to English for sending error reports (e.g. by export LC_ALL=C).

The Google translation is

Errors << rtt_ros:make /home/xxx/isir/rtt_ros-2.9_ws/logs/rtt_ros/build.make.002.log
/usr/bin/ld: not found /lib: unrecognized file format

which points to issues with the linker command line built by CMake, and the linker tries to link just /lib instead of a specific library?

$ /usr/bin/ld -shared -o /tmp/test.so /lib
/usr/bin/ld: cannot find /lib: File format not recognized

In this case building with export VERBOSE=1 (or catkin build -v if you use catkin_tools) may help to show the full command line.