ros-drivers / flir_camera_driver

160 stars 153 forks source link

[noetic] build error on RPi #129

Open zzzzyp-sgg opened 1 year ago

zzzzyp-sgg commented 1 year ago

Hi, I try to build this program on my RPi4, and my system is Ubuntu20.04 + ROS noetic, when I run "catkin_make", errors will occur /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to dladdr@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference tosem_trywait@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to dlclose@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference tosem_post@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to dlerror@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference topthread_mutexattr_init@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to pthread_key_create@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference topthread_detach@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to pthread_setspecific@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference tosem_close@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to __libc_single_threaded@GLIBC_2.32' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference topthread_join@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to pthread_mutex_trylock@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference todlsym@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to pthread_getspecific@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference tostd::__throw_bad_array_new_length()@GLIBCXX_3.4.29' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to pthread_key_delete@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference topthread_condattr_setclock@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to sem_open@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference tostat@GLIBC_2.33' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to dlopen@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference topthread_mutexattr_settype@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference to pthread_create@GLIBC_2.34' /usr/bin/ld: ../../lib/libSpinnaker.so: undefined reference topthread_mutexattr_destroy@GLIBC_2.34' collect2: error: ld returned 1 exit status make: *** [Makefile:53: Acquisition] Error 1

Do you know how to solve this problem?Thanks!

zzzzyp-sgg commented 1 year ago

I changed to a lower version of the Spinnaker library and the problem was resolved. The problem was probably caused by the latest library not being compatible with the Raspberry PI ARM64 architecture