Qengineering / TensorFlow_Lite_SSD_RPi_64-bits

TensorFlow Lite SSD on bare Raspberry Pi 4 with 64-bit OS at 24 FPS
https://qengineering.eu/install-ubuntu-18.04-on-raspberry-pi-4.html
BSD 3-Clause "New" or "Revised" License
42 stars 6 forks source link

Link Error dlsym@@GLIBC_2.17 #2

Closed barthm1 closed 4 years ago

barthm1 commented 4 years ago

Get this error using Ubuntu 20 or RaspiOS 64

/usr/bin/ld: /root/tensorflow/tensorflow/lite/tools/make/gen/linux_aarch64/lib/libtensorflow-lite.a(interpreter_builder.o)||undefined reference to symbol 'dlsym@@GLIBC_2.17'|

Qengineering commented 4 years ago

As of version 2.3.0, TensorFlow uses the dynamic loader. Therefore you have to include the libdl library to your build. On a Raspberry Pi 64-OS the symlink is /lib/aarch64-linux-gnu/libdl.so.2. I will update the Code::Blocks project file asap.

barthm1 commented 4 years ago

Works

Qengineering commented 4 years ago

Updated Code::Blocks project file.

Kant01354 commented 1 year ago

Im getting this same error - undefined reference to symbol 'dlsym@@GLIBC_2.17'| Where and what do I need to update to fix this ? i added-ldlin linker options, still not working, same error


ls -al /lib/aarch64-linux-gnu/libdl.so.2 
lrwxrwxrwx 1 root root 13 Dec 16  2020 /lib/aarch64-linux-gnu/libdl.so.2 -> libdl-2.31.so

I also added in other linked options :-

-ldl
`pkg-config --libs --cflags opencv4`
-pthread
Qengineering commented 1 year ago

Try adding the library with its full path: /lib/aarch64-linux-gnu/libdl.so