Compiling gr-osmosdr with gnuradio 3.7

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 H.(黃俊傑)
Blog: Random Notes, http://alberthuang314.blogspot.com/

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 H.

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. :slight_smile:

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 C. [email protected] 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 H.(黃俊傑)
Blog: Random Notes, http://alberthuang314.blogspot.com/


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page


Albert Chun-Chieh H.(黃俊傑)
Blog: Random Notes, http://alberthuang314.blogspot.com/

On Tue, Feb 5, 2013 at 12:51 PM, Albert Chun-Chieh H.
[email protected] 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. :slight_smile:

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

On Tue, Feb 5, 2013 at 1:12 PM, Alexandru C. [email protected]
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

On Tue, Feb 5, 2013 at 3:47 PM, Alexandru C. [email protected]
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

On Tue, Feb 5, 2013 at 1:32 PM, Tom R. [email protected] 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

On Tue, Feb 5, 2013 at 7:49 PM, Tom R. [email protected] 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 :frowning:

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

On Tue, Feb 5, 2013 at 5:23 PM, Alexandru C. [email protected]
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

On Tue, Feb 5, 2013 at 11:58 PM, Tom R. [email protected] 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

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

On Wed, Feb 6, 2013 at 6:51 AM, Alexandru C. [email protected]
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