hey marcus,
For that block, now i get the following error whenever i execute the
flowgraph in
GRC.

 File "/home/abhishek/top_block.py", line 53, in __init__
    self.howto_detect_ff_0 = howto.detect_ff(100, 16, 1500)
AttributeError: 'module' object has no attribute 'detect_ff'

>>> Done

Any help will be appreciated,
Thanks in advance,
Abhishek

On Mon, Apr 6, 2015 at 9:40 PM, Marcus Müller <marcus.muel...@ettus.com>
wrote:

>  Hi Abishek,
>
> ah, in that case you'll need to tell your build system to link against
> GSL.
> To do that, you will have to add GSL finding ability to your OOT's
> /CMakeLists.txt and use the found library in lib/CMakeLists.txt.
> Luckily, gr-wavelet already does this, so you'll basically just have to
> copy over the things that have to do with GSL from
> gnuradio/gr-wavelet/CMakeLists.txt to your /CMakeLists.txt and add the
> libraries to you lib/CMakeLists.txt, just like
> gnuradio/gr-wavelet/lib/CMakeLists.txt does.
>
> I'm not completely sure, but maybe you'll also have to copy over GNU
> Radio's FindGSL.cmake from gnuradio/cmake/Modules/ to (you get the idea) to
> your OOT's cmake/Modules/.
>
> Greetings,
> Marcus
>
>
> On 04/05/2015 10:26 PM, Abhishek Shukla 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 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