JvanKatwijk / swradio-8

shortwave receiver for use with sdrplay, hackrf, dabsticks and pmsdr
GNU General Public License v2.0
76 stars 18 forks source link

Newer Appimage Release? Easier than compiling. #6

Closed andrewfer000 closed 2 years ago

andrewfer000 commented 2 years ago

I am having some problems with compiling, just like I mentioned on SDR-J-FM, this is hell to compile. It would be great if you can put out an appimage to ensure that there won't be problems on the many Linux distributions that are out there. In any case here is my error. (Ubuntu 20.04)

In file included from main.cpp:29:
radio.h:31:10: fatal error: fm-constants.h: No such file or directory
   31 | #include "fm-constants.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:2251: main.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from various/popup-keypad.cpp:26:
./radio.h:31:10: fatal error: fm-constants.h: No such file or directory
   31 | #include "fm-constants.h"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:2430: popup-keypad.o] Error 1
output/upconverter.cpp: In member function ‘void upConverter::handle(DSPCOMPLEX*, int32_t)’:
output/upconverter.cpp:65:12: warning: unused variable ‘res’ [-Wunused-variable]
   65 |        int res       = src_process (src_converter, src_data);
      |            ^~~
bandplan.cpp: In member function ‘const QString bandPlan::getFrequencyLabel(uint32_t)’:
bandplan.cpp:17:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<bandElement>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   17 |  for (int i = 0; i < labelTable. size (); i ++) {
JvanKatwijk commented 2 years ago

well, I cannot reconstruct the error that you are describing, I cannot find an include request for fm-constants.h anywhere in the sources of swradio

Op do 22 jul. 2021 om 11:15 schreef Andrew @.***>:

I am having some problems with compiling, just like I mentioned on SDR-J-FM, this is hell to compile. It would be great if you can put out an appimage to ensure that there won't be problems on the many Linux distributions that are out there. In any case here is my error. (Ubuntu 20.04)

In file included from main.cpp:29:

radio.h:31:10: fatal error: fm-constants.h: No such file or directory

31 | #include "fm-constants.h"

  |          ^~~~~~~~~~~~~~~~

compilation terminated.

make: *** [Makefile:2251: main.o] Error 1

make: *** Waiting for unfinished jobs....

In file included from various/popup-keypad.cpp:26:

./radio.h:31:10: fatal error: fm-constants.h: No such file or directory

31 | #include "fm-constants.h"

  |          ^~~~~~~~~~~~~~~~

compilation terminated.

make: *** [Makefile:2430: popup-keypad.o] Error 1

output/upconverter.cpp: In member function ‘void upConverter::handle(DSPCOMPLEX*, int32_t)’:

output/upconverter.cpp:65:12: warning: unused variable ‘res’ [-Wunused-variable]

65 | int res = src_process (src_converter, src_data);

  |            ^~~

bandplan.cpp: In member function ‘const QString bandPlan::getFrequencyLabel(uint32_t)’:

bandplan.cpp:17:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]

17 | for (int i = 0; i < labelTable. size (); i ++) {

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JvanKatwijk/swradio-8/issues/6, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCPHQCDQJSQ55TSFTHPHQTTY7ORRANCNFSM5AZTAHDA .

-- Jan van Katwijk

andrewfer000 commented 2 years ago

Inside radio.h, line 31 #include "fm-constants.h"

andrewfer000 commented 2 years ago

Okay turns out radio.h came from SDR-j-fm when I copied over my Qt files I started from scratch and now it seems to be compiling. Will come back if anything else arises.

andrewfer000 commented 2 years ago

Got it to compile, however I have a new issue.