Problems installing gr-foo and gr-ieee802-11

Hello,

I was trying to run some flow graphs from gr-ieee802-11 examples. When I
opened them at the first time , there were some missing blocks like WIFI
Phy Hier and foo_packet_pad. I got the first one fixed. For the second
one I read that we need to install gr-foo to make it work. I followed
these steps:

git clone GitHub - bastibl/gr-foo: Some GNU Radio blocks that I use.
cd gr-foo
mkdir build
cd build
cmake …
make
sudo make install
sudo ldconfig

but when I run the command make, this error pops up:

/home/comlab/pybombs/src/gr-foo/lib/wireshark_connector_impl.cc: In
member function ‘virtual int
gr::foo::wireshark_connector_impl::general_work(int, gr_vector_int&,
gr_vector_const_void_star&, gr_vector_void_star&)’:
/home/comlab/pybombs/src/gr-foo/lib/wireshark_connector_impl.cc:165:57:
error: no matching function for call to
‘gr::foo::wireshark_connector_impl::delete_head_blocking(pmt::pmt_t,
int)’
pmt::pmt_t msg(delete_head_blocking(pmt::mp(“in”), 100));
^
/home/comlab/pybombs/src/gr-foo/lib/wireshark_connector_impl.cc:165:57:
note: candidate is:
In file included from /usr/local/target/include/gnuradio/block.h:27:0,
from
/home/comlab/pybombs/src/gr-foo/include/foo/wireshark_connector.h:21,
from
/home/comlab/pybombs/src/gr-foo/lib/wireshark_connector_impl.h:20,
from
/home/comlab/pybombs/src/gr-foo/lib/wireshark_connector_impl.cc:17:
/usr/local/target/include/gnuradio/basic_block.h:259:16: note:
pmt::pmt_t gr::basic_block::delete_head_blocking(pmt::pmt_t)
pmt::pmt_t delete_head_blocking( pmt::pmt_t which_port);
^
/usr/local/target/include/gnuradio/basic_block.h:259:16: note:
candidate expects 1 argument, 2 provided
make[2]: ***
[lib/CMakeFiles/gnuradio-foo.dir/wireshark_connector_impl.cc.o] Error 1
make[1]: *** [lib/CMakeFiles/gnuradio-foo.dir/all] Error 2
make: *** [all] Error 2

Could anyone tell me why is this happening?

I faced the same problem. However, I was able to get it working by
switching to the previous revision. I recommend to start from scratch as
I had compilation errors when I changed the revision during the
compilation of the latest revision.

After cloning the repo, just enter the following command:

git reset --hard 00beec517d096e4f2f6a45250750369db90dc104

Afterwards, carry on as usual.

Cheers

Hello, thanks for your help. I tried the command but again it is not
working I guess that parameter after --hard is different for each
individual case, because this message appears now.

fatal: Could not parse object
‘00beec517d096e4f2f6a45250750369db90dc104’.

Thanks anyways for your reply.
Best regards.

I actually introduced the command you sent to me after:

cd gr-foo

and it worked. Now everything is working. Thanks so much for your help.
I should have tried more before posting.

BR

The reply from Bastian B. to correspond with him about this error
was as follow:

you need GNU Radio 3.7.6 for this. I will adapt the CMakeLists.txt file
to produce a better error message.

On 06/30/2015 03:02 PM, Alta Alta wrote:

The reply from Bastian B. to correspond with him about this error
was as follow:

you need GNU Radio 3.7.6 for this. I will adapt the CMakeLists.txt file
to produce a better error message.

I did that yesterday:

Recently, Sylvain added a timeout parameter to delete_head_blocking of
basic_block. This avoids busy-wating for new messages. One block uses
this timeout parameters. Thus, you need 3.7.6.

I guess with some cmake magic and preprocessor directives it’s possible
to compile this also with older GNU Radio versions.

Best,
Bastian