Compilation error rtl-sdr.h

1,329 views
Skip to first unread message

Paolo Mattiolo

unread,
Nov 12, 2013, 3:07:01 AM11/12/13
to lin...@googlegroups.com
Hello I'm IN3AQK

during the compilation (Make) of the last version of linrad i receive this error.


rtl2832.c:52:21: fatal error: rtl-sdr.h: No such file or directory



rtl-sdr.h i present and on the root folder of the linrad sources.

What I'm doing wrong?

73 de In3aqk Paolo

Leif Asbrink

unread,
Nov 12, 2013, 8:12:43 AM11/12/13
to lin...@googlegroups.com
Hi Paolo,

Standard libraries are expected in standard locations.
Putting this header in the linrad directory does not help.

Did you run configure first?

What is your operating system?

73

Leif
> --
> You received this message because you are subscribed to the Google Groups "Linrad" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linrad+un...@googlegroups.com.
> To post to this group, send email to lin...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Paolo Mattiolo

unread,
Nov 12, 2013, 8:59:14 AM11/12/13
to lin...@googlegroups.com
Hello Leif,

I've run configure first without errors.
Actually the rtl-sdr.h header file is inside the linrad source folder, as it comes in the downloaded source archive.
The operative system is xubuntu 12.04.

Should I put  rtl-sdr.h in another folder.
I've read something about the  rtl-sdr.h position only for the linux / windows cross compiling, but I'm doing a normal compiling on linux for linux

73 paolo

Leif Asbrink

unread,
Nov 12, 2013, 12:30:32 PM11/12/13
to lin...@googlegroups.com
Hi Paolo,

> I've run configure first without errors.
> Actually the rtl-sdr.h header file is inside the linrad source folder, as
> it comes in the downloaded source archive.
> The operative system is xubuntu 12.04.
>
> Should I put rtl-sdr.h in another folder.
> I've read something about the rtl-sdr.h position only for the linux /
> windows cross compiling, but I'm doing a normal compiling on linux for linux
The file rtl-sdr.h is not included in lir03-49a.tbz and to my knowledge
it has never been included in any linrad source package.

Please run updatedb, then run:
locate librtlsdr.so
locate rtl-sdr.h
Send the lists to me.

I will put libraries and headers like you have them and do some updates
on the configure script to manage this.

I was lazy when writing the code and just assumed that when
librtlsdr is found, the rtl-sdr.h would also be in the appropriate
directory. I will have to add a verify_rtlsdr.c file for the configure
script to compile to detect the problem and also the appropriate
error messages.

Getting the script files right is not trivial. I need a faulty
system to run a test on.

Once you have produced the lists with locate you can get linrad
compilation by putting rtl-sdr.h in the include directory that
belongs to the librtlsdr.so file that does not have the file.
Alternatively you can remove the .so file in case it is an old version.

73

Leif




> 73 paolo
>
> On Tuesday, 12 November 2013 14:12:43 UTC+1, SM5BSZ wrote:
> >
> > Hi Paolo,
> >
> > Standard libraries are expected in standard locations.
> > Putting this header in the linrad directory does not help.
> >
> > Did you run configure first?
> >
> > What is your operating system?
> >
> > 73
> >
> > Leif
> >
> >
> >
> > > Hello I'm IN3AQK
> > >
> > > during the compilation (Make) of the last version of linrad i receive
> > this
> > > error.
> > >
> > >
> > > rtl2832.c:52:21: fatal error: rtl-sdr.h: No such file or directory
> > >
> > >
> > > rtl-sdr.h i present and on the root folder of the linrad sources.
> > >
> > > What I'm doing wrong?
> > >
> > > 73 de In3aqk Paolo
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> > Groups "Linrad" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> > an email to linrad+un...@googlegroups.com <javascript:>.
> > > To post to this group, send email to lin...@googlegroups.com<javascript:>.

Paolo Mattiolo

unread,
Nov 13, 2013, 7:32:15 AM11/13/13
to lin...@googlegroups.com
Hi Leif

thanks for the assistance:
Now i've removed all the sources, downloaded fresh one and re-tried the procedure.
I' ve the same error after

./configure
make xlinrad

-Wundef -fomit-frame-pointer -c -o rtl2832.ol

rtl2832.c:52:21: fatal error: rtl-sdr.h: No such file or directory
compilation terminated.
make: *** [rtl2832.ol] Error 1




Please run updatedb, then run:
locate librtlsdr.so
locate rtl-sdr.h
Send the lists to me.



root@cattivik:/home/paolo/software/linrad# locate librtlsdr.so
/usr/lib/i386-linux-gnu/librtlsdr.so
/usr/lib/i386-linux-gnu/librtlsdr.so.0
/usr/lib/i386-linux-gnu/librtlsdr.so.0.0.5

locate rtl-sdr.h  not found


Now i've done:

apt-get install librtlsdr-dev

And WOW, it works, linrad compiled

Now I've to set it for a fifisdr.

73 de in3aqk
 
You received this message because you are subscribed to a topic in the Google Groups "Linrad" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/linrad/CnPdl987bgw/unsubscribe.
To unsubscribe from this group and all its topics, send an email to linrad+un...@googlegroups.com.

To post to this group, send email to lin...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Paolo Mattiolo
Software developer

http://www.mattiolopaolo.com
Reply all
Reply to author
Forward
0 new messages