Forum: GNU Radio Compiling gr-osmosdr with gnuradio 3.7

Posted by Albert Chun-Chieh Huang (Guest)
on 2013-02-05 10:15
(Received via mailing list)
Hi, all,

I've just searched on the archive of this mailing list as well as
google. I could not find the answer for this combination.

What I'm trying to do is compiling latest gr-osmosdr with gnuradio 3.7,
which is installed by gnuradio-next package in MacPorts. Configuration
seems good. But when I tried to compile it, I get this error message:

====================
$ make
Scanning dependencies of target gnuradio-osmosdr
[  3%] Building CXX object 
lib/CMakeFiles/gnuradio-osmosdr.dir/osmosdr_source_c_impl.cc.o
/Users/albert/Projects/GNUradio/gr-osmosdr/lib/osmosdr_source_c_impl.cc:32:31: 
fatal error: gr_noise_source_c.h: No such file or directory
compilation terminated.
make[2]: *** 
[lib/CMakeFiles/gnuradio-osmosdr.dir/osmosdr_source_c_impl.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-osmosdr.dir/all] Error 2
make: *** [all] Error 2
====================

I could not find gr_noise_source_c.h in
/opt/local/include/gnuradio. Does anybody know how to solve this
problem?

Thanks in advance.
--
Albert Chun-Chieh Huang(黃俊傑)
Blog: Random Notes, http://alberthuang314.blogspot.com/
Posted by Alexandru Csete (Guest)
on 2013-02-05 11:25
(Received via mailing list)
GNU Radio 3.7 will be the *next* release and since it breaks API
compatibility due to namespaces being reorganized third party code
will have to be updated.

Alex

On Tue, Feb 5, 2013 at 9:06 AM, Albert Chun-Chieh Huang
Posted by Albert Chun-Chieh Huang (Guest)
on 2013-02-05 12:52
(Received via mailing list)
Alex,

Yes, I know it's next release. I just wonder if I'm lucky enough to have
gr-osmosdr ready for it at this moment. :-)

Among cheap SDR solutions, is Fun Cube the only one ready for
gnuradio 3.7 right now? It is always built in gnuradio repo, right?


Albert


Alexandru Csete <oz9aec@gmail.com> writes:

>> I've just searched on the archive of this mailing list as well as
>> /Users/albert/Projects/GNUradio/gr-osmosdr/lib/osmosdr_source_c_impl.cc:32:31: 
fatal error: gr_noise_source_c.h: No such file or directory
>> Thanks in advance.
>> --
>> Albert Chun-Chieh Huang(黃俊傑)
>> Blog: Random Notes, http://alberthuang314.blogspot.com/
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>

--
Albert Chun-Chieh Huang(黃俊傑)
Blog: Random Notes, http://alberthuang314.blogspot.com/
Posted by Alexandru Csete (Guest)
on 2013-02-05 15:49
(Received via mailing list)
On Tue, Feb 5, 2013 at 12:51 PM, Albert Chun-Chieh Huang
<alberthuang314@gmail.com> wrote:
> Alex,
>
> Yes, I know it's next release. I just wonder if I'm lucky enough to have
> gr-osmosdr ready for it at this moment. :-)
>
> Among cheap SDR solutions, is Fun Cube the only one ready for
> gnuradio 3.7 right now? It is always built in gnuradio repo, right?
>

Yes, the Funcube Dongle source block should always be compiled if the
dependencies are met.
You can also try to update gr-osmosdr package for yourself - I suspect
the change is rather trivial.
The transition itself may be more problematic as there are many people
who use version 3.6.

Alex
Posted by Alexandru Csete (Guest)
on 2013-02-05 19:13
(Received via mailing list)
On Tue, Feb 5, 2013 at 3:47 PM, Alexandru Csete <oz9aec@gmail.com> 
wrote:
>
> Yes, the Funcube Dongle source block should always be compiled if the
> dependencies are met.
> You can also try to update gr-osmosdr package for yourself - I suspect
> the change is rather trivial.

Ok, maybe not that trivial...
I have installed the next branch and I can't find any of the
noise_source_x headers. As I understand it should be in
include/gnuradio/analog/ and I can see the symbol in
libgnuradio-analog.so but I can't find the header. The same for
sig_source_x blocks. Am I missing something?

Alex
Posted by Tom Rondeau (Guest)
on 2013-02-05 19:34
(Received via mailing list)
On Tue, Feb 5, 2013 at 1:12 PM, Alexandru Csete <oz9aec@gmail.com> 
wrote:

> >>
> libgnuradio-analog.so but I can't find the header. The same for
> sig_source_x blocks. Am I missing something?
>
> Alex
>

Nope, you aren't missing anything, but apparently, we are.  I'm looking 
at
the cmake file, and those files should be there, but they aren't being
installed properly. Looking into this now.

Thanks! (And with all of the changes happening to 3.7, this is why we
appreciate testing and feedback!)

Tom
Posted by Tom Rondeau (Guest)
on 2013-02-05 19:51
(Received via mailing list)
On Tue, Feb 5, 2013 at 1:32 PM, Tom Rondeau <tom@trondeau.com> wrote:

>> >>
>> I have installed the next branch and I can't find any of the
> installed properly. Looking into this now.
>
> Thanks! (And with all of the changes happening to 3.7, this is why we
> appreciate testing and feedback!)
>
> Tom
>

Alex,

It was a cmake variable naming problem. I just pushed a fix. I think I 
got
them all in there now, but let me know if you find any others that 
aren't
getting installed.

Tom
Posted by Alexandru Csete (Guest)
on 2013-02-05 23:24
(Received via mailing list)
On Tue, Feb 5, 2013 at 7:49 PM, Tom Rondeau <tom@trondeau.com> wrote:
>>
>
> Alex,
>
> It was a cmake variable naming problem. I just pushed a fix. I think I got
> them all in there now, but let me know if you find any others that aren't
> getting installed.
>
> Tom
>

With the latest changes I can no longer build the next branch :(

Scanning dependencies of target gnuradio-blocks
[ 33%] Building CXX object
gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/add_ss_impl.cc.o
In file included from
/home/alc/sdr/gnuradio/v3.6.3-575-g359dec2b-next/build/gr-blocks/lib/add_ss_impl.cc:29:0:
/home/alc/sdr/gnuradio/v3.6.3-575-g359dec2b-next/build/gr-blocks/lib/add_ss_impl.h:28:27:
fatal error: blocks/add_ss.h: No such file or directory
compilation terminated.
make[2]: *** 
[gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/add_ss_impl.cc.o]
Error 1
make[1]: *** [gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/all] Error 2
make: *** [all] Error 2

Seems to be a similar issue.

Alex
Posted by Tom Rondeau (Guest)
on 2013-02-05 23:59
(Received via mailing list)
On Tue, Feb 5, 2013 at 5:23 PM, Alexandru Csete <oz9aec@gmail.com> 
wrote:

> >>>
> >>
> > Tom
>
>
> Alex
>

Yeah, because I made a complete hash out of my 'fix.' I forgot to try to
build from scratch and didn't realize that I actually turned off the 
header
generation.

Just pushed a new fix. Should do it.

Tom
Posted by Alexandru Csete (Guest)
on 2013-02-06 08:56
(Received via mailing list)
I don't see why gnuradio 3.7 wouldn't work with open suse 12.2, though
based on our past conversations I suspect you mean the build-gnuradio
script, which is something different.

Alex
Posted by Alexandru Csete (Guest)
on 2013-02-06 12:52
Attachment: gr-osmosdr-gr37.patch (2,01 KB)
(Received via mailing list)
On Tue, Feb 5, 2013 at 11:58 PM, Tom Rondeau <tom@trondeau.com> wrote:
>>
>>
>> Alex
>
>
> Yeah, because I made a complete hash out of my 'fix.' I forgot to try to
> build from scratch and didn't realize that I actually turned off the header
> generation.
>
> Just pushed a new fix. Should do it.
>
> Tom

Hi Tom,

I can build again. I found noise_type.h to missing as well, but after
I added that manually I could finish building gr-osmosdr against
gnuradio 3.7git. I have attached a patch for gr-osmosdr if anyone is
interested, but I'm sure it will support 3.7 soon.

PS: for the patch to work one must ensure that gnuradio-analog and
gnuradio-blocks are available - the patch does not include checks for
those.

Alex
Posted by Tom Rondeau (Guest)
on 2013-02-06 15:26
(Received via mailing list)
On Wed, Feb 6, 2013 at 6:51 AM, Alexandru Csete <oz9aec@gmail.com> 
wrote:

> >>
> >> make[1]: *** [gr-blocks/lib/CMakeFiles/gnuradio-blocks.dir/all] Error 2
> > generation.
> interested, but I'm sure it will support 3.7 soon.
>
> PS: for the patch to work one must ensure that gnuradio-analog and
> gnuradio-blocks are available - the patch does not include checks for
> those.
>
> Alex
>

The noise_type.h bug has been fixed.

Tom
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.