'*****' has not been declared

2022-07-25 Thread Beckmann, Niklas
Dear members of the gnuradio mailing list,


since 2 days I am trying to fix this error. So maybe one of you guys can help 
me...

I am grateful for any help.


I have the following code, which is the impl.h file of a block from my oot 
module.


#ifndef INCLUDED_FLORIANINETS_BASEBAND_DEROTATION2_IMPL_H
#define INCLUDED_FLORIANINETS_BASEBAND_DEROTATION2_IMPL_H

#include 

namespace gr {
namespace FlorianiNets {

class baseband_derotation2_impl : public baseband_derotation2
{
private:
float f_mu;
float f_error;
gr::digital::constellation_sptr;
gr::digital::c_constellation;
float wrap_phase(float phi);

public:
baseband_derotation2_impl(float mu,
  gr::digital::constellation_sptr,
  gr::digital::constellation);
~baseband_derotation2_impl();

// Where all the action really happens
int work(int noutput_items,
 gr_vector_const_void_star& input_items,
 gr_vector_void_star& output_items);
};

} // namespace FlorianiNets
} // namespace gr

#endif /* INCLUDED_FLORIANINETS_BASEBAND_DEROTATION2_IMPL_H */

When I run make, I get this error list, and I simply don't know why:

In file included from 
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.h:11,
 from 
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.cc:8:
/home/niklas/gr-FlorianiNets/lib/../include/gnuradio/FlorianiNets/baseband_derotation2.h:36:24:
 error: ‘gr::digital’ has not been declared
   36 | make(float mu, gr::digital::constellation_sptr, 
gr::digital::constellation);
  |^~~
/home/niklas/gr-FlorianiNets/lib/../include/gnuradio/FlorianiNets/baseband_derotation2.h:36:57:
 error: ‘gr::digital’ has not been declared
   36 | make(float mu, gr::digital::constellation_sptr, 
gr::digital::constellation);
  | ^~~
In file included from 
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.cc:8:
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.h:21:13: error: 
‘digital’ in namespace ‘gr’ does not name a type
   21 | gr::digital::constellation_sptr;
  | ^~~
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.h:22:13: error: 
‘digital’ in namespace ‘gr’ does not name a type
   22 | gr::digital::c_constellation;
  | ^~~
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.h:27:35: error: 
‘gr::digital’ has not been declared
   27 |   gr::digital::constellation_sptr,
  |   ^~~
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.h:28:35: error: 
‘gr::digital’ has not been declared
   28 |   gr::digital::constellation);
  |   ^~~



I tried everything, what I know to fix this, but I did not manage to do so.
Maybe someone else has a good advice.

Thank you very much,
Nik




Re: '*****' has not been declared

2022-07-25 Thread Marcus Müller

Hi Nik,

if you use names from a different header file, you'll need to include that header, 
otherwise your compiler can't know what that name means! In this case, you need to include 
the header that defines gr::digital::constellation and gr::digital::constellation_sptr. 
That would be done by


#include 

in your header.

(note: that's a bit of a basic C++ thing, you need to declare the things you use in each 
compilation unit *before* you use them.)


Best regards,
Marcus

PS: kind of surprising to pass in both a shared pointer to a constellation object, and to 
pass-by-value (i.e., make a copy) another constellation object. Hope that makes sense!



On 25.07.22 12:14, Beckmann, Niklas wrote:

Dear members of the gnuradio mailing list,


since 2 days I am trying to fix this error. So maybe one of you guys can help 
me...

I am grateful for any help.


I have the following code, which is the impl.h file of a block from my oot 
module.


#ifndef INCLUDED_FLORIANINETS_BASEBAND_DEROTATION2_IMPL_H
#define INCLUDED_FLORIANINETS_BASEBAND_DEROTATION2_IMPL_H

#include 

namespace gr {
namespace FlorianiNets {

class baseband_derotation2_impl : public baseband_derotation2
{
private:
     float f_mu;
     float f_error;
     gr::digital::constellation_sptr;
     gr::digital::c_constellation;
     float wrap_phase(float phi);

public:
     baseband_derotation2_impl(float mu,
   gr::digital::constellation_sptr,
   gr::digital::constellation);
     ~baseband_derotation2_impl();

     // Where all the action really happens
     int work(int noutput_items,
  gr_vector_const_void_star& input_items,
  gr_vector_void_star& output_items);
};

} // namespace FlorianiNets
} // namespace gr

#endif /* INCLUDED_FLORIANINETS_BASEBAND_DEROTATION2_IMPL_H */

When I run make, I get this error list, and I simply don't know why:

In file included from 
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.h:11,
  from 
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.cc:8:
/home/niklas/gr-FlorianiNets/lib/../include/gnuradio/FlorianiNets/baseband_derotation2.h:36:24: 
error: ‘gr::digital’ has not been declared

    36 | make(float mu, gr::digital::constellation_sptr, 
gr::digital::constellation);
   |    ^~~
/home/niklas/gr-FlorianiNets/lib/../include/gnuradio/FlorianiNets/baseband_derotation2.h:36:57: 
error: ‘gr::digital’ has not been declared

    36 | make(float mu, gr::digital::constellation_sptr, 
gr::digital::constellation);
   | ^~~
In file included from 
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.cc:8:
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.h:21:13: error: ‘digital’ in 
namespace ‘gr’ does not name a type

    21 | gr::digital::constellation_sptr;
   | ^~~
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.h:22:13: error: ‘digital’ in 
namespace ‘gr’ does not name a type

    22 | gr::digital::c_constellation;
   | ^~~
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.h:27:35: error: ‘gr::digital’ 
has not been declared

    27 |   gr::digital::constellation_sptr,
   |   ^~~
/home/niklas/gr-FlorianiNets/lib/baseband_derotation2_impl.h:28:35: error: ‘gr::digital’ 
has not been declared

    28 |   gr::digital::constellation);
   |   ^~~



I tried everything, what I know to fix this, but I did not manage to do so.
Maybe someone else has a good advice.

Thank you very much,
Nik




smime.p7s
Description: S/MIME Cryptographic Signature


Compatibility_Ubuntu_GnuRadio_Python

2022-07-25 Thread Info
Hello,

I have installed GnuRadio 3.10.1.1 and Python 3.10.4 on Ubuntu 22_04

and I run into a problem:

 

There is only a very simple flowgraph:

QT GUI Toggle Switch --> QT GUI LED Indicator

 

At runtime, there is an error in modul: 

"/usr/lib/python3/dist-packages/gnuradio/qtgui/ledindicator.py", line 79

As I can see, there is a type mismatch between float and whatever?

Has anybody an idea what goes wrong and how can I fix it?

Thanks

Karlheinz Kemna

 

 

Console printout at runtime:

 

<<< Welcome to GNU Radio Companion 3.10.1.1 >>>

 

Block paths:

/usr/share/gnuradio/grc/blocks

/usr/local/share/gnuradio/grc/blocks

 

Loading: "/home/user/MyProj/GnuRadio/Test/LedIndicator.grc"

>>> Done

 

Generating: '/home/user/MyProj/GnuRadio/Test/LedIndicator.py'

 

Executing: /usr/bin/python3 -u
/home/user/MyProj/GnuRadio/Test/LedIndicator.py

 

Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use
QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Traceback (most recent call last):

  File "/home/user/MyProj/GnuRadio/Test/LedIndicator.py", line 188, in


main()

  File "/home/user/MyProj/GnuRadio/Test/LedIndicator.py", line 166, in main

tb = top_block_cls()

  File "/home/user/MyProj/GnuRadio/Test/LedIndicator.py", line 85, in
__init__

self.qtgui_ledindicator_0 = self._qtgui_ledindicator_0_win =
qtgui.GrLEDIndicator('Hallo', "green", "red", False, 40, 1, 1, 1, self)

  File "/usr/lib/python3/dist-packages/gnuradio/qtgui/ledindicator.py", line
175, in __init__

LabeledLEDIndicator.__init__(self, lbl, onColor, offColor, initialState,

  File "/usr/lib/python3/dist-packages/gnuradio/qtgui/ledindicator.py", line
79, in __init__

self.setMinimumSize(maxWidth, maxHeight)

TypeError: arguments did not match any overloaded call:

  setMinimumSize(self, int, int): argument 1 has unexpected type 'float'

  setMinimumSize(self, QSize): argument 1 has unexpected type 'float'



Re: Compatibility_Ubuntu_GnuRadio_Python

2022-07-25 Thread Marcus Müller

Hi Karlheinz,

yep, that's a bug, a student of mine hit the same :)
Volker Schroer fixed that upstream[1] and it's included in GNU Radio 3.10.2.0.

Sadly, I don't think this has trickled down into Ubunut's packaging yet.
If you feel adventurous (notice that I'm usually strongly opposing fiddling with 
system-installed data, but here, it does seem like an easy enough fix), by replacing line 
79 in

"/usr/lib/python3/dist-packages/gnuradio/qtgui/ledindicator.py",
the line becomes
self.setMinimumSize(int(maxWidth), int(maxHeight))
(make very sure not to change the indentation of the file).

Best regards,
Marcus

[1] https://github.com/gnuradio/gnuradio/pull/5541/files



smime.p7s
Description: S/MIME Cryptographic Signature


回复: [GSoC porting SIMD to gr-web] weekly update

2022-07-25 Thread 史 皓航
Hi, all!


I will post weekly this project update in this thread, following is last week:


Short version report:( unfortunaly I need to rebuild gr-web)



 Has Done: 1. using latest gr commit to build gr-web. 2. Fix commit missing 
issue.

 TODO: 1. fix the running fail issue.  2. And push the modification to 
marc’s repo.


Full version report: blog 
here

Yours,
Yao

发件人: 史 皓航
发送时间: 2022年7月18日 22:39
收件人: discuss-gnuradio@gnu.org
主题: re: [GSoC porting SIMD to gr-web] weekly update


Hey, all!


I will post weekly this project update in this thread, following is last week:


Short version report:(due to covid-19 the progress slows down a little)



 Has Done: post a  
blog
 to introduce the dev tool usage(part 1)

 TODO: post another blog and measure the different implemented volk  
performance(time cost first)


Full version report: blog 
here


Yours,

Yao.



发件人: 史 皓航 
发送时间: 2022年7月12日 0:10
收件人: discuss-gnuradio@gnu.org 
主题: [GSoC porting SIMD to gr-web] weekly update


Hey, all!



This is a weekly update email about the GSoC project.



Following is last week progress and next week plan:

Short:

*  Has Done:  building gr-web wholly and play grc.

*  Need to be Done: Intend to run a benchmark to measure different implement to 
`volk`

Full blog:

 Week2 | eat4toast.github.io



Yours,

Yao



发件人: 史 皓航
发送时间: 2022年7月5日 00:06
收件人: discuss-gnuradio@gnu.org
主题: [GSoC porting SIMD to gr-web] weekly update



Hi, everyone!

I've been accepted to work with GnuRadio for this year's Google Summer of Code.



The task I intend to implement is porting SIMD code to gr-web through wasm,

which enables gnuradio more extensible and popular through the browser.



I am really sorry, this post seems a bit late due to some unexpected problems 
with the building gr-web from the source.



Last week's blog:

 https://eat4toast.github.io/2022/07/04/week1.html



I will post a weekly update on the mailing list, well the blog will record more 
latest progress.



Yours,

Yao.