righthalfplane / SdrGlut

SdrGlut is a simple software defined radio - using glut and glui for its interface
MIT License
86 stars 15 forks source link

Could not compile on Ubuntu 20.04 #14

Closed yeckel closed 3 years ago

yeckel commented 3 years ago

I've installed the packages from Readme and getting:

Radio/Radio.cpp: In function ‘int doWindow(double*, double*, long int, int)’:
Radio/Radio.cpp:2522:22: error: ‘liquid_hann’ was not declared in this scope
 2522 |                 w[i]=liquid_hann(i, (int)length);
      |                      ^~~~~~~~~~~
Radio/Radio.cpp:2535:22: error: ‘liquid_hamming’ was not declared in this scope; did you mean ‘liquid_gammaf’?
 2535 |                 w[i]=liquid_hamming(i, (int)length);
      |                      ^~~~~~~~~~~~~~
      |                      liquid_gammaf
Radio/Radio.cpp:2546:22: error: ‘liquid_flattop’ was not declared in this scope; did you mean ‘liquid_factor’?
 2546 |                 w[i]=liquid_flattop(i, (int)length);
      |                      ^~~~~~~~~~~~~~
      |                      liquid_factor
Radio/Radio.cpp:2558:22: error: ‘liquid_blackmanharris’ was not declared in this scope; did you mean ‘blackmanharris’?
 2558 |                 w[i]=liquid_blackmanharris(i, (int)length);
      |                      ^~~~~~~~~~~~~~~~~~~~~
      |                      blackmanharris
Radio/Radio.cpp:2569:22: error: ‘liquid_blackmanharris7’ was not declared in this scope; did you mean ‘blackmanharris7’?
 2569 |                 w[i]=liquid_blackmanharris7(i, (int)length);
      |                      ^~~~~~~~~~~~~~~~~~~~~~
      |                      blackmanharris7
make: *** [<builtin>: Radio/Radio.o] Error 1

I've deleted the #define WINDOWS_LONG_NAMES from MainSource/firstFile.h and now it compiles. Installed libliquid-dev is in version 1.3.2-2

righthalfplane commented 3 years ago

I have tried to fix that problem, but across the systems libliquid is inconsistent in its numbering of versions. That gives me a thought - I look in libliquid to see how he does it - unfortunately much of libliquid is created on the fly by macro expansion - so I may not be able to find it.

yeckel commented 3 years ago

Then maybe a hint into readme?

righthalfplane commented 3 years ago

Yes, I will have to redo the readme. libliquid has the same version number on different version.