Saturday, December 31, 2022

Re: equivalent to linux/serial.h?

On 2022-12-31, chohag@jtan.com <chohag@jtan.com> wrote:
> Justin Muir writes:
>> Hello,
>>
>> Just attempting to compile SDRAngel from source and I'm getting some errors
>> in the process.
>>
>> The latest is: "linux/serial.h" missing. Is there an equivalent I can
>> point to on OpenBSD?
>>
>> I'm also having difficulties with the dab-cmdline library. The compile goes
>> haywire with a bunch of mismatches in header definitions. Is there an
>> equivalent to dab-cmdline in OBSD??
>
> OpenBSD has two files named serial.h:
>
> llama$ find /usr/include/ /usr/src/ -name serial.h
> /usr/src/gnu/usr.bin/binutils/gdb/serial.h
> /usr/src/usr.bin/dig/lib/isc/include/isc/serial.h

That is a linux-kernel-specific header, those files aren't going to
be what this software wants. It's only used in the ambe plugin, which
can be disabled with a cmake flag, which will likely get you past that
issue.

But I suspect there will be wider problems, USB SDRs usually need
asynchronous input/output and that doesn't work via libusb on OpenBSD
(and generally there is fairly poor support for userland access to USB
devices).

> But nothing named dab-like, even in ports.

At least the rtl-sdr support in dab-cmdline/libdab definitely needs
async support in the rtl-sdr library which doesn't work on OpenBSD.

Unless you feel like digging into libusb and the kernel USB interface,
I would recommend running this software on a Linux box instead.

--
Please keep replies on the mailing list.

No comments:

Post a Comment