WX GUIs using FFTs not working

Hi,

After building gnu-radio v3.6.3-35 with the build-gnuradio script the
WX GUIs that use FFTs do not work (waterfall sink, fft sink),
reporting “gri_fftw: can’t import wisdom from $HOME/.gr_fftw_wisdom”.
That file does exist, has the right permissions (664) and contains
fftwf_wisdom information.

Non-fft WX GUI sinks like scope and histo sink do work when using a
throttled noise source as input (all created through grc).

I have a fftw3 compiled and installed in /usr/local and the
build-gnuradio script installed the libraries and header files in
/usr; not sure if this is part of the problem.

Before this issue there were problems with wx; failing the ‘import wx’
on anything that used wx. It appeared I had both python-wxgtk2.6 and
python-wxgtk2.8 installed. After removing both and installing
python-wxgtk2.8 that problem went away, but may have caused the FFT
problem.

Regards,
C. Bassa

On 02/02/13 02:34 PM, C. Bassa wrote:

Regards,
C. Bassa


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page

Just remove your .gr_fftw_wisdom file, it’s probably got trash in it.

What Linux distrib are you using?


Principal Investigator
Shirleys Bay Radio Astronomy Consortium

Hi Marcus,

On Sat, Feb 2, 2013 at 7:38 PM, Marcus D. Leech [email protected]
wrote:

Just remove your .gr_fftw_wisdom file, it’s probably got trash in it.

I tried this; the error message disappears but the program seg faults.
No new .gr_fftw_wisdom file is created.

What Linux distrib are you using?

XUbuntu 12.04.

Regards,
Cees

On 02/02/13 02:43 PM, C. Bassa wrote:

Hi Marcus,

On Sat, Feb 2, 2013 at 7:38 PM, Marcus D. Leech [email protected] wrote:

Just remove your .gr_fftw_wisdom file, it’s probably got trash in it.
I tried this; the error message disappears but the program seg faults.
No new .gr_fftw_wisdom file is created.

My suspicion is a conflict between the installed-from-package FFTW
(which build-gnuradio will install if it isn’t there),
and your installed-from-source FFTW.

Unless you’ve done something pathological in your .grc file that’s
provoking a bug in the FFT implementation.

Can you post your .grc file?


Principal Investigator
Shirleys Bay Radio Astronomy Consortium

i am still face problem for making simple block in gnuradio
i am using gr_modtool
i follow the steps
1- creating the module ( named ramadan)
2 adding the block(mm)
i have 2 files in lib (mm_imp.cc, mm_imp.hh) and one file in include
(mm.h)
i made changes in the 3 files like square example in tutorial, but while
building i face problem in make appears for me

el-hadidy@ubuntu:~/gr-ramadan/build$ make
Scanning dependencies of target gnuradio-ramadan
[ 5%] Building CXX object
lib/CMakeFiles/gnuradio-ramadan.dir/mm_impl.cc.o
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:32:29: error:
howto_square_ff.h: No such file or directory
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:39: error:
‘howto_square_ff_sptr’ does not name a type
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:62: error: ‘howto_square_ff’
has not been declared
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:62: error: ISO C++ forbids
declaration of ‘howto_square_ff’ with no type
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc: In function ‘int
howto_square_ff()’:
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:63: error: only constructors
take base initializers
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc: At global scope:
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:73: error: expected
constructor, destructor, or type conversion before ‘::’ token
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:79: error: ‘howto_square_ff’
is not a class or namespace
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:
In function ‘int general_work(int, gr_vector_int&,
gr_vector_const_void_star&, gr_vector_void_star&)’:
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:94: error: ‘consume_each’ was
not declared in this scope
make[2]: *** [lib/CMakeFiles/gnuradio-ramadan.dir/mm_impl.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-ramadan.dir/all] Error 2
make: *** [all] Error 2
el-hadidy@ubuntu:~/gr-ramadan/build$

so , how can i solve this problem? can any one help me to fix this
problem as i read more and still face problems. Thanks

On Sun, Feb 3, 2013 at 6:02 AM, Mohammed R.
[email protected]wrote:

declaration of howto_square_ff with no type
general_work(int, gr_vector_int&, gr_vector_const_void_star&,
gr_vector_void_star&):
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:94: error: consume_each was
not declared in this scope
make[2]: *** [lib/CMakeFiles/gnuradio-ramadan.dir/mm_impl.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-ramadan.dir/all] Error 2
make: *** [all] Error 2

el-hadidy@ubuntu:~/gr-ramadan/build$

so , how can i solve this problem? can any one help me to fix this problem
as i read more and still face problems. Thanks

Again, this looks like a version problem. Except in this case, it looks
like you have a really old version of GNU Radio installed before there
was
a consume_each (and I can’t even remember how far back that was).

Tom

(mm.h)
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc:39: error:
/home/el-hadidy/gr-ramadan/lib/mm_impl.cc: At global scope:
not declared in this scope
Again, this looks like a version problem. Except in this case, it looks
like you have a really old version of GNU Radio installed before there was
a consume_each (and I can’t even remember how far back that was).

Tom

To me it looks like there are some classname:: missing in the
implementation file, in which case the general_work is defined outside
the
class and thus undefined (at least that’s when I am seeing these
errors).
Can you check/post your .cc code?

Martin

Hi Marcus,

On Sat, Feb 2, 2013 at 8:02 PM, Marcus D. Leech [email protected]
wrote:

Can you post your .grc file?

See below. In the companion I’ve hooked up a gaussian noise source
through a throttle to a WX GUI FFT. If I change the GUI FFT for the
scope it works fine, hence my suspicion is has to do with either FFTW
or WX.

Regards,
Cees


<?xml version='1.0' encoding='ASCII'?>

<flow_graph>
Sat Feb 2 19:27:57 2013

options

id
top_block


_enabled
True


title



author



description



window_size
1280, 1024


generate_options
wx_gui


category
Custom


run_options
prompt


run
True


max_nouts
0


realtime_scheduling



_coordinate
(10, 10)


_rotation
0



variable

id
samp_rate


_enabled
True


value
32000


_coordinate
(10, 170)


_rotation
0



gr_throttle

id
gr_throttle_0


_enabled
True


type
complex


samples_per_second
samp_rate


vlen
1


_coordinate
(476, 31)


_rotation
0



wxgui_fftsink2

id
wxgui_fftsink2_0


_enabled
True


type
complex


title
FFT Plot


samp_rate
samp_rate


baseband_freq
0


y_per_div
10


y_divs
10


ref_level
0


ref_scale
2.0


fft_size
1024


fft_rate
15


peak_hold
False


average
False


avg_alpha
0


win
None


win_size



grid_pos



notebook



freqvar
None


_coordinate
(810, 149)


_rotation
0



analog_noise_source_x

id
analog_noise_source_x_0


_enabled
True


type
complex


noise_type
analog.GR_GAUSSIAN


amp
1


seed
0


_coordinate
(256, 14)


_rotation
0



<source_block_id>analog_noise_source_x_0</source_block_id>
<sink_block_id>gr_throttle_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>


<source_block_id>gr_throttle_0</source_block_id>
<sink_block_id>wxgui_fftsink2_0</sink_block_id>
<source_key>0</source_key>
<sink_key>0</sink_key>

</flow_graph>