hey happy easter....:)
I generated module using gr-modtool as shown in "
https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules";
latter, as gsl_matrix , gsl_vector and gsl_linalg were required for my code
I installed libgsl0-dev and all its related file through sudo apt-get
install....:)
Thanks in advance,
Abhishek



On Mon, Apr 6, 2015 at 12:35 AM, Abhishek Shukla <shuklaabhishe...@gmail.com
> wrote:

> hey happy easter....:)
> I generated module using gr-modtool as shown in "
> https://gnuradio.org/redmine/projects/gnuradio/wiki/OutOfTreeModules";
> latter, as gsl_matrix , gsl_vector and gsl_linalg were required for my
> code I installed libgsl0-dev and all its related file through sudo apt-get
> install....:)
> Thanks in advance,
> Abhishek
>
> On Sun, Apr 5, 2015 at 10:46 PM, Marcus Müller <marcus.muel...@ettus.com>
> wrote:
>
>>  Hey Abishek,
>> happy easter. How did you you generate your module? gr_modtool? Does it
>> use any matrix methods from GSL?
>>
>> Greetings,
>> Marcus
>>
>>
>> On 04/05/2015 05:25 PM, Abhishek Shukla wrote:
>>
>>    hey Marcus,
>>  Now, I am able to import detect_ff block. But while running an example
>> using that block, i am stuck with a runtime error
>>
>>   File "/usr/local/lib/python2.7/dist-packages/howto/howto_swig.py", line
>> 24, in swig_import_helper
>>     _mod = imp.load_module('_howto_swig', fp, pathname, description)
>> ImportError: /usr/local/lib/libgnuradio-howto.so: undefined symbol:
>> gsl_matrix_alloc
>>
>> >>> Done
>>
>>  Hence not able to generate flow graph. Screen shot of given example is
>> attached.
>>  Also i have attached .cc file of detect_ff block.
>>  Would you please help me out with this error.
>>  Thanks in advance,
>>  Abhishek
>>
>> On Wed, Apr 1, 2015 at 1:44 PM, Marcus Müller <marcus.muel...@ettus.com>
>> wrote:
>>
>>> Hi Abhishek,
>>>
>>> that guide refers to a somewhat outdated API, so it doesn't apply to
>>> your case (that guide refers to an architecture where there was no
>>> separate _impl class).
>>>
>>> Have you read the guided tutorials and their chapter on C++ blocks? It's
>>> explaining how you can add functions to blocks.
>>> I'd personally recommend just starting anew, sticking to the guided
>>> tutorials; wherever you got your guidance from, it mixes things that
>>> apply to different versions of GNU Radio, and debugging this is really
>>> not worth it when you could as well just start with a clean slate and
>>> learn things *right*.
>>>
>>> Best regards,
>>> Marcus
>>>  On 04/01/2015 06:28 AM, abhishek wrote:
>>> > hey marcus,
>>> > here error given is, could not insert function, but we can according
>>> > to
>>> > "
>>> http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide#Public-Header-Files
>>> ".
>>> > Even i am not able to get last and second last error of expected "("
>>> > and "{", but in the code all brackets are up to the mark and used
>>> > properly.
>>> >
>>> > abhishek@abhishek-Inspiron-N5110:~/gr-howto/build$ make
>>> > Scanning dependencies of target gnuradio-howto
>>> > [  5%] Building CXX object
>>> > lib/CMakeFiles/gnuradio-howto.dir/howto_detect_ff_impl.cc.o
>>> > In file included from
>>> > /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:27:0:
>>> > /home/abhishek/gr-howto/lib/howto_detect_ff_impl.h:40:7: error:
>>> > ‘gr::howto::howto_detect_ff_impl::howto_detect_ff_impl(float, int,
>>> > int)’ cannot be overloaded
>>> >        howto_detect_ff_impl(float pfa, int L, int samples);
>>> >        ^
>>> > /home/abhishek/gr-howto/lib/howto_detect_ff_impl.h:37:6: error: with
>>> > ‘gr::howto::howto_detect_ff_impl::howto_detect_ff_impl(float, int,
>>> int)’
>>> >       howto_detect_ff_impl (float pfa, int L, int samples);
>>> >       ^
>>> > /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:37:27: error:
>>> > prototype for ‘gr::howto::howto_detect_ff::sptr
>>> > gr::howto::howto_detect_ff::make(float, int, int)’ does not match any
>>> > in class ‘gr::howto::howto_detect_ff’
>>> >      howto_detect_ff::sptr howto_detect_ff::make(float pfa, int L, int
>>> > samples)
>>> >                            ^
>>> > In file included from
>>> > /home/abhishek/gr-howto/lib/howto_detect_ff_impl.h:24:0,
>>> >                  from
>>> > /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:27:
>>> > /home/abhishek/gr-howto/include/howto/howto_detect_ff.h:49:19: error:
>>> > candidate is: static gr::howto::howto_detect_ff::sptr
>>> > gr::howto::howto_detect_ff::make()
>>> >        static sptr make();
>>> >                    ^
>>> > /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc: In constructor
>>> > ‘gr::howto::howto_detect_ff_impl::howto_detect_ff_impl(float, int,
>>> int)’:
>>> > /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:57:71: warning:
>>> > extended initializer lists only available with -std=c++11 or
>>> > -std=gnu++11 [enabled by default]
>>> >                gr::io_signature::make (MIN_OUT, MAX_OUT,
>>> sizeof(float)),
>>> > ^
>>> > /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:66:5: error:
>>> > expected ‘)’ before ‘(’ token
>>> >      (howto_detect_ff_impl()::~howto_detect_ff_impl())
>>> >      ^
>>> > /home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:187:1: error:
>>> > expected ‘{’ before ‘}’ token
>>> >  }   /* namespace howto */
>>> >  ^
>>> > make[2]: ***
>>> > [lib/CMakeFiles/gnuradio-howto.dir/howto_detect_ff_impl.cc.o] Error 1
>>> > make[1]: *** [lib/CMakeFiles/gnuradio-howto.dir/all] Error 2
>>> > make: *** [all] Error 2
>>> >
>>> > Could you please help me out with all individual errors. Attachment of
>>> > al the 3 files are provided.
>>> > Thanks in advance,
>>> > Abhishek.
>>>
>>>
>>
>>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to