Closed rct closed 4 months ago
Yes, that should be -pthread
, not -lpthread
. I guess it comes from ${CMAKE_THREAD_LIBS_INIT}
, needs some investigation why Cmake thinks pthreads needs linking as a lib?
Oh wait, that's not actually our build failing but the Cmake threads test from find_package(Threads)
which is a Cmake built-in module...
Still valid?
A bug from 2022 about raspbian that was ancient then.... Please feel free to start over if git master rtl_433 fails on any OS receiving maintainance, or file a PR to make it work on any OS regardless of upstream status.
Just an FYI - I have an ancient RPI 1B+ that is still running Jessie, building rtl_433 used to work, now fails due to
cannot find -lpthreads
when trying to build the pthreads_create test. The last time I updated, 21.05 code from 2021-08-26 built without error..There is a
/usr/lib/arm-linux-gnueabihf/libpthread.so
and/usr/lib/arm-linux-gnueabihf/libpthread.a
, but ld through CMake doesn't seem to find it for some reason.I realize this is a self inflicted problem and I should rebuild^Wreplace that system. Posting this in case it helps anyone else