pvachon/tsl-sdr

packaging questions

redurgam opened this issue · 0 comments

trying these for fun on arch linux for the aur, appears successful 100%, but then doesn't work yet. not sure where i went off track.
-- Install configuration: "Release"
-- Installing: ...tsl-sdr/pkg/tsl-sdr/usr/bin/multifm
-- Installing: ...tsl-sdr/pkg/tsl-sdr/usr/bin/resampler
-- Installing: ...tsl-sdr/pkg/tsl-sdr/usr/bin/decoder
check for --help
$ multifm -h
2021-12-04 18:48:34 [tid= 9549] %CONFIG-F-Parse, Error during JSON load & parse: unable to open -h: No such file or directory (at line -1, source -h) (/tsl/src/tsl/config/engine.c:165 in config_add)
2021-12-04 18:48:34 [tid= 9549] %MULTIFM-F-MALFORMED-CONFIG, Configuration file [-h] is malformed. (/tsl-sdr/src/tsl-sdr/multifm/multifm.c:107 in main)

use example from wiki
$ multifm etc/multifm.json etc/flex_25khz_lpf.json
2021-12-04 18:51:45 [tid= 9585] %CONFIG-F-Parse, Error during JSON load & parse: unable to open etc/multifm.json: No such file or directory (at line -1, source etc/multifm.json) (/tsl/src/tsl/config/engine.c:165 in config_add)
2021-12-04 18:51:45 [tid= 9585] %MULTIFM-F-MALFORMED-CONFIG, Configuration file [etc/multifm.json] is malformed. (/tsl-sdr/src/tsl-sdr/multifm/multifm.c:107 in main)

in my case there were no config files (json files) listed in the install_manifest.txt, nor manually directed, so none for the installed package
navigating back to the src directory (location of json files), i get this:

$ multifm etc/multifm.json etc/flex_25khz_lpf.json
2021-12-04 19:05:06 [tid=12588] %APP-W-NO-HUGE-PAGE-SIZE-SPECIFIED, Defaulting huge slab size to 2MB. (/src/tsl/app/app.c:421 in app_allocator_init)
Found Rafael Micro R820T/2 tuner
2021-12-04 19:05:07 [tid=12588] %MULTIFM-I-DEV-IDX-OPEN, Successfully opened device at index 0 (/src/tsl-sdr/multifm/rtl_sdr_if.c:363 in rtl_sdr_worker_thread_new)
2021-12-04 19:05:07 [tid=12588] %MULTIFM-I-DEV-IDX-OPEN, Device: Generic RTL2832U OEM Tuner: Rafael Micro R820T (/src/tsl-sdr/multifm/rtl_sdr_if.c:364 in rtl_sdr_worker_thread_new)
2021-12-04 19:05:07 [tid=12588] %MULTIFM-I-SAMPLE-RATE, Setting sample rate to 1000000 Hz (/src/tsl-sdr/multifm/rtl_sdr_if.c:371 in rtl_sdr_worker_thread_new)
Exact sample rate is: 1000000.026491 Hz
2021-12-04 19:05:07 [tid=12588] %MULTIFM-I-CENTER-FREQ, Setting Center Frequency to 929500000 Hz (/src/tsl-sdr/multifm/rtl_sdr_if.c:379 in rtl_sdr_worker_thread_new)
Receiver supports 29 gains: 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6
2021-12-04 19:05:07 [tid=12588] %MULTIFM-I-RECV-GAIN, Setting receive gain to 20.7 dB (/src/tsl-sdr/multifm/rtl_sdr_if.c:272 in __rtl_sdr_worker_set_gain)
2021-12-04 19:05:07 [tid=12588] %MULTIFM-I-FREQ-CORR, Set frequency correction to 0 PPM (/src/tsl-sdr/multifm/rtl_sdr_if.c:417 in rtl_sdr_worker_thread_new)
2021-12-04 19:05:07 [tid=12588] %MULTIFM-I-SAMPLE-RATE, Sample rate is set to 1000000 Hz (/src/tsl-sdr/multifm/receiver.c:148 in receiver_init)
2021-12-04 19:05:07 [tid=12588] %MULTIFM-I-CENTER-FREQ, Center Frequency is 929500000 Hz (/src/tsl-sdr/multifm/receiver.c:149 in receiver_init)
2021-12-04 19:05:07 [tid=12588] %MULTIFM-F-CANT-OPEN-FIFO, Unable to open output fifo '/ch7.out' (/src/tsl-sdr/multifm/demod.c:333 in demod_thread_new)
2021-12-04 19:05:07 [tid=12588] %MULTIFM-E-FAILED-DEMOD-THREAD, Failed to create demodulator thread, aborting. (/src/tsl-sdr/multifm/receiver.c:232 in receiver_init)
The application has PANICked. Reason:
BUG: ((receiver_init(&thr->rx, cfg, _rtl_sdr_worker_thread, _rtl_sdr_worker_thread_delete, (16 * 32 * 512/2)))) == TRUE

Application [version=e36c5e75b50f66c1] terminating at /src/tsl-sdr/multifm/rtl_sdr_if.c:456 [thread=12588]
Call backtrace:
multifm(panic+0xaf)[0x55695311721f]
multifm(rtl_sdr_worker_thread_new+0x17d1)[0x5569531111f1]
multifm(main+0x418)[0x55695310b4b8]
/usr/lib/libc.so.6(__libc_start_main+0xd5)[0x7f66f958cb25]
multifm(_start+0x2e)[0x55695310b85e]
Aborted (core dumped)

i don't know why it constantly references back to the /src directories
i'm not sure what to try next. anyway, sounds like a cool project. i may have to try on the recommended debian if i can't get this to work.