Discussion:
rtl-sdr compilation on Linux problem regarding pthread
lists
2014-06-25 02:07:28 UTC
Permalink
I've compiled RTL-SDR on many linux distributions. However, I'm having
trouble getting it running on opensuse 13.1 Arm using a Beagle Bone
Black. [Works on Angstrom.]

Rather than clog up the list, I will try to present a minimum of data
(hopefully curated well) and can supply more if requested.

Here is the attempt to do the compilation:
----------------------------------
cmake ../ -DINSTALL_UDEV_RULES=ON
-- Build type not specified: defaulting to release.
-- Extracting version information from git describe...
-- Could NOT find Threads (missing: Threads_FOUND)
CMake Error at CMakeLists.txt:72 (message):
pthreads(-win32) required to compile rtl-sdr
---------------------------------------------------

Now note the win32. I thought there might be an issue with cmake not
determining the system on which it is compiling.

Here are some relevant system environment variables:
------
HOST=linux
HOSTTYPE=armv7l
CPU=armv7l
-------------

From CmakeOutput.log:
-----------------------
The system is: Linux - 3.11.10-69-default - armv7l
-------------------------------

Here is the compete CMakeError log:
-------------------------------------
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND
Build flags:
Id flags:

The output was:
No such file or directory


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND
Build flags:
Id flags: -c

The output was:
No such file or directory


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: CMAKE_C_COMPILER-NOTFOUND
Build flags:
Id flags: -Aa

The output was:
No such file or directory


Determining if the function libusb_handle_events_timeout_completed exists failed with the following output:


Determining if the function libusb_error_name exists failed with the following output:


Determining if files pthread.h exist failed with the following output:

Source:
/* */
#include <pthread.h>


int main(){return 0;}
-----------------------------------------

The file pthread.h is loaded onto opensuse when you load glibc-devel
Loading...