cannot make new signal processing block

cannot make new signal processing block

Hi all,

I am currently following the instructions for building new signal processing block. I have downloaded complete folder as it was stated. The problem is when I enter folder topdir/src.python and run make check I have the following error:

[savi_ne@ts python]$ make check
make: *** No rule to make target `check'. Stop.

Re: cannot make new signal processing block

> On Tue, Oct 09, 2012 at 12:28:57PM +0200, Nemanja Savic wrote:
>> http://www.gnu.org/software/gnuradio/doc/howto-write-a-block.html>>
>> And the problem was bad reference to the PKG_CONFIG_PATH.
>>
>> I see that in the instructions you sent me and inistructions that I was
>> following, building folders are different.
>
> That's ancient docs... didn't you read the sell-by date? :)
> Just go to gnuradio.org and follow the instructions. They're really
> impossible to miss.
>
> Johnathan/Tom, can you take that old stuff down? Outdated docs are
> poison, if you ask me.
>
> MB

It's hosted on gnu.org, and I don't have access to edit it. I'll have
to contact the FSF webmaster and ask him to remove it.

Looks like you haven't done the installation properly. Is the SWIG
interface file correct? All of the CMakeLists.txt files updated?
What's your install path? If it's not a standard path (/usr,
/usr/local) you'll have to make sure Python knows where to find it
(PYTHONPATH=...).

Re: cannot make new signal processing block

Python path is OK. Gnuradio works fine, I have tried some examples using GRC, etc.

I also used gr-modtool like it was explained on the website.
I haven't looked at swig interface file since it was not part of the tutorial, but I think it should have been generated correctly by gr-modtool.

Re: cannot make new signal processing block

Of course, that's at least what I can do.

First of all, I would like to say that the biggest problem was lack of my knowledge in Linux.
I was strictly following instructions from gnuradio.org about making out of tree signal processing block, and there is not stated that i have to do make install before testing module.
Also, nowhere is stated stest -V, for getting more error information, and also using -DCMAKE_INSTALL_PREFIX, whish is used for setting base address or whatever.

Maybe somebody should make detailed tutorials, for the people that knows only signal processing, not Linux, just for smooth start, unti they get used.

Re: cannot make new signal processing block

On Tue, Oct 16, 2012 at 02:08:42AM -0700, nexy_sm wrote:
> First of all, I would like to say that the biggest problem was lack of my
> knowledge in Linux.
> I was strictly following instructions from gnuradio.org about making out of
> tree signal processing block, and there is not stated that i have to do
> /make install/ before testing module.

Hm, you shouldn't need to do that. (That's why it's not in the
instructions.)

> Also, nowhere is stated stest -V, for getting more error information, and
> also using -DCMAKE_INSTALL_PREFIX, whish is used for setting base address or
> whatever.

That's already what I'd consider 'advanced' usage, which is why it's not
in the tutorial, either. Although I guess 'ctest -V' could be in there.

> Maybe somebody should make detailed tutorials, for the people that knows
> only signal processing, not Linux, just for smooth start, unti they get
> used.

Since you just went through the process, how about writing something
while the knowledge is still fresh?

Re: cannot make new signal processing block

On Tue, Oct 16, 2012 at 03:14:31AM -0700, nexy_sm wrote:
> Do you mean some kind of tutorial or what?
>
> Well, that means that my test don't work, since you said that make install
> isn't necesary.
>
> So, let's start again, what might be a problem?

That's still impossible to tell from what you've written.
I've just checked that gr_modtool and the tutorial are correct.

Re: cannot make new signal processing block

> Of course, that's at least what I can do.
>
> First of all, I would like to say that the biggest problem was lack of my
> knowledge in Linux.
> I was strictly following instructions from gnuradio.org about making out of
> tree signal processing block, and there is not stated that i have to do
> /make install/ before testing module.
> Also, nowhere is stated stest -V, for getting more error information, and
> also using -DCMAKE_INSTALL_PREFIX, whish is used for setting base address or
> whatever.
>
> Maybe somebody should make detailed tutorials, for the people that knows
> only signal processing, not Linux, just for smooth start, unti they get
> used.
>
> Regards
> Nemanja

Unfortunately, you cannot separate the signal processing of SDR from
the operating system. You need to understand a bit of each if you're
going to do anything really, truly useful. So while you're struggling
to get some of this stuff started, you are also learning a lot about
Linux and the build tools. This will serve you immeasurably well in
the future. I am right now struggling through similar issues with OSX.

That having been said, we are slowly producing more information to
help people out. Look at the Doxygen manual that get's generated when
you install GNU Radio. There's a lot more information in there to help
people understand some features of GNU Radio and of the build system.
The -V 'trick' for ctest is kind of outside of the scope of GNU Radio.
That's something that's documented with ctest. I learned about this
myself by just searching for help on getting information out of 'make
test.'

One of the biggest problems we can have as developers is that we are
probably the worst people to document the code, especially features
like what you are talking about. It's hard to know what others don't
know. A lot of what is on the instructions and manuals that I've put
in are because I was just learning something, like using cmake
properly, and thought, "oh, this is something that should be
documented." We have to rely on people to help us put this together.