Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
liyang53719 opened this issue Jul 1, 2024 · 1 comment

Comments

@liyang53719
Copy link

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
Copy link
Collaborator

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants