g0orx / linhpsdr

Linux HPSDR
GNU General Public License v3.0
74 stars 44 forks source link

Missing header on instructions #108

Open coloboxp opened 2 years ago

coloboxp commented 2 years ago

I was following this instructions to install linhpsdr, however at the moment of executing make -j4, I encountered an error:

gcc -g -Wno-deprecated-declarations -O3 -D MIDI    -D CWDAEMON   -D GIT_DATE='"2021-02-25"' -D GIT_VERSION='"Beta"' `pkg-config --cflags gtk+-3.0`   -c -o alsa_midi.o alsa_midi.c
cwdaemon.c:32:10: fatal error: libcw.h: No such file or directory
   32 | #include <libcw.h>
      |          ^~~~~~~~~
compilation terminated.
make: *** [Makefile:113: cwdaemon.o] Error 1
make: *** Waiting for unfinished jobs....

So, long story short, you need that header file as well, you can obtain it by:

sudo apt install libcw6-dev

tested and running on 20.04.1-Ubuntu SMP Fri Aug 27 08:06:32 UTC 2021 x86_64 x86_64 GNU/Linux

m5evt commented 2 years ago

I don't know what radio you are using, or your intended use, but I will make the following comment.

If you wish to use the features of libcw (cwdaemon - see 4.1.1 of https://github.com/m5evt/linhpsdr/blob/master/documentation/linhpsdr_hl2.pdf) then you need to get a newer version of libcw than that in most repos. I forked and made changes https://github.com/m5evt/unixcw-3.5.1. But these are now upstream in 3.6.0 https://sourceforge.net/projects/unixcw/files/

If you aren't using protocol 1 of an HPSDR radio that supports cwx, the best advice is to comment out CWDAEMON in the makefile. This was commented out by default until recently and would probably be best to be commented out again.