dora-rs / dora

DORA (Dataflow-Oriented Robotic Application) is middleware designed to streamline and simplify the creation of AI-based robotic applications. It offers low latency, composable, and distributed dataflow capabilities. Applications are modeled as directed graphs, also referred to as pipelines.
https://dora-rs.ai
Apache License 2.0
1.35k stars 68 forks source link

make install gave undefined reference error for examples/cmake-dataflow project #486

Closed bobd988 closed 2 weeks ago

bobd988 commented 2 months ago

some errors for undefined reference to `pthread_getattr_np' in cmake example after make install. The target link needs to add a few libraries in examples/cmake-dataflow/CMakeLists.txt

phil-opp commented 2 months ago

Thanks for the PR! This seems to fail our CI job unfortunately with the following error:

/usr/bin/ld: cannot find -lpcap: No such file or directory

Given that the job works on main, I don't think that pcap should be needed.

I'm not familiar with CMake, maybe @XxChang can help?

XxChang commented 2 months ago

Indeed, it is unnecessary. It depends.

Please type readelf -a node_c_api | grep "pthread_getattr_np" on your terminal.

This is what show on my PC:

0000029c40b0  015e00000006 R_X86_64_GLOB_DAT 0000000000000000 pthread_getattr_np@GLIBC_2.32 + 0

It is said that pthread_getattr_np was defined in glibc.

Check what kind of libc you used in your PC with ldd node_c_api. These may be a different libc in your environment.

same problem with shm_open https://github.com/dora-rs/dora/issues/485

See this blog, why glibc remove libpthread