dgiardini / rtl-ais

A simple AIS tuner and generic dual-frequency FM demodulator
Other
266 stars 89 forks source link

Missing 'rtl-sdr.h' #44

Closed mikekolling1966 closed 1 year ago

mikekolling1966 commented 1 year ago

make cc -c rtl_ais.c -o rtl_ais.o -O2 -g -Wall -I./aisdecoder -I ./aisdecoder/lib -I./tcp_listener -I/usr/local/include/ -I/tmp/libusb/include/libusb-1.0 -I/tmp/rtl-sdr/include rtl_ais.c:42:10: fatal error: 'rtl-sdr.h' file not found

include

dgiardini commented 1 year ago

You need to install the rtl-sdr lib. You can try "sudo apt-get install librtlsdr-dev", or google how to install librtlsdr on your system.

On Mon, Nov 20, 2023 at 1:22 PM mikekolling1966 @.***> wrote:

make cc -c rtl_ais.c -o rtl_ais.o -O2 -g -Wall -I./aisdecoder -I ./aisdecoder/lib -I./tcp_listener -I/usr/local/include/ -I/tmp/libusb/include/libusb-1.0 -I/tmp/rtl-sdr/include rtl_ais.c:42:10: fatal error: 'rtl-sdr.h' file not found

include

— Reply to this email directly, view it on GitHub https://github.com/dgiardini/rtl-ais/issues/44, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBJPT7O5TQPAACMTI5MHG3YFN7VDAVCNFSM6AAAAAA7TFZAZKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDENJWGY3DQMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

mikekolling1966 commented 1 year ago

Hi

Its on a MAC, hence that command wont work.

I have installed librtlsdr already using brew (homebrew) but that does not have the DEV one on it.

@.*** rtl-ais % brew install librtlsdr-dev

==> Downloading https://formulae.brew.sh/api/formula.jws.json

######################################################################### 100.0%

==> Downloading https://formulae.brew.sh/api/cask.jws.json

######################################################################### 100.0%

Warning: No available formula with the name "librtlsdr-dev". Did you mean librtlsdr?

==> Searching for similarly named formulae and casks...

==> Formulae

librtlsdr ✔

So how do I install the DEV one.

Kind regards

Mike

MIKE KOLLING DIRECTOR, MANXMAN CONSULTING LTD. 07400 686186 (w) | @.**@.>

@. @. http://www.manxmanconsulting.com

From: dgiardini @.> Reply to: dgiardini/rtl-ais @.> Date: Monday, 20 November 2023 at 16:54 To: dgiardini/rtl-ais @.> Cc: Mike Kolling @.>, Author @.***> Subject: Re: [dgiardini/rtl-ais] Missing 'rtl-sdr.h' (Issue #44)

You need to install the rtl-sdr lib. You can try "sudo apt-get install librtlsdr-dev", or google how to install librtlsdr on your system.

On Mon, Nov 20, 2023 at 1:22 PM mikekolling1966 @.***> wrote:

make cc -c rtl_ais.c -o rtl_ais.o -O2 -g -Wall -I./aisdecoder -I ./aisdecoder/lib -I./tcp_listener -I/usr/local/include/ -I/tmp/libusb/include/libusb-1.0 -I/tmp/rtl-sdr/include rtl_ais.c:42:10: fatal error: 'rtl-sdr.h' file not found

include

— Reply to this email directly, view it on GitHub https://github.com/dgiardini/rtl-ais/issues/44, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBJPT7O5TQPAACMTI5MHG3YFN7VDAVCNFSM6AAAAAA7TFZAZKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDENJWGY3DQMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/dgiardini/rtl-ais/issues/44#issuecomment-1819453357, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJFQEOKWTBMDKN6Q3TQMTSLYFODNTAVCNFSM6AAAAAA7TFZAZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZGQ2TGMZVG4. You are receiving this because you authored the thread.Message ID: @.***>

mikekolling1966 commented 1 year ago

This message is surely saying that the .h file is missing in the build folder?

Do you have the .h file?

Kind regards

Mike

From: dgiardini @.> Reply to: dgiardini/rtl-ais @.> Date: Monday, 20 November 2023 at 16:54 To: dgiardini/rtl-ais @.> Cc: Mike Kolling @.>, Author @.***> Subject: Re: [dgiardini/rtl-ais] Missing 'rtl-sdr.h' (Issue #44)

You need to install the rtl-sdr lib. You can try "sudo apt-get install librtlsdr-dev", or google how to install librtlsdr on your system.

On Mon, Nov 20, 2023 at 1:22 PM mikekolling1966 @.***> wrote:

make cc -c rtl_ais.c -o rtl_ais.o -O2 -g -Wall -I./aisdecoder -I ./aisdecoder/lib -I./tcp_listener -I/usr/local/include/ -I/tmp/libusb/include/libusb-1.0 -I/tmp/rtl-sdr/include rtl_ais.c:42:10: fatal error: 'rtl-sdr.h' file not found

include

— Reply to this email directly, view it on GitHub https://github.com/dgiardini/rtl-ais/issues/44, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBJPT7O5TQPAACMTI5MHG3YFN7VDAVCNFSM6AAAAAA7TFZAZKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDENJWGY3DQMI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://github.com/dgiardini/rtl-ais/issues/44#issuecomment-1819453357, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJFQEOKWTBMDKN6Q3TQMTSLYFODNTAVCNFSM6AAAAAA7TFZAZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZGQ2TGMZVG4. You are receiving this because you authored the thread.Message ID: @.***>

dgiardini commented 1 year ago

You can build and install directly from source code. Show these instructions:

https://gist.github.com/uname-yang/888674925fa8a3bed75a4fc5b9c952f7

When you install the libs, you are installing the missing file too. You'll need not only rtl-sdr.h but other files in order to compile and run rtl-ais. The instructions above should work for you.

Regards, David

On Mon, Nov 20, 2023 at 2:11 PM mikekolling1966 @.***> wrote:

This message is surely saying that the .h file is missing in the build folder?

Do you have the .h file?

Kind regards

Mike

From: dgiardini @.> Reply to: dgiardini/rtl-ais @.> Date: Monday, 20 November 2023 at 16:54 To: dgiardini/rtl-ais @.> Cc: Mike Kolling @.>, Author @.***> Subject: Re: [dgiardini/rtl-ais] Missing 'rtl-sdr.h' (Issue #44)

You need to install the rtl-sdr lib. You can try "sudo apt-get install librtlsdr-dev", or google how to install librtlsdr on your system.

On Mon, Nov 20, 2023 at 1:22 PM mikekolling1966 @.***> wrote:

make cc -c rtl_ais.c -o rtl_ais.o -O2 -g -Wall -I./aisdecoder -I ./aisdecoder/lib -I./tcp_listener -I/usr/local/include/ -I/tmp/libusb/include/libusb-1.0 -I/tmp/rtl-sdr/include rtl_ais.c:42:10: fatal error: 'rtl-sdr.h' file not found

include

— Reply to this email directly, view it on GitHub https://github.com/dgiardini/rtl-ais/issues/44, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ADBJPT7O5TQPAACMTI5MHG3YFN7VDAVCNFSM6AAAAAA7TFZAZKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYDENJWGY3DQMI>

. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub< https://github.com/dgiardini/rtl-ais/issues/44#issuecomment-1819453357>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AJFQEOKWTBMDKN6Q3TQMTSLYFODNTAVCNFSM6AAAAAA7TFZAZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZGQ2TGMZVG4>.

You are receiving this because you authored the thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/dgiardini/rtl-ais/issues/44#issuecomment-1819480662, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADBJPT7HED2FZSH2BJ6UYEDYFOFLBAVCNFSM6AAAAAA7TFZAZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZGQ4DANRWGI . You are receiving this because you modified the open/close state.Message ID: @.***>