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

Unable to build under Ubuntu 20 #57

Open
sq2jul opened this issue Nov 1, 2020 · 4 comments
Open

Unable to build under Ubuntu 20 #57

sq2jul opened this issue Nov 1, 2020 · 4 comments

Comments

@sq2jul
Copy link

sq2jul commented Nov 1, 2020

I'm trying to build ghpsdr3-alex under Ubuntu 20 and got following error:

g++ -DHAVE_CONFIG_H -I.  -g -O3 -Wall  -ffast-math -fopenmp  -march=native    -g -O2 -MT usrp_server-usrp.o -MD -MP -MF .deps/usrp_server-usrp.Tpo -c -o usrp_server-usrp.o `test -f 'usrp.c' || echo './'`usrp.c
usrp.c: In function ‘bool usrp_init(const char*, const char*)’:
usrp.c:181:40: error: ‘class uhd::device’ has no member named ‘get_max_recv_samps_per_packet’
  181 |         MAX_USRP_RX_BUFFER = usrp.dev->get_max_recv_samps_per_packet();
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
usrp.c:182:40: error: ‘class uhd::device’ has no member named ‘get_max_send_samps_per_packet’
  182 |         MAX_USRP_TX_BUFFER = usrp.dev->get_max_send_samps_per_packet();
      |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
usrp.c: In function ‘void* usrp_receiver_thread(void*)’:
usrp.c:339:41: error: ‘class uhd::device’ has no member named ‘recv’
  339 |         size_t num_rx_samps = usrp.dev->recv(
      |                                         ^~~~
usrp.c:342:58: error: ‘RECV_MODE_ONE_PACKET’ is not a member of ‘uhd::device’
  342 |                                             uhd::device::RECV_MODE_ONE_PACKET
      |                                                          ^~~~~~~~~~~~~~~~~~~~
usrp.c:333:9: warning: unused variable ‘elapsed_usec’ [-Wunused-variable]
  333 |     int elapsed_usec = 0, diff_usec = 0;
      |         ^~~~~~~~~~~~
usrp.c:333:27: warning: unused variable ‘diff_usec’ [-Wunused-variable]
  333 |     int elapsed_usec = 0, diff_usec = 0;
      |                           ^~~~~~~~~
usrp.c: In function ‘void* usrp_transmitter_thread(void*)’:
usrp.c:597:23: error: ‘class uhd::device’ has no member named ‘send’
  597 |             usrp.dev->send(&buff->front(), num_tx_samples, md,
      |                       ^~~~
usrp.c:599:30: error: ‘SEND_MODE_ONE_PACKET’ is not a member of ‘uhd::device’
  599 |                 uhd::device::SEND_MODE_ONE_PACKET
      |                              ^~~~~~~~~~~~~~~~~~~~
usrp.c: In function ‘int usrp_process_tx_modulation(float*, int)’:
usrp.c:742:25: warning: comparison of integer expressions of different signedness: ‘unsigned int’ and ‘int’ [-Wsign-compare]
  742 |             for (i=0; (i<MAX_USRP_TX_BUFFER) && (acc_tx_samples<output_frames_gen); ++i) {
      |                        ~^~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:599: usrp_server-usrp.o] Error 1
make[3]: Leaving directory '/home/sq2jul/projects/ghpsdr3-alex/trunk/src/usrp'
make[2]: *** [Makefile:364: all] Error 2
make[2]: Leaving directory '/home/sq2jul/projects/ghpsdr3-alex/trunk/src/usrp'
make[1]: *** [Makefile:432: all-recursive] Error 1
make[1]: Leaving directory '/home/sq2jul/projects/ghpsdr3-alex'
make: *** [Makefile:364: all] Error 2

I'm assuming that 'uhd' version is incompatible. Currently in my system it is libuhd3.15.0. Any ideas which version is compatible?

@frohro
Copy link
Collaborator

frohro commented Nov 1, 2020 via email

@sq2jul
Copy link
Author

sq2jul commented Nov 1, 2020

Hi Rob!

Yeah... I'm using Ubuntu 20.04 so did not encountered problems with gcc which you have described. Gcc version here is 9.3.0. The only issue I've experienced was (besides one described here ;)) this one -> #55.

I'm sad because I had hope to use ghpsdr3 under Linux with Apache Labs Anan 10 SDR, but it looks like that whether you are not a Windows user It is only expensive paper clip...

73 Juliusz SQ2JUL

@kd0oss
Copy link
Collaborator

kd0oss commented Nov 1, 2020 via email

@frohro
Copy link
Collaborator

frohro commented Nov 1, 2020 via email

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