Skip to content

Commit 42814e4

Browse files
committed
Merge pull request #3 from hayguen/development
Development
2 parents 9d5384a + 20bc4dc commit 42814e4

File tree

3 files changed

+108
-2
lines changed

3 files changed

+108
-2
lines changed

src/rtl_tcp.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ void usage(void)
9292
"Usage:\t[-a listen address]\n"
9393
"\t[-p listen port (default: 1234)]\n"
9494
"\t[-f frequency to tune to [Hz]]\n"
95-
"\t[-g gain (default: 0 for auto)]\n"
95+
"\t[-g gain in dB (default: 0 for auto)]\n"
9696
"\t[-s samplerate in Hz (default: 2048000 Hz)]\n"
9797
"\t[-b number of buffers (default: 15, set by library)]\n"
9898
"\t[-n max number of linked list buffers to keep (default: 500)]\n"
99-
"\t[-w rtlsdr device bandwidth [Hz] (for R820T device)]\n"
99+
"\t[-w rtlsdr tuner bandwidth [Hz] (for R820T and E4000 tuners)]\n"
100100
"\t[-d device index (default: 0)]\n"
101101
"\t[-P ppm_error (default: 0)]\n"
102102
"\t[-v increase verbosity (default: 0)]\n");

win32-qtcreator/CMakeLists.txt

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
project(rtlsdr)
2+
cmake_minimum_required(VERSION 2.8)
3+
4+
# created and tested with
5+
# Qt 5.5.1 for Windows 32-bit (MinGW 4.9.2) from
6+
# https://www.qt.io/download-open-source/#section-2
7+
#
8+
# and QtCreator 4.0.0
9+
#
10+
# and LibUSB 1.0.20 from
11+
# https://sourceforge.net/projects/libusb/files/
12+
# libusb-1.0.20.7z
13+
#
14+
15+
# edit this path
16+
SET( LIBUSBBASE C:/src/_foreign/libusb-1.0.20 )
17+
18+
19+
add_definitions( -DWIN32 -D_WIN32 -DNDEBUG )
20+
21+
include_directories(
22+
../include
23+
${LIBUSBBASE}/include/libusb-1.0
24+
)
25+
26+
SET( LIBUSB ${LIBUSBBASE}/MinGW32/static/libusb-1.0.a )
27+
28+
SET( SOCKLIBS ws2_32 wsock32 )
29+
30+
SET( RTLLIBFILES
31+
../include/rtl_tcp.h
32+
../include/reg_field.h
33+
../include/rtlsdr_i2c.h
34+
35+
../src/convenience/convenience.c
36+
../src/convenience/convenience.h
37+
38+
../src/getopt/getopt.c
39+
../src/getopt/getopt.h
40+
41+
../include/rtl-sdr_export.h
42+
../include/rtl-sdr.h
43+
../src/librtlsdr.c
44+
45+
../include/tuner_e4k.h
46+
../src/tuner_e4k.c
47+
48+
../include/tuner_fc0012.h
49+
../src/tuner_fc0012.c
50+
51+
../include/tuner_fc0013.h
52+
../src/tuner_fc0013.c
53+
54+
../include/tuner_fc2580.h
55+
../src/tuner_fc2580.c
56+
57+
../include/tuner_r82xx.h
58+
../src/tuner_r82xx.c
59+
)
60+
61+
add_executable( rtl_test ../src/rtl_test.c ${RTLLIBFILES} )
62+
target_link_libraries( rtl_test ${LIBUSB} )
63+
64+
add_executable( rtl_fm ../src/rtl_fm.c ${RTLLIBFILES} )
65+
target_link_libraries( rtl_fm ${LIBUSB} )
66+
67+
add_executable( rtl_tcp ../src/rtl_tcp.c ${RTLLIBFILES} )
68+
target_link_libraries( rtl_tcp ${LIBUSB} ${SOCKLIBS} )
69+
70+
add_executable( rtl_adsb ../src/rtl_adsb.c ${RTLLIBFILES} )
71+
target_link_libraries( rtl_adsb ${LIBUSB} )
72+
73+
add_executable( rtl_power ../src/rtl_power.c ${RTLLIBFILES} )
74+
target_link_libraries( rtl_power ${LIBUSB} )
75+

win32-qtcreator/README.txt

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
there is an outdated "How to compile new releases of librtlsdr (and tools) on Windows" at
3+
https://www.reddit.com/r/RTLSDR/comments/uce3e/how_to_compile_new_releases_of_librtlsdr_and/
4+
unfortunately the link to the CMakeLists.txt is broken!
5+
6+
so, i needed to find another solution ..
7+
8+
9+
1) aquire and install Qt 5.5.x for Windows 32-bit (MinGW 4.9.2) from
10+
https://www.qt.io/download-open-source/#section-2
11+
12+
2) aquire and install QtCreator 4.0.x
13+
from same site as 1)
14+
probably this step is not necessary and you can use the qtcreator IDE from 1)
15+
16+
3) aquire LibUSB 1.0.20 from
17+
https://sourceforge.net/projects/libusb/files/
18+
last tested: libusb-1.0.20.7z
19+
20+
and place the file at C:/src/_foreign/libusb-1.0.20
21+
22+
or replace LIBUSBBASE path in CMakeLists.txt
23+
24+
4) start qtcreator and open the (modified) CMakeLists.txt
25+
configure compiler/environment and compile
26+
27+
28+
the resulting executables have no other dependencies than libwinpthread-1.dll
29+
from the MINGW system at C:\Qt\Qt5.5.1\Tools\mingw492_32\bin\
30+
or C:\Qt\Qt5.5.1\5.5\mingw492_32\bin
31+

0 commit comments

Comments
 (0)