Xilinx / KRS

The Kria Robotics Stack (KRS) is a ROS 2 superset for industry, an integrated set of robot libraries and utilities to accelerate the development, maintenance and commercialization of industrial-grade robotic solutions while using adaptive computing.
https://Xilinx.github.io/KRS/
Other
48 stars 18 forks source link

Failed <<< stereo_image_proc /usr/bin/ld: /usr/local/lib/libtinyxml2.a(tinyxml2.cpp.o): relocation R_X86_64_PC32 #106

Open liyang53719 opened 3 months ago

liyang53719 commented 3 months ago

when I was install krs, after source colcon build --merge-install

log:


Finished <<< image_proc [43.5s] Starting >>> perception_2nodes Starting >>> stereo_image_proc Starting >>> image_pipeline_examples Starting >>> image_proc_adaptive Finished <<< perception_2nodes [0.83s]
Starting >>> perception_3nodes Finished <<< image_proc_adaptive [1.48s]
Finished <<< perception_3nodes [1.50s]
Finished <<< image_pipeline_examples [6.60s]
--- stderr: stereo_image_proc
/usr/bin/ld: /usr/local/lib/libtinyxml2.a(tinyxml2.cpp.o): warning: relocation against _ZN8tinyxml27XMLUtil14writeBoolFalseE' in read-only section.text' /usr/bin/ld: /usr/local/lib/libtinyxml2.a(tinyxml2.cpp.o): relocation R_X86_64_PC32 against symbol `_ZN8tinyxml27XMLUtil13writeBoolTrueE' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: bad value collect2: error: ld returned 1 exit status gmake[2]: [CMakeFiles/stereo_image_proc.dir/build.make:337: libstereo_image_proc.so] Error 1 gmake[1]: [CMakeFiles/Makefile2:141: CMakeFiles/stereo_image_proc.dir/all] Error 2 gmake: *** [Makefile:146: all] Error 2

Failed <<< stereo_image_proc [14.5s, exited with code 2]

Summary: 33 packages finished [1min 2s] 1 package failed: stereo_image_proc 8 packages had stderr output: accelerated_doublevadd_publisher accelerated_vadd_publisher camera_calibration image_proc image_publisher image_rotate stereo_image_proc vitis_common 1 package not processed

jasvinderkhurana commented 2 months ago

@liyang53719 , seems like libtinyxml2.a is wrongly picked from your environment or the version is incompatible, can you please try to reinstall libtinyxml and check to build again?