discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] "make" error while making detector (howto_detect_


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] "make" error while making detector (howto_detect_ff) block.
Date: Sun, 29 Mar 2015 15:26:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Hi Abhishek,

your _impl.cc is using old-style naming in out-of-tree-modules and their components, whilst your detect_ff.h uses the consistent new way.
I think this could be the result of using gr_modtool to generate the module skeleton, and then copy/pasting over lines from a pre-3.7 code example. Is that possible?

Also, I already pointed you to the newer guided tutorials[1], which don't build on the unmaintained gr-howto example. Please use these to get used to GNU Radio.

Greetings,
Marcus

[1] https://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials

On 03/29/2015 03:16 PM, Abhishek Shukla wrote:
hey,
I am working to make a detector block in gnuradio 3.7.1 using gr-how "out-of-tree module". I am stuck with an error during make command

address@hidden:~/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
/home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:37:5: error: ‘howto_detect_ff_sptr’ does not name a type
     howto_detect_ff_sptr
     ^
/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:59:17: error: _expression_ cannot be used as a function
        d_pfa(pfa), d_L(L), d_samples(samples)
                 ^
/home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:59:25: error: _expression_ cannot be used as a function
        d_pfa(pfa), d_L(L), d_samples(samples)
                         ^
/home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:59:45: error: _expression_ cannot be used as a function
        d_pfa(pfa), d_L(L), d_samples(samples)
                                             ^
/home/abhishek/gr-howto/lib/howto_detect_ff_impl.cc:185: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



Os is ubuntu 14.04. Even i have attached howto_detect_ff_impl.h, howto_detect_ff_impl.cc and howto_swig.i file.
It seems that some mistake is there in howto_detect_ff.h file whose path is gr-howto/include/howto. But i am not getting what exactly it is
Any solution to sort an error will be appreciated.
Thanks in advance,
Abhishek.


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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]