Monday, February 15, 2010

Re: [Discuss-gnuradio] modifying how-to-write-a-block 3.2.2

Tom,
most of my problems have to do with compilation i.e. my new block
doesnt compile as somewhere there is a reference to the old how_to
module structure. I didnt add any errors since I think I had attempted
a very large change in one go (i.e. changed the code and module name
and pared down from two classes to just one) and I can solve the
problem by incrementally changing just one thing at a time. I still
think I should be able solve this if I give it another 3-4 hrs
(probably tomorrow) but was hoping to see if someone updated the howto
that works for older versions.

Affan
On Feb 15, 2010, at 5:04 PM, Tom Gross wrote:

> Hi Affan,
>
> Why kind of problems have you been having? I did quite a bit of
> productive work with version 3.2.2 simply by creating a new set of
> "how_to" routines in addition to the examples.
>
> Are you having compile problems? Run-time problems? I remember
> having lots of run-time difficulties because I think the how-to gets
> put into /usr/local/lib by default and the usual gnuradio-3.2.2 stuff
> goes into /usr/lib (or vice versa, I forget) and you need to make sure
> both the regular stuff and the how-to stuff is configured with the
> --prefix=/usr option.
>
> -Tom
>
> On Mon, Feb 15, 2010 at 7:16 PM, Affan Syed <affanahmed@gmail.com>
> wrote:
>> Hello all,
>>
>> I have been spending a considerable amount of time to modify the
>> how-to-write-a-block to compile and make my own, different name,
>> module.
>> While changing the code withing the howto_square_ff.cc is a simple
>> solution,
>> it is unfulfilling.
>>
>> Sadly, I think I tried to make big changes in the code structure
>> and a
>> simple find/replace of Makefile.am and howto.i (as well as renaming
>> the
>> files) and other obvious files, does not suffice. I tried to look for
>> instructions on exactly which files and lines to modify, but there
>> seem to
>> be none for the structure provided in the example for version
>> 3.2.2. There
>> are several places (Dawei Shen's tutorial amongst others) that
>> explain the
>> modification for a boilerplate model for, I believe, version 3.02
>> and
>> before, but nothing for the newer version where the Makefiles.am in
>> the
>> src/lib directory is quite different.
>>
>> I will continue to hack on the current version, and keep notes so
>> that so I
>> can report what and how it works, but if anyone knows of an existing
>> enumeration of steps on how to take the boilerplate provided by the
>> how-to-write-a-block ver 3.2.2 and modify it to say a module name
>> toneDetect, I will appreciate it.
>>
>> Regards,
>>
>> Affan.
>>
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>>

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment