mirror of
https://github.com/rtlsdrblog/rtl-sdr-blog.git
synced 2025-01-13 11:47:21 +01:00
fix win32 build of rtl_test
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
09547797dc
commit
551a2d2037
@ -77,6 +77,7 @@ target_link_libraries(rtl_test rtlsdr_static
|
|||||||
if(WIN32)
|
if(WIN32)
|
||||||
set_property(TARGET rtl_sdr APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" )
|
set_property(TARGET rtl_sdr APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" )
|
||||||
set_property(TARGET rtl_tcp APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" )
|
set_property(TARGET rtl_tcp APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" )
|
||||||
|
set_property(TARGET rtl_test APPEND PROPERTY COMPILE_DEFINITIONS "rtlsdr_STATIC" )
|
||||||
endif()
|
endif()
|
||||||
########################################################################
|
########################################################################
|
||||||
# Install built library files & utilities
|
# Install built library files & utilities
|
||||||
|
@ -45,8 +45,8 @@ void usage(void)
|
|||||||
{
|
{
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
fprintf(stderr,"rtl-sdr, an I/Q recorder for RTL2832 based USB-sticks\n\n"
|
fprintf(stderr,"rtl-sdr, an I/Q recorder for RTL2832 based USB-sticks\n\n"
|
||||||
"Usage:\t rtl-sdr-win.exe [device_index] [samplerate in kHz] "
|
"Usage:\t rtl-test-win.exe [device_index] [samplerate in kHz] [e4k test mode]\n"
|
||||||
"[gain] [frequency in Hz] [filename]\n");
|
"\ti.e. rtl-test-win.exe 0 2048 1\n");
|
||||||
#else
|
#else
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"rtl_test, librtlsdr test tool\n\n"
|
"rtl_test, librtlsdr test tool\n\n"
|
||||||
@ -192,10 +192,12 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
#else
|
#else
|
||||||
/* TODO fix win usage */
|
/* TODO fix win usage */
|
||||||
if (argc < 2)
|
if (argc < 3)
|
||||||
usage();
|
usage();
|
||||||
dev_index = atoi(argv[1]);
|
dev_index = atoi(argv[1]);
|
||||||
samp_rate = atoi(argv[2])*1000;
|
samp_rate = atoi(argv[2])*1000;
|
||||||
|
if (argc >3 && argv[3][0] == '1')
|
||||||
|
tuner_benchmark = 1;
|
||||||
#endif
|
#endif
|
||||||
if(out_block_size < MINIMAL_BUF_LENGTH ||
|
if(out_block_size < MINIMAL_BUF_LENGTH ||
|
||||||
out_block_size > MAXIMAL_BUF_LENGTH ){
|
out_block_size > MAXIMAL_BUF_LENGTH ){
|
||||||
|
Loading…
Reference in New Issue
Block a user