analogdevicesinc / gr-iio

IIO blocks for GNU Radio
GNU General Public License v3.0
94 stars 62 forks source link

std::mutex issue when building on ADRV9009-ZU11EG SOM #63

Closed maso27 closed 4 years ago

maso27 commented 4 years ago

When running "make" on the ADRV9009-ZU11EG device itself, on an image that was updated within the last week, the process errors at attr_updater_impl.cc.o. It says

error: 'mutex' in namespace 'std' does not name a type

I can bypass it by editing attr_updater_impl.h, removing #include <mutex> and changing std::mutex d_mtx to boost::mutex d_mtx.

After that everything builds and installs fine and I can play with the demo files.

tfcollins commented 4 years ago

What branch are you building off? There is no such block in master.

-Travis

maso27 commented 4 years ago

That explains some things. I got here from the link on page 58 of this presentation.

I'm following the examples in the grcon2019 branch, using an ADRV9009-ZU11EG.

tfcollins commented 4 years ago

O ok, yes those were never tested onboard. Only on host PC. The ARM images for the current boards are pretty ancient so mileage may vary.