Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issue it works with gnuradio 3.7.2 but for other version 3.8.1 and ....can not compiled #26

Open
stackprogramer opened this issue May 10, 2023 · 2 comments

Comments

@stackprogramer
Copy link

when I want to compile for Gnuradio 3.8.1 I faced this error...
error: invalid operands of types ‘const char [14]’ and ‘int’ to binary ‘operator<<’
58 | GR_LOG_INFO(d_logger, "T1 samples : " << n_samples_T1);
| ~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~
| | |
| const char [14] int
/home/sp/Documents/Gen2-UHF-RFID-Reader-master/gr-rfid/lib/gate_impl.cc:59:45: error: invalid operands of types ‘const char [14]’ and ‘int’ to binary ‘operator<<’
59 | GR_LOG_INFO(d_logger, "PW samples : " << n_samples_PW);
| ~~~~~~~~~~~~~~~ ^~ ~~~~~~~~~~~~
| | |

@dd7272
Copy link

dd7272 commented Dec 21, 2023

I run into the same problem, with ubuntu20.04 uhd 3.15.0.0 and gnuradio 3.8.1. Did you find out why?

@Yulong97
Copy link

I believe the issue arises because Gnuradio version 3.8 or later is not compatible with Python 2, etc.

We suggest, you adapt a similar model in your OOT. That means your maint-3.8 branch is compatible with GNU Radio maint-3.8 and your master branch is compatible GNU Radio master. Trying to maintain a single branch that works with all future, present, and past versions of GNU Radio versions is mess and you’d have to differentiate between too many cases (API changes, XML vs YAML GRC bindings, Python 2 vs 3, QT4 vs QT5, log4cpp support or not, CPPUnit or Boost unit tests, etc.).
(https://wiki.gnuradio.org/index.php?title=GNU_Radio_3.8_OOT_Module_Porting_Guide)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants