Topics

uBITX Software error messages #ubitx-help

merle.spartan.63@...
 

I know there are a lot of other posts on this subject, but I can't seem to find what I need.  I've tried compiling the uBITX software with Arduino 1.8.5 on a raspberry pi.  I've copied the error messages below.  Any help you could give me would be very much appreciated as this is the first time I've tried to compile from source.

Thanks in advance.

Arduino: 1.8.6 Hourly Build 2018/03/02 12:19 (Linux), Board: "Arduino Nano, ATmega328P"

 

/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void setFrequency(long unsigned int)':

ubitx_20:379:56: error: 'si5351bx_setfreq' was not declared in this scope

     delay(10);

                                                        ^

ubitx_20:383:56: error: 'si5351bx_setfreq' was not declared in this scope

 

                                                        ^

/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void startTx(byte)':

ubitx_20:409:26: error: 'si5351bx_setfreq' was not declared in this scope

     else if (s > -2)

                          ^

ubitx_20:420:17: error: 'updateDisplay' was not declared in this scope

     if (prev_freq < 10000000l && frequency > 10000000l)

                 ^

/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void stopTx()':

ubitx_20:427:33: error: 'si5351bx_setfreq' was not declared in this scope

     updateDisplay();

                                 ^

ubitx_20:434:17: error: 'updateDisplay' was not declared in this scope

 void doRIT(){

                 ^

/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void ritDisable()':

ubitx_20:453:19: error: 'updateDisplay' was not declared in this scope

  * present or out of range, in this case, some intelligent defaults are copied into the

                   ^

/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void checkButton()':

ubitx_20:485:16: error: 'btnDown' was not declared in this scope

   pinMode(FBUTTON, INPUT_PULLUP);

                ^

ubitx_20:488:16: error: 'btnDown' was not declared in this scope

 //  pinMode(FBUTTON, INPUT);

                ^

ubitx_20:491:10: error: 'doMenu' was not declared in this scope

   pinMode(PTT, INPUT_PULLUP);

          ^

ubitx_20:493:17: error: 'btnDown' was not declared in this scope

 

                 ^

/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void doTuning()':

ubitx_20:510:16: error: 'enc_read' was not declared in this scope

 

                ^

ubitx_20:542:19: error: 'updateDisplay' was not declared in this scope

  

                   ^

/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void doRIT()':

ubitx_20:552:23: error: 'enc_read' was not declared in this scope

     else

                       ^

ubitx_20:562:19: error: 'updateDisplay' was not declared in this scope

/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void setup()':

ubitx_20:634:27: error: 'printLine1' was not declared in this scope

ubitx_20:637:13: error: 'initMeter' was not declared in this scope

ubitx_20:640:19: error: 'initOscillators' was not declared in this scope

ubitx_20:644:17: error: 'updateDisplay' was not declared in this scope

ubitx_20:646:15: error: 'btnDown' was not declared in this scope

ubitx_20:647:23: error: 'factory_alignment' was not declared in this scope

/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void loop()':

ubitx_20:658:11: error: 'cwKeyer' was not declared in this scope

ubitx_20:672:12: error: 'checkCAT' was not declared in this scope

/home/pi/Arduino/uBTIX_Master/ubitx_cat.ino: In function 'void processCATCommand(byte*)':

ubitx_cat:111:19: error: 'updateDisplay' was not declared in this scope

     updateDisplay();

                   ^

ubitx_cat:124:29: error: 'printLine2' was not declared in this scope

     printLine2("cat:getfreq");

                             ^

ubitx_cat:144:25: error: 'printLine2' was not declared in this scope

     printLine2("tx > rx");

                         ^

ubitx_cat:152:21: error: 'updateDisplay' was not declared in this scope

       updateDisplay();

                     ^

ubitx_cat:157:25: error: 'printLine2' was not declared in this scope

     printLine2("rx > tx");

                         ^

ubitx_cat:167:26: error: 'printLine2' was not declared in this scope

     printLine2("cat;0x10");

                          ^

ubitx_cat:178:26: error: 'printLine2' was not declared in this scope

     printLine2("cat;0x88");

                          ^

ubitx_cat:186:26: error: 'printLine2' was not declared in this scope

     printLine2("cat;0xe7");

                          ^

ubitx_cat:198:26: error: 'printLine2' was not declared in this scope

     printLine2("cat;0xf7");

                          ^

ubitx_cat:206:17: error: 'printLine2' was not declared in this scope

     printLine2(b);

                 ^

/home/pi/Arduino/uBTIX_Master/ubitx_factory_alignment.ino: In function 'void btnWaitForClick()':

ubitx_factory_alignment:7:18: error: 'btnDown' was not declared in this scope

   while(!btnDown())

                  ^

ubitx_factory_alignment:9:17: error: 'btnDown' was not declared in this scope

   while(btnDown())

                 ^

/home/pi/Arduino/uBTIX_Master/ubitx_factory_alignment.ino: In function 'void factory_alignment()':

ubitx_factory_alignment:16:23: error: 'factoryCalibration' was not declared in this scope

   factoryCalibration(1);

                       ^

ubitx_factory_alignment:19:31: error: 'printLine2' was not declared in this scope

     printLine2("Setup Aborted");

                               ^

ubitx_factory_alignment:25:17: error: 'updateDisplay' was not declared in this scope

   updateDisplay();

                 ^

ubitx_factory_alignment:26:22: error: 'printLine2' was not declared in this scope

   printLine2("#2 BFO");

                      ^

ubitx_factory_alignment:30:21: error: 'menuSetupCarrier' was not declared in this scope

   menuSetupCarrier(1);

                     ^

ubitx_factory_alignment:43:19: error: 'btnDown' was not declared in this scope

   while (!btnDown()){

                   ^

ubitx_factory_alignment:53:19: error: 'btnDown' was not declared in this scope

   while (!btnDown()){

                   ^

ubitx_factory_alignment:64:19: error: 'btnDown' was not declared in this scope

   while (!btnDown()){

                   ^

ubitx_factory_alignment:74:19: error: 'btnDown' was not declared in this scope

   while (!btnDown()){

                   ^

/home/pi/Arduino/uBTIX_Master/ubitx_keyer.ino: In function 'void cwKeyer()':

ubitx_keyer:121:21: error: 'updateDisplay' was not declared in this scope

       updateDisplay();

                     ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int menuBand(int)':

ubitx_menu:25:30: error: 'printLine2' was not declared in this scope

     printLine2("Band Select?");

                              ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino:26:5: warning: return-statement with no value, in function returning 'int' [-fpermissive]

     return;

     ^

ubitx_menu:29:32: error: 'printLine2' was not declared in this scope

   printLine2("Press to confirm");

                                ^

ubitx_menu:31:18: error: 'btnDown' was not declared in this scope

   while (btnDown())

                  ^

ubitx_menu:36:19: error: 'btnDown' was not declared in this scope

   while (!btnDown()) {

                   ^

ubitx_menu:38:21: error: 'enc_read' was not declared in this scope

     knob = enc_read();

                     ^

ubitx_menu:58:21: error: 'updateDisplay' was not declared in this scope

       updateDisplay();

                     ^

ubitx_menu:63:18: error: 'btnDown' was not declared in this scope

   while (btnDown())

                  ^

ubitx_menu:68:17: error: 'updateDisplay' was not declared in this scope

   updateDisplay();

                 ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuVfoToggle(int)':

ubitx_menu:76:36: error: 'printLine2' was not declared in this scope

       printLine2("Select VFO B?   ");

                                    ^

ubitx_menu:78:36: error: 'printLine2' was not declared in this scope

       printLine2("Select VFO A?   ");

                                    ^

ubitx_menu:85:36: error: 'printLine2' was not declared in this scope

       printLine2("Selected VFO A  ");

                                    ^

ubitx_menu:92:36: error: 'printLine2' was not declared in this scope

       printLine2("Selected VFO B  ");

                                    ^

ubitx_menu:102:19: error: 'updateDisplay' was not declared in this scope

     updateDisplay();

                   ^

ubitx_menu:103:18: error: 'printLine2' was not declared in this scope

     printLine2("");

                  ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuRitToggle(int)':

ubitx_menu:113:35: error: 'printLine2' was not declared in this scope

       printLine2("RIT:On, Off?   ");

                                   ^

ubitx_menu:115:35: error: 'printLine2' was not declared in this scope

       printLine2("RIT:Off, On?   ");

                                   ^

ubitx_menu:119:29: error: 'printLine2' was not declared in this scope

       printLine2("RIT is ON");

                             ^

ubitx_menu:124:30: error: 'printLine2' was not declared in this scope

       printLine2("RIT is OFF");

                              ^

ubitx_menu:129:18: error: 'printLine2' was not declared in this scope

     printLine2("");

                  ^

ubitx_menu:130:19: error: 'updateDisplay' was not declared in this scope

     updateDisplay();

                   ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuSidebandToggle(int)':

ubitx_menu:137:31: error: 'printLine2' was not declared in this scope

       printLine2("Select LSB?");

Multiple libraries were found for "LiquidCrystal.h"

 Used: /home/pi/Arduino/libraries/LiquidCrystal

 Not used: /opt/arduino-nightly/libraries/LiquidCrystal

                               ^

ubitx_menu:139:31: error: 'printLine2' was not declared in this scope

       printLine2("Select USB?");

                               ^

ubitx_menu:144:32: error: 'printLine2' was not declared in this scope

       printLine2("LSB Selected");

                                ^

ubitx_menu:150:32: error: 'printLine2' was not declared in this scope

       printLine2("USB Selected");

                                ^

ubitx_menu:155:19: error: 'updateDisplay' was not declared in this scope

     updateDisplay();

                   ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuSetup(int)':

ubitx_menu:167:29: error: 'printLine2' was not declared in this scope

       printLine2("Setup On?");

                             ^

ubitx_menu:169:30: error: 'printLine2' was not declared in this scope

       printLine2("Setup Off?");

                              ^

ubitx_menu:173:31: error: 'printLine2' was not declared in this scope

       printLine2("Setup:On   ");

                               ^

ubitx_menu:177:32: error: 'printLine2' was not declared in this scope

       printLine2("Setup:Off   ");

                                ^

ubitx_menu:180:18: error: 'printLine2' was not declared in this scope

     printLine2("");

                  ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuExit(int)':

ubitx_menu:188:34: error: 'printLine2' was not declared in this scope

     printLine2("Exit Menu?      ");

                                  ^

ubitx_menu:191:30: error: 'printLine2' was not declared in this scope

     printLine2("Exiting menu");

                              ^

ubitx_menu:194:19: error: 'updateDisplay' was not declared in this scope

     updateDisplay();

                   ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int menuCWSpeed(int)':

ubitx_menu:210:17: error: 'printLine2' was not declared in this scope

     printLine2(b);

                 ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino:211:5: warning: return-statement with no value, in function returning 'int' [-fpermissive]

     return;

     ^

ubitx_menu:214:32: error: 'printLine1' was not declared in this scope

   printLine1("Press PTT to set");

                                ^

ubitx_menu:218:15: error: 'printLine2' was not declared in this scope

   printLine2(b);

               ^

ubitx_menu:221:19: error: 'btnDown' was not declared in this scope

   while (!btnDown() && digitalRead(PTT) == HIGH) {

                   ^

ubitx_menu:223:21: error: 'enc_read' was not declared in this scope

     knob = enc_read();

                     ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int factoryCalibration(int)':

ubitx_menu:274:18: error: 'btnDown' was not declared in this scope

   while (btnDown())

                  ^

ubitx_menu:279:34: error: 'printLine2' was not declared in this scope

     printLine2("Set Calibration?");

                                  ^

ubitx_menu:289:37: error: 'si5351_set_calibration' was not declared in this scope

   si5351_set_calibration(calibration);

                                     ^

ubitx_menu:291:32: error: 'si5351bx_setfreq' was not declared in this scope

   si5351bx_setfreq(2, 10000000l);

                                ^

ubitx_menu:296:15: error: 'printLine2' was not declared in this scope

   printLine2(b);

               ^

ubitx_menu:298:19: error: 'btnDown' was not declared in this scope

   while (!btnDown())

                   ^

ubitx_menu:306:21: error: 'enc_read' was not declared in this scope

     knob = enc_read();

                     ^

ubitx_menu:329:19: error: 'initOscillators' was not declared in this scope

   initOscillators();

                   ^

ubitx_menu:331:17: error: 'updateDisplay' was not declared in this scope

   updateDisplay();

                 ^

ubitx_menu:333:18: error: 'btnDown' was not declared in this scope

   while (btnDown())

                  ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int menuSetupCalibration(int)':

ubitx_menu:343:34: error: 'printLine2' was not declared in this scope

     printLine2("Set Calibration?");

                                  ^

ubitx_menu:347:33: error: 'printLine1' was not declared in this scope

   printLine1("Set to Zero-beat,");

                                 ^

ubitx_menu:348:33: error: 'printLine2' was not declared in this scope

   printLine2("press PTT to save");

                                 ^

ubitx_menu:353:37: error: 'si5351_set_calibration' was not declared in this scope

   si5351_set_calibration(calibration);

                                     ^

ubitx_menu:361:47: error: 'btnDown' was not declared in this scope

   while (digitalRead(PTT) == HIGH && !btnDown())

                                               ^

ubitx_menu:363:21: error: 'enc_read' was not declared in this scope

     knob = enc_read();

                     ^

ubitx_menu:377:35: error: 'si5351bx_setfreq' was not declared in this scope

     si5351bx_setfreq(0, usbCarrier);

                                   ^

ubitx_menu:397:19: error: 'initOscillators' was not declared in this scope

   initOscillators();

                   ^

ubitx_menu:400:17: error: 'updateDisplay' was not declared in this scope

   updateDisplay();

                 ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void printCarrierFreq(long unsigned int)':

ubitx_menu:417:15: error: 'printLine2' was not declared in this scope

   printLine2(c);

               ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuSetupCarrier(int)':

ubitx_menu:425:29: error: 'printLine2' was not declared in this scope

     printLine2("Set the BFO");

                             ^

ubitx_menu:430:35: error: 'printLine1' was not declared in this scope

   printLine1("Tune to best Signal");

                                   ^

ubitx_menu:431:32: error: 'printLine2' was not declared in this scope

   printLine2("PTT to confirm. ");

                                ^

ubitx_menu:435:33: error: 'si5351bx_setfreq' was not declared in this scope

   si5351bx_setfreq(0, usbCarrier);

                                 ^

ubitx_menu:439:47: error: 'btnDown' was not declared in this scope

   while (digitalRead(PTT) == HIGH && !btnDown())

                                               ^

ubitx_menu:441:21: error: 'enc_read' was not declared in this scope

     knob = enc_read();

                     ^

ubitx_menu:467:17: error: 'updateDisplay' was not declared in this scope

   updateDisplay();

                 ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuSetupCwTone(int)':

ubitx_menu:477:32: error: 'printLine2' was not declared in this scope

     printLine2("Change CW Tone");

                                ^

ubitx_menu:482:28: error: 'printLine1' was not declared in this scope

   printLine1("Tune CW tone");

                            ^

ubitx_menu:483:32: error: 'printLine2' was not declared in this scope

   printLine2("PTT to confirm. ");

                                ^

ubitx_menu:488:46: error: 'btnDown' was not declared in this scope

   while (digitalRead(PTT) == LOW || !btnDown())

                                              ^

ubitx_menu:490:21: error: 'enc_read' was not declared in this scope

     knob = enc_read();

                     ^

ubitx_menu:516:17: error: 'updateDisplay' was not declared in this scope

   updateDisplay();

                 ^

/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void doMenu()':

ubitx_menu:524:18: error: 'btnDown' was not declared in this scope

   while (btnDown())

                  ^

ubitx_menu:531:18: error: 'enc_read' was not declared in this scope

     i = enc_read();

                  ^

ubitx_menu:532:24: error: 'btnDown' was not declared in this scope

     btnState = btnDown();

                        ^

ubitx_menu:568:18: error: 'btnDown' was not declared in this scope

   while (btnDown())

                  ^

exit status 1

'si5351bx_setfreq' was not declared in this scope

 

This report would have more information with

"Show verbose output during compilation"

option enabled in File -> Preferences.

DJ2AG
 

To work properly Arduino IDE awaits your  sketch to reside in a directory with the same name as you sketch.

So changing  directory name from uBTIX_Master to ubitx_20 like 

/home/pi/Arduino/ubitx_20/ubitx_20.ino 

should help.

Armin, DJ2AG

Jack, W8TEE
 

As I pointed out in earlier post and someone has also just pointed out, the primary INO file (i.e., the one with setup() and loop() in it)  MUST MATCH the subdirectory name that holds it. Your directory structure
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino:

is not set up correctly. You need to rename the subdirectory as follows:

/home/pi/Arduino/uBTIX_20/ubitx_20.ino:

Note now how the INO primary file name and the subdirectory name that holds it match. It won't work otherwise.

Jack, W8TEE


From: "merle.spartan.63@..." <merle.spartan.63@...>
To: BITX20@groups.io
Sent: Monday, March 12, 2018 4:30 AM
Subject: [BITX20] uBITX Software error messages #ubitx-help

I know there are a lot of other posts on this subject, but I can't seem to find what I need.  I've tried compiling the uBITX software with Arduino 1.8.5 on a raspberry pi.  I've copied the error messages below.  Any help you could give me would be very much appreciated as this is the first time I've tried to compile from source.

Thanks in advance.

Arduino: 1.8.6 Hourly Build 2018/03/02 12:19 (Linux), Board: "Arduino Nano, ATmega328P"
 
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void setFrequency(long unsigned int)':
ubitx_20:379:56: error: 'si5351bx_setfreq' was not declared in this scope
     delay(10);
                                                        ^
ubitx_20:383:56: error: 'si5351bx_setfreq' was not declared in this scope
 
                                                        ^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void startTx(byte)':
ubitx_20:409:26: error: 'si5351bx_setfreq' was not declared in this scope
     else if (s > -2)
                          ^
ubitx_20:420:17: error: 'updateDisplay' was not declared in this scope
     if (prev_freq < 10000000l && frequency > 10000000l)
                 ^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void stopTx()':
ubitx_20:427:33: error: 'si5351bx_setfreq' was not declared in this scope
     updateDisplay();
                                 ^
ubitx_20:434:17: error: 'updateDisplay' was not declared in this scope
 void doRIT(){
                 ^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void ritDisable()':
ubitx_20:453:19: error: 'updateDisplay' was not declared in this scope
  * present or out of range, in this case, some intelligent defaults are copied into the
                   ^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void checkButton()':
ubitx_20:485:16: error: 'btnDown' was not declared in this scope
   pinMode(FBUTTON, INPUT_PULLUP);
                ^
ubitx_20:488:16: error: 'btnDown' was not declared in this scope
 //  pinMode(FBUTTON, INPUT);
                ^
ubitx_20:491:10: error: 'doMenu' was not declared in this scope
   pinMode(PTT, INPUT_PULLUP);
          ^
ubitx_20:493:17: error: 'btnDown' was not declared in this scope
 
                 ^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void doTuning()':
ubitx_20:510:16: error: 'enc_read' was not declared in this scope
 
                ^
ubitx_20:542:19: error: 'updateDisplay' was not declared in this scope
  
                   ^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void doRIT()':
ubitx_20:552:23: error: 'enc_read' was not declared in this scope
     else
                       ^
ubitx_20:562:19: error: 'updateDisplay' was not declared in this scope
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void setup()':
ubitx_20:634:27: error: 'printLine1' was not declared in this scope
ubitx_20:637:13: error: 'initMeter' was not declared in this scope
ubitx_20:640:19: error: 'initOscillators' was not declared in this scope
ubitx_20:644:17: error: 'updateDisplay' was not declared in this scope
ubitx_20:646:15: error: 'btnDown' was not declared in this scope
ubitx_20:647:23: error: 'factory_alignment' was not declared in this scope
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void loop()':
ubitx_20:658:11: error: 'cwKeyer' was not declared in this scope
ubitx_20:672:12: error: 'checkCAT' was not declared in this scope
/home/pi/Arduino/uBTIX_Master/ubitx_cat.ino: In function 'void processCATCommand(byte*)':
ubitx_cat:111:19: error: 'updateDisplay' was not declared in this scope
     updateDisplay();
                   ^
ubitx_cat:124:29: error: 'printLine2' was not declared in this scope
     printLine2("cat:getfreq");
                             ^
ubitx_cat:144:25: error: 'printLine2' was not declared in this scope
     printLine2("tx > rx");
                         ^
ubitx_cat:152:21: error: 'updateDisplay' was not declared in this scope
       updateDisplay();
                     ^
ubitx_cat:157:25: error: 'printLine2' was not declared in this scope
     printLine2("rx > tx");
                         ^
ubitx_cat:167:26: error: 'printLine2' was not declared in this scope
     printLine2("cat;0x10");
                          ^
ubitx_cat:178:26: error: 'printLine2' was not declared in this scope
     printLine2("cat;0x88");
                          ^
ubitx_cat:186:26: error: 'printLine2' was not declared in this scope
     printLine2("cat;0xe7");
                          ^
ubitx_cat:198:26: error: 'printLine2' was not declared in this scope
     printLine2("cat;0xf7");
                          ^
ubitx_cat:206:17: error: 'printLine2' was not declared in this scope
     printLine2(b);
                 ^
/home/pi/Arduino/uBTIX_Master/ubitx_factory_alignment.ino: In function 'void btnWaitForClick()':
ubitx_factory_alignment:7:18: error: 'btnDown' was not declared in this scope
   while(!btnDown())
                  ^
ubitx_factory_alignment:9:17: error: 'btnDown' was not declared in this scope
   while(btnDown())
                 ^
/home/pi/Arduino/uBTIX_Master/ubitx_factory_alignment.ino: In function 'void factory_alignment()':
ubitx_factory_alignment:16:23: error: 'factoryCalibration' was not declared in this scope
   factoryCalibration(1);
                       ^
ubitx_factory_alignment:19:31: error: 'printLine2' was not declared in this scope
     printLine2("Setup Aborted");
                               ^
ubitx_factory_alignment:25:17: error: 'updateDisplay' was not declared in this scope
   updateDisplay();
                 ^
ubitx_factory_alignment:26:22: error: 'printLine2' was not declared in this scope
   printLine2("#2 BFO");
                      ^
ubitx_factory_alignment:30:21: error: 'menuSetupCarrier' was not declared in this scope
   menuSetupCarrier(1);
                     ^
ubitx_factory_alignment:43:19: error: 'btnDown' was not declared in this scope
   while (!btnDown()){
                   ^
ubitx_factory_alignment:53:19: error: 'btnDown' was not declared in this scope
   while (!btnDown()){
                   ^
ubitx_factory_alignment:64:19: error: 'btnDown' was not declared in this scope
   while (!btnDown()){
                   ^
ubitx_factory_alignment:74:19: error: 'btnDown' was not declared in this scope
   while (!btnDown()){
                   ^
/home/pi/Arduino/uBTIX_Master/ubitx_keyer.ino: In function 'void cwKeyer()':
ubitx_keyer:121:21: error: 'updateDisplay' was not declared in this scope
       updateDisplay();
                     ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int menuBand(int)':
ubitx_menu:25:30: error: 'printLine2' was not declared in this scope
     printLine2("Band Select?");
                              ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino:26:5: warning: return-statement with no value, in function returning 'int' [-fpermissive]
     return;
     ^
ubitx_menu:29:32: error: 'printLine2' was not declared in this scope
   printLine2("Press to confirm");
                                ^
ubitx_menu:31:18: error: 'btnDown' was not declared in this scope
   while (btnDown())
                  ^
ubitx_menu:36:19: error: 'btnDown' was not declared in this scope
   while (!btnDown()) {
                   ^
ubitx_menu:38:21: error: 'enc_read' was not declared in this scope
     knob = enc_read();
                     ^
ubitx_menu:58:21: error: 'updateDisplay' was not declared in this scope
       updateDisplay();
                     ^
ubitx_menu:63:18: error: 'btnDown' was not declared in this scope
   while (btnDown())
                  ^
ubitx_menu:68:17: error: 'updateDisplay' was not declared in this scope
   updateDisplay();
                 ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuVfoToggle(int)':
ubitx_menu:76:36: error: 'printLine2' was not declared in this scope
       printLine2("Select VFO B?   ");
                                    ^
ubitx_menu:78:36: error: 'printLine2' was not declared in this scope
       printLine2("Select VFO A?   ");
                                    ^
ubitx_menu:85:36: error: 'printLine2' was not declared in this scope
       printLine2("Selected VFO A  ");
                                    ^
ubitx_menu:92:36: error: 'printLine2' was not declared in this scope
       printLine2("Selected VFO B  ");
                                    ^
ubitx_menu:102:19: error: 'updateDisplay' was not declared in this scope
     updateDisplay();
                   ^
ubitx_menu:103:18: error: 'printLine2' was not declared in this scope
     printLine2("");
                  ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuRitToggle(int)':
ubitx_menu:113:35: error: 'printLine2' was not declared in this scope
       printLine2("RIT:On, Off?   ");
                                   ^
ubitx_menu:115:35: error: 'printLine2' was not declared in this scope
       printLine2("RIT:Off, On?   ");
                                   ^
ubitx_menu:119:29: error: 'printLine2' was not declared in this scope
       printLine2("RIT is ON");
                             ^
ubitx_menu:124:30: error: 'printLine2' was not declared in this scope
       printLine2("RIT is OFF");
                              ^
ubitx_menu:129:18: error: 'printLine2' was not declared in this scope
     printLine2("");
                  ^
ubitx_menu:130:19: error: 'updateDisplay' was not declared in this scope
     updateDisplay();
                   ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuSidebandToggle(int)':
ubitx_menu:137:31: error: 'printLine2' was not declared in this scope
       printLine2("Select LSB?");
Multiple libraries were found for "LiquidCrystal.h"
 Used: /home/pi/Arduino/libraries/LiquidCrystal
 Not used: /opt/arduino-nightly/libraries/LiquidCrystal
                               ^
ubitx_menu:139:31: error: 'printLine2' was not declared in this scope
       printLine2("Select USB?");
                               ^
ubitx_menu:144:32: error: 'printLine2' was not declared in this scope
       printLine2("LSB Selected");
                                ^
ubitx_menu:150:32: error: 'printLine2' was not declared in this scope
       printLine2("USB Selected");
                                ^
ubitx_menu:155:19: error: 'updateDisplay' was not declared in this scope
     updateDisplay();
                   ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuSetup(int)':
ubitx_menu:167:29: error: 'printLine2' was not declared in this scope
       printLine2("Setup On?");
                             ^
ubitx_menu:169:30: error: 'printLine2' was not declared in this scope
       printLine2("Setup Off?");
                              ^
ubitx_menu:173:31: error: 'printLine2' was not declared in this scope
       printLine2("Setup:On   ");
                               ^
ubitx_menu:177:32: error: 'printLine2' was not declared in this scope
       printLine2("Setup:Off   ");
                                ^
ubitx_menu:180:18: error: 'printLine2' was not declared in this scope
     printLine2("");
                  ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuExit(int)':
ubitx_menu:188:34: error: 'printLine2' was not declared in this scope
     printLine2("Exit Menu?      ");
                                  ^
ubitx_menu:191:30: error: 'printLine2' was not declared in this scope
     printLine2("Exiting menu");
                              ^
ubitx_menu:194:19: error: 'updateDisplay' was not declared in this scope
     updateDisplay();
                   ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int menuCWSpeed(int)':
ubitx_menu:210:17: error: 'printLine2' was not declared in this scope
     printLine2(b);
                 ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino:211:5: warning: return-statement with no value, in function returning 'int' [-fpermissive]
     return;
     ^
ubitx_menu:214:32: error: 'printLine1' was not declared in this scope
   printLine1("Press PTT to set");
                                ^
ubitx_menu:218:15: error: 'printLine2' was not declared in this scope
   printLine2(b);
               ^
ubitx_menu:221:19: error: 'btnDown' was not declared in this scope
   while (!btnDown() && digitalRead(PTT) == HIGH) {
                   ^
ubitx_menu:223:21: error: 'enc_read' was not declared in this scope
     knob = enc_read();
                     ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int factoryCalibration(int)':
ubitx_menu:274:18: error: 'btnDown' was not declared in this scope
   while (btnDown())
                  ^
ubitx_menu:279:34: error: 'printLine2' was not declared in this scope
     printLine2("Set Calibration?");
                                  ^
ubitx_menu:289:37: error: 'si5351_set_calibration' was not declared in this scope
   si5351_set_calibration(calibration);
                                     ^
ubitx_menu:291:32: error: 'si5351bx_setfreq' was not declared in this scope
   si5351bx_setfreq(2, 10000000l);
                                ^
ubitx_menu:296:15: error: 'printLine2' was not declared in this scope
   printLine2(b);
               ^
ubitx_menu:298:19: error: 'btnDown' was not declared in this scope
   while (!btnDown())
                   ^
ubitx_menu:306:21: error: 'enc_read' was not declared in this scope
     knob = enc_read();
                     ^
ubitx_menu:329:19: error: 'initOscillators' was not declared in this scope
   initOscillators();
                   ^
ubitx_menu:331:17: error: 'updateDisplay' was not declared in this scope
   updateDisplay();
                 ^
ubitx_menu:333:18: error: 'btnDown' was not declared in this scope
   while (btnDown())
                  ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int menuSetupCalibration(int)':
ubitx_menu:343:34: error: 'printLine2' was not declared in this scope
     printLine2("Set Calibration?");
                                  ^
ubitx_menu:347:33: error: 'printLine1' was not declared in this scope
   printLine1("Set to Zero-beat,");
                                 ^
ubitx_menu:348:33: error: 'printLine2' was not declared in this scope
   printLine2("press PTT to save");
                                 ^
ubitx_menu:353:37: error: 'si5351_set_calibration' was not declared in this scope
   si5351_set_calibration(calibration);
                                     ^
ubitx_menu:361:47: error: 'btnDown' was not declared in this scope
   while (digitalRead(PTT) == HIGH && !btnDown())
                                               ^
ubitx_menu:363:21: error: 'enc_read' was not declared in this scope
     knob = enc_read();
                     ^
ubitx_menu:377:35: error: 'si5351bx_setfreq' was not declared in this scope
     si5351bx_setfreq(0, usbCarrier);
                                   ^
ubitx_menu:397:19: error: 'initOscillators' was not declared in this scope
   initOscillators();
                   ^
ubitx_menu:400:17: error: 'updateDisplay' was not declared in this scope
   updateDisplay();
                 ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void printCarrierFreq(long unsigned int)':
ubitx_menu:417:15: error: 'printLine2' was not declared in this scope
   printLine2(c);
               ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuSetupCarrier(int)':
ubitx_menu:425:29: error: 'printLine2' was not declared in this scope
     printLine2("Set the BFO");
                             ^
ubitx_menu:430:35: error: 'printLine1' was not declared in this scope
   printLine1("Tune to best Signal");
                                   ^
ubitx_menu:431:32: error: 'printLine2' was not declared in this scope
   printLine2("PTT to confirm. ");
                                ^
ubitx_menu:435:33: error: 'si5351bx_setfreq' was not declared in this scope
   si5351bx_setfreq(0, usbCarrier);
                                 ^
ubitx_menu:439:47: error: 'btnDown' was not declared in this scope
   while (digitalRead(PTT) == HIGH && !btnDown())
                                               ^
ubitx_menu:441:21: error: 'enc_read' was not declared in this scope
     knob = enc_read();
                     ^
ubitx_menu:467:17: error: 'updateDisplay' was not declared in this scope
   updateDisplay();
                 ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void menuSetupCwTone(int)':
ubitx_menu:477:32: error: 'printLine2' was not declared in this scope
     printLine2("Change CW Tone");
                                ^
ubitx_menu:482:28: error: 'printLine1' was not declared in this scope
   printLine1("Tune CW tone");
                            ^
ubitx_menu:483:32: error: 'printLine2' was not declared in this scope
   printLine2("PTT to confirm. ");
                                ^
ubitx_menu:488:46: error: 'btnDown' was not declared in this scope
   while (digitalRead(PTT) == LOW || !btnDown())
                                              ^
ubitx_menu:490:21: error: 'enc_read' was not declared in this scope
     knob = enc_read();
                     ^
ubitx_menu:516:17: error: 'updateDisplay' was not declared in this scope
   updateDisplay();
                 ^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void doMenu()':
ubitx_menu:524:18: error: 'btnDown' was not declared in this scope
   while (btnDown())
                  ^
ubitx_menu:531:18: error: 'enc_read' was not declared in this scope
     i = enc_read();
                  ^
ubitx_menu:532:24: error: 'btnDown' was not declared in this scope
     btnState = btnDown();
                        ^
ubitx_menu:568:18: error: 'btnDown' was not declared in this scope
   while (btnDown())
                  ^
exit status 1
'si5351bx_setfreq' was not declared in this scope
 
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.



Virus-free. www.avast.com

Vince Vielhaber
 

Jack, you misspelled UBITX in the directory name. It should be:

/home/pi/Arduino/uBITX_20/ubitx_20.ino

Vince.

On 03/12/2018 09:54 AM, Jack Purdum via Groups.Io wrote:
As I pointed out in earlier post and someone has also just pointed out,
the primary INO file (i.e., the one with /setup()/ and /loop()/ in it)
*/MUST MATCH/* the subdirectory name that holds it. Your directory structure
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino:

is not set up correctly. You need to rename the subdirectory as follows:

/home/pi/Arduino/uBTIX_20/ubitx_20.ino:

Note now how the INO primary file name and the subdirectory name that
holds it match. It won't work otherwise.

Jack, W8TEE
------------------------------------------------------------------------
*From:* "merle.spartan.63@..." <merle.spartan.63@...>
*To:* BITX20@groups.io
*Sent:* Monday, March 12, 2018 4:30 AM
*Subject:* [BITX20] uBITX Software error messages #ubitx-help

I know there are a lot of other posts on this subject, but I can't seem
to find what I need. I've tried compiling the uBITX software with
Arduino 1.8.5 on a raspberry pi. I've copied the error messages below.
Any help you could give me would be very much appreciated as this is the
first time I've tried to compile from source.

Thanks in advance.

Arduino: 1.8.6 Hourly Build 2018/03/02 12:19 (Linux), Board: "Arduino
Nano, ATmega328P"

/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void
setFrequency(long unsigned int)':
ubitx_20:379:56: error: 'si5351bx_setfreq' was not declared in this scope
delay(10);
^
ubitx_20:383:56: error: 'si5351bx_setfreq' was not declared in this scope

^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void
startTx(byte)':
ubitx_20:409:26: error: 'si5351bx_setfreq' was not declared in this scope
else if (s > -2)
^
ubitx_20:420:17: error: 'updateDisplay' was not declared in this scope
if (prev_freq < 10000000l && frequency > 10000000l)
^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void stopTx()':
ubitx_20:427:33: error: 'si5351bx_setfreq' was not declared in this scope
updateDisplay();
^
ubitx_20:434:17: error: 'updateDisplay' was not declared in this scope
void doRIT(){
^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void ritDisable()':
ubitx_20:453:19: error: 'updateDisplay' was not declared in this scope
* present or out of range, in this case, some intelligent defaults are
copied into the
^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void
checkButton()':
ubitx_20:485:16: error: 'btnDown' was not declared in this scope
pinMode(FBUTTON, INPUT_PULLUP);
^
ubitx_20:488:16: error: 'btnDown' was not declared in this scope
// pinMode(FBUTTON, INPUT);
^
ubitx_20:491:10: error: 'doMenu' was not declared in this scope
pinMode(PTT, INPUT_PULLUP);
^
ubitx_20:493:17: error: 'btnDown' was not declared in this scope

^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void doTuning()':
ubitx_20:510:16: error: 'enc_read' was not declared in this scope

^
ubitx_20:542:19: error: 'updateDisplay' was not declared in this scope

^
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void doRIT()':
ubitx_20:552:23: error: 'enc_read' was not declared in this scope
else
^
ubitx_20:562:19: error: 'updateDisplay' was not declared in this scope
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void setup()':
ubitx_20:634:27: error: 'printLine1' was not declared in this scope
ubitx_20:637:13: error: 'initMeter' was not declared in this scope
ubitx_20:640:19: error: 'initOscillators' was not declared in this scope
ubitx_20:644:17: error: 'updateDisplay' was not declared in this scope
ubitx_20:646:15: error: 'btnDown' was not declared in this scope
ubitx_20:647:23: error: 'factory_alignment' was not declared in this scope
/home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void loop()':
ubitx_20:658:11: error: 'cwKeyer' was not declared in this scope
ubitx_20:672:12: error: 'checkCAT' was not declared in this scope
/home/pi/Arduino/uBTIX_Master/ubitx_cat.ino: In function 'void
processCATCommand(byte*)':
ubitx_cat:111:19: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
ubitx_cat:124:29: error: 'printLine2' was not declared in this scope
printLine2("cat:getfreq");
^
ubitx_cat:144:25: error: 'printLine2' was not declared in this scope
printLine2("tx > rx");
^
ubitx_cat:152:21: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
ubitx_cat:157:25: error: 'printLine2' was not declared in this scope
printLine2("rx > tx");
^
ubitx_cat:167:26: error: 'printLine2' was not declared in this scope
printLine2("cat;0x10");
^
ubitx_cat:178:26: error: 'printLine2' was not declared in this scope
printLine2("cat;0x88");
^
ubitx_cat:186:26: error: 'printLine2' was not declared in this scope
printLine2("cat;0xe7");
^
ubitx_cat:198:26: error: 'printLine2' was not declared in this scope
printLine2("cat;0xf7");
^
ubitx_cat:206:17: error: 'printLine2' was not declared in this scope
printLine2(b);
^
/home/pi/Arduino/uBTIX_Master/ubitx_factory_alignment.ino: In function
'void btnWaitForClick()':
ubitx_factory_alignment:7:18: error: 'btnDown' was not declared in this
scope
while(!btnDown())
^
ubitx_factory_alignment:9:17: error: 'btnDown' was not declared in this
scope
while(btnDown())
^
/home/pi/Arduino/uBTIX_Master/ubitx_factory_alignment.ino: In function
'void factory_alignment()':
ubitx_factory_alignment:16:23: error: 'factoryCalibration' was not
declared in this scope
factoryCalibration(1);
^
ubitx_factory_alignment:19:31: error: 'printLine2' was not declared in
this scope
printLine2("Setup Aborted");
^
ubitx_factory_alignment:25:17: error: 'updateDisplay' was not declared
in this scope
updateDisplay();
^
ubitx_factory_alignment:26:22: error: 'printLine2' was not declared in
this scope
printLine2("#2 BFO");
^
ubitx_factory_alignment:30:21: error: 'menuSetupCarrier' was not
declared in this scope
menuSetupCarrier(1);
^
ubitx_factory_alignment:43:19: error: 'btnDown' was not declared in this
scope
while (!btnDown()){
^
ubitx_factory_alignment:53:19: error: 'btnDown' was not declared in this
scope
while (!btnDown()){
^
ubitx_factory_alignment:64:19: error: 'btnDown' was not declared in this
scope
while (!btnDown()){
^
ubitx_factory_alignment:74:19: error: 'btnDown' was not declared in this
scope
while (!btnDown()){
^
/home/pi/Arduino/uBTIX_Master/ubitx_keyer.ino: In function 'void cwKeyer()':
ubitx_keyer:121:21: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int
menuBand(int)':
ubitx_menu:25:30: error: 'printLine2' was not declared in this scope
printLine2("Band Select?");
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino:26:5: warning:
return-statement with no value, in function returning 'int' [-fpermissive]
return;
^
ubitx_menu:29:32: error: 'printLine2' was not declared in this scope
printLine2("Press to confirm");
^
ubitx_menu:31:18: error: 'btnDown' was not declared in this scope
while (btnDown())
^
ubitx_menu:36:19: error: 'btnDown' was not declared in this scope
while (!btnDown()) {
^
ubitx_menu:38:21: error: 'enc_read' was not declared in this scope
knob = enc_read();
^
ubitx_menu:58:21: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
ubitx_menu:63:18: error: 'btnDown' was not declared in this scope
while (btnDown())
^
ubitx_menu:68:17: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
menuVfoToggle(int)':
ubitx_menu:76:36: error: 'printLine2' was not declared in this scope
printLine2("Select VFO B? ");
^
ubitx_menu:78:36: error: 'printLine2' was not declared in this scope
printLine2("Select VFO A? ");
^
ubitx_menu:85:36: error: 'printLine2' was not declared in this scope
printLine2("Selected VFO A ");
^
ubitx_menu:92:36: error: 'printLine2' was not declared in this scope
printLine2("Selected VFO B ");
^
ubitx_menu:102:19: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
ubitx_menu:103:18: error: 'printLine2' was not declared in this scope
printLine2("");
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
menuRitToggle(int)':
ubitx_menu:113:35: error: 'printLine2' was not declared in this scope
printLine2("RIT:On, Off? ");
^
ubitx_menu:115:35: error: 'printLine2' was not declared in this scope
printLine2("RIT:Off, On? ");
^
ubitx_menu:119:29: error: 'printLine2' was not declared in this scope
printLine2("RIT is ON");
^
ubitx_menu:124:30: error: 'printLine2' was not declared in this scope
printLine2("RIT is OFF");
^
ubitx_menu:129:18: error: 'printLine2' was not declared in this scope
printLine2("");
^
ubitx_menu:130:19: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
menuSidebandToggle(int)':
ubitx_menu:137:31: error: 'printLine2' was not declared in this scope
printLine2("Select LSB?");
Multiple libraries were found for "LiquidCrystal.h"
Used: /home/pi/Arduino/libraries/LiquidCrystal
Not used: /opt/arduino-nightly/libraries/LiquidCrystal
^
ubitx_menu:139:31: error: 'printLine2' was not declared in this scope
printLine2("Select USB?");
^
ubitx_menu:144:32: error: 'printLine2' was not declared in this scope
printLine2("LSB Selected");
^
ubitx_menu:150:32: error: 'printLine2' was not declared in this scope
printLine2("USB Selected");
^
ubitx_menu:155:19: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
menuSetup(int)':
ubitx_menu:167:29: error: 'printLine2' was not declared in this scope
printLine2("Setup On?");
^
ubitx_menu:169:30: error: 'printLine2' was not declared in this scope
printLine2("Setup Off?");
^
ubitx_menu:173:31: error: 'printLine2' was not declared in this scope
printLine2("Setup:On ");
^
ubitx_menu:177:32: error: 'printLine2' was not declared in this scope
printLine2("Setup:Off ");
^
ubitx_menu:180:18: error: 'printLine2' was not declared in this scope
printLine2("");
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
menuExit(int)':
ubitx_menu:188:34: error: 'printLine2' was not declared in this scope
printLine2("Exit Menu? ");
^
ubitx_menu:191:30: error: 'printLine2' was not declared in this scope
printLine2("Exiting menu");
^
ubitx_menu:194:19: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int
menuCWSpeed(int)':
ubitx_menu:210:17: error: 'printLine2' was not declared in this scope
printLine2(b);
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino:211:5: warning:
return-statement with no value, in function returning 'int' [-fpermissive]
return;
^
ubitx_menu:214:32: error: 'printLine1' was not declared in this scope
printLine1("Press PTT to set");
^
ubitx_menu:218:15: error: 'printLine2' was not declared in this scope
printLine2(b);
^
ubitx_menu:221:19: error: 'btnDown' was not declared in this scope
while (!btnDown() && digitalRead(PTT) == HIGH) {
^
ubitx_menu:223:21: error: 'enc_read' was not declared in this scope
knob = enc_read();
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int
factoryCalibration(int)':
ubitx_menu:274:18: error: 'btnDown' was not declared in this scope
while (btnDown())
^
ubitx_menu:279:34: error: 'printLine2' was not declared in this scope
printLine2("Set Calibration?");
^
ubitx_menu:289:37: error: 'si5351_set_calibration' was not declared in
this scope
si5351_set_calibration(calibration);
^
ubitx_menu:291:32: error: 'si5351bx_setfreq' was not declared in this scope
si5351bx_setfreq(2, 10000000l);
^
ubitx_menu:296:15: error: 'printLine2' was not declared in this scope
printLine2(b);
^
ubitx_menu:298:19: error: 'btnDown' was not declared in this scope
while (!btnDown())
^
ubitx_menu:306:21: error: 'enc_read' was not declared in this scope
knob = enc_read();
^
ubitx_menu:329:19: error: 'initOscillators' was not declared in this scope
initOscillators();
^
ubitx_menu:331:17: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
ubitx_menu:333:18: error: 'btnDown' was not declared in this scope
while (btnDown())
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int
menuSetupCalibration(int)':
ubitx_menu:343:34: error: 'printLine2' was not declared in this scope
printLine2("Set Calibration?");
^
ubitx_menu:347:33: error: 'printLine1' was not declared in this scope
printLine1("Set to Zero-beat,");
^
ubitx_menu:348:33: error: 'printLine2' was not declared in this scope
printLine2("press PTT to save");
^
ubitx_menu:353:37: error: 'si5351_set_calibration' was not declared in
this scope
si5351_set_calibration(calibration);
^
ubitx_menu:361:47: error: 'btnDown' was not declared in this scope
while (digitalRead(PTT) == HIGH && !btnDown())
^
ubitx_menu:363:21: error: 'enc_read' was not declared in this scope
knob = enc_read();
^
ubitx_menu:377:35: error: 'si5351bx_setfreq' was not declared in this scope
si5351bx_setfreq(0, usbCarrier);
^
ubitx_menu:397:19: error: 'initOscillators' was not declared in this scope
initOscillators();
^
ubitx_menu:400:17: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
printCarrierFreq(long unsigned int)':
ubitx_menu:417:15: error: 'printLine2' was not declared in this scope
printLine2(c);
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
menuSetupCarrier(int)':
ubitx_menu:425:29: error: 'printLine2' was not declared in this scope
printLine2("Set the BFO");
^
ubitx_menu:430:35: error: 'printLine1' was not declared in this scope
printLine1("Tune to best Signal");
^
ubitx_menu:431:32: error: 'printLine2' was not declared in this scope
printLine2("PTT to confirm. ");
^
ubitx_menu:435:33: error: 'si5351bx_setfreq' was not declared in this scope
si5351bx_setfreq(0, usbCarrier);
^
ubitx_menu:439:47: error: 'btnDown' was not declared in this scope
while (digitalRead(PTT) == HIGH && !btnDown())
^
ubitx_menu:441:21: error: 'enc_read' was not declared in this scope
knob = enc_read();
^
ubitx_menu:467:17: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
menuSetupCwTone(int)':
ubitx_menu:477:32: error: 'printLine2' was not declared in this scope
printLine2("Change CW Tone");
^
ubitx_menu:482:28: error: 'printLine1' was not declared in this scope
printLine1("Tune CW tone");
^
ubitx_menu:483:32: error: 'printLine2' was not declared in this scope
printLine2("PTT to confirm. ");
^
ubitx_menu:488:46: error: 'btnDown' was not declared in this scope
while (digitalRead(PTT) == LOW || !btnDown())
^
ubitx_menu:490:21: error: 'enc_read' was not declared in this scope
knob = enc_read();
^
ubitx_menu:516:17: error: 'updateDisplay' was not declared in this scope
updateDisplay();
^
/home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void doMenu()':
ubitx_menu:524:18: error: 'btnDown' was not declared in this scope
while (btnDown())
^
ubitx_menu:531:18: error: 'enc_read' was not declared in this scope
i = enc_read();
^
ubitx_menu:532:24: error: 'btnDown' was not declared in this scope
btnState = btnDown();
^
ubitx_menu:568:18: error: 'btnDown' was not declared in this scope
while (btnDown())
^
exit status 1
'si5351bx_setfreq' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.



<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>


<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Jack, W8TEE
 

Not really...I copied it from his error messages. I just didn't notice the misspelling.

Jack, W8TEE



From: Vince Vielhaber <vev@...>
To: BITX20@groups.io
Sent: Monday, March 12, 2018 10:04 AM
Subject: Re: [BITX20] uBITX Software error messages #ubitx-help

Jack, you misspelled UBITX in the directory name.  It should be:

/home/pi/Arduino/uBITX_20/ubitx_20.ino

Vince.



On 03/12/2018 09:54 AM, Jack Purdum via Groups.Io wrote:
> As I pointed out in earlier post and someone has also just pointed out,
> the primary INO file (i.e., the one with /setup()/ and /loop()/ in it)
> */MUST MATCH/* the subdirectory name that holds it. Your directory structure
> /home/pi/Arduino/uBTIX_Master/ubitx_20.ino:
>
> is not set up correctly. You need to rename the subdirectory as follows:
>
> /home/pi/Arduino/uBTIX_20/ubitx_20.ino:
>
> Note now how the INO primary file name and the subdirectory name that
> holds it match. It won't work otherwise.
>
> Jack, W8TEE
> ------------------------------------------------------------------------
> *Sent:* Monday, March 12, 2018 4:30 AM
> *Subject:* [BITX20] uBITX Software error messages #ubitx-help
>
> I know there are a lot of other posts on this subject, but I can't seem
> to find what I need.  I've tried compiling the uBITX software with
> Arduino 1.8.5 on a raspberry pi.  I've copied the error messages below.
> Any help you could give me would be very much appreciated as this is the
> first time I've tried to compile from source.
>
> Thanks in advance.
>
> Arduino: 1.8.6 Hourly Build 2018/03/02 12:19 (Linux), Board: "Arduino
> Nano, ATmega328P"
>
> /home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void
> setFrequency(long unsigned int)':
> ubitx_20:379:56: error: 'si5351bx_setfreq' was not declared in this scope
>      delay(10);
>                                                        ^
> ubitx_20:383:56: error: 'si5351bx_setfreq' was not declared in this scope
>
>                                                        ^
> /home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void
> startTx(byte)':
> ubitx_20:409:26: error: 'si5351bx_setfreq' was not declared in this scope
>      else if (s > -2)
>                          ^
> ubitx_20:420:17: error: 'updateDisplay' was not declared in this scope
>      if (prev_freq < 10000000l && frequency > 10000000l)
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void stopTx()':
> ubitx_20:427:33: error: 'si5351bx_setfreq' was not declared in this scope
>      updateDisplay();
>                                  ^
> ubitx_20:434:17: error: 'updateDisplay' was not declared in this scope
>  void doRIT(){
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void ritDisable()':
> ubitx_20:453:19: error: 'updateDisplay' was not declared in this scope
>  * present or out of range, in this case, some intelligent defaults are
> copied into the
>                    ^
> /home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void
> checkButton()':
> ubitx_20:485:16: error: 'btnDown' was not declared in this scope
>    pinMode(FBUTTON, INPUT_PULLUP);
>                ^
> ubitx_20:488:16: error: 'btnDown' was not declared in this scope
>  //  pinMode(FBUTTON, INPUT);
>                ^
> ubitx_20:491:10: error: 'doMenu' was not declared in this scope
>    pinMode(PTT, INPUT_PULLUP);
>          ^
> ubitx_20:493:17: error: 'btnDown' was not declared in this scope
>
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void doTuning()':
> ubitx_20:510:16: error: 'enc_read' was not declared in this scope
>
>                ^
> ubitx_20:542:19: error: 'updateDisplay' was not declared in this scope
>
>                    ^
> /home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void doRIT()':
> ubitx_20:552:23: error: 'enc_read' was not declared in this scope
>      else
>                        ^
> ubitx_20:562:19: error: 'updateDisplay' was not declared in this scope
> /home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void setup()':
> ubitx_20:634:27: error: 'printLine1' was not declared in this scope
> ubitx_20:637:13: error: 'initMeter' was not declared in this scope
> ubitx_20:640:19: error: 'initOscillators' was not declared in this scope
> ubitx_20:644:17: error: 'updateDisplay' was not declared in this scope
> ubitx_20:646:15: error: 'btnDown' was not declared in this scope
> ubitx_20:647:23: error: 'factory_alignment' was not declared in this scope
> /home/pi/Arduino/uBTIX_Master/ubitx_20.ino: In function 'void loop()':
> ubitx_20:658:11: error: 'cwKeyer' was not declared in this scope
> ubitx_20:672:12: error: 'checkCAT' was not declared in this scope
> /home/pi/Arduino/uBTIX_Master/ubitx_cat.ino: In function 'void
> processCATCommand(byte*)':
> ubitx_cat:111:19: error: 'updateDisplay' was not declared in this scope
>      updateDisplay();
>                    ^
> ubitx_cat:124:29: error: 'printLine2' was not declared in this scope
>      printLine2("cat:getfreq");
>                              ^
> ubitx_cat:144:25: error: 'printLine2' was not declared in this scope
>      printLine2("tx > rx");
>                          ^
> ubitx_cat:152:21: error: 'updateDisplay' was not declared in this scope
>        updateDisplay();
>                      ^
> ubitx_cat:157:25: error: 'printLine2' was not declared in this scope
>      printLine2("rx > tx");
>                          ^
> ubitx_cat:167:26: error: 'printLine2' was not declared in this scope
>      printLine2("cat;0x10");
>                          ^
> ubitx_cat:178:26: error: 'printLine2' was not declared in this scope
>      printLine2("cat;0x88");
>                          ^
> ubitx_cat:186:26: error: 'printLine2' was not declared in this scope
>      printLine2("cat;0xe7");
>                          ^
> ubitx_cat:198:26: error: 'printLine2' was not declared in this scope
>      printLine2("cat;0xf7");
>                          ^
> ubitx_cat:206:17: error: 'printLine2' was not declared in this scope
>      printLine2(b);
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_factory_alignment.ino: In function
> 'void btnWaitForClick()':
> ubitx_factory_alignment:7:18: error: 'btnDown' was not declared in this
> scope
>    while(!btnDown())
>                  ^
> ubitx_factory_alignment:9:17: error: 'btnDown' was not declared in this
> scope
>    while(btnDown())
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_factory_alignment.ino: In function
> 'void factory_alignment()':
> ubitx_factory_alignment:16:23: error: 'factoryCalibration' was not
> declared in this scope
>    factoryCalibration(1);
>                        ^
> ubitx_factory_alignment:19:31: error: 'printLine2' was not declared in
> this scope
>      printLine2("Setup Aborted");
>                                ^
> ubitx_factory_alignment:25:17: error: 'updateDisplay' was not declared
> in this scope
>    updateDisplay();
>                  ^
> ubitx_factory_alignment:26:22: error: 'printLine2' was not declared in
> this scope
>    printLine2("#2 BFO");
>                      ^
> ubitx_factory_alignment:30:21: error: 'menuSetupCarrier' was not
> declared in this scope
>    menuSetupCarrier(1);
>                      ^
> ubitx_factory_alignment:43:19: error: 'btnDown' was not declared in this
> scope
>    while (!btnDown()){
>                    ^
> ubitx_factory_alignment:53:19: error: 'btnDown' was not declared in this
> scope
>    while (!btnDown()){
>                    ^
> ubitx_factory_alignment:64:19: error: 'btnDown' was not declared in this
> scope
>    while (!btnDown()){
>                    ^
> ubitx_factory_alignment:74:19: error: 'btnDown' was not declared in this
> scope
>    while (!btnDown()){
>                    ^
> /home/pi/Arduino/uBTIX_Master/ubitx_keyer.ino: In function 'void cwKeyer()':
> ubitx_keyer:121:21: error: 'updateDisplay' was not declared in this scope
>        updateDisplay();
>                      ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int
> menuBand(int)':
> ubitx_menu:25:30: error: 'printLine2' was not declared in this scope
>      printLine2("Band Select?");
>                              ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino:26:5: warning:
> return-statement with no value, in function returning 'int' [-fpermissive]
>      return;
>      ^
> ubitx_menu:29:32: error: 'printLine2' was not declared in this scope
>    printLine2("Press to confirm");
>                                ^
> ubitx_menu:31:18: error: 'btnDown' was not declared in this scope
>    while (btnDown())
>                  ^
> ubitx_menu:36:19: error: 'btnDown' was not declared in this scope
>    while (!btnDown()) {
>                    ^
> ubitx_menu:38:21: error: 'enc_read' was not declared in this scope
>      knob = enc_read();
>                      ^
> ubitx_menu:58:21: error: 'updateDisplay' was not declared in this scope
>        updateDisplay();
>                      ^
> ubitx_menu:63:18: error: 'btnDown' was not declared in this scope
>    while (btnDown())
>                  ^
> ubitx_menu:68:17: error: 'updateDisplay' was not declared in this scope
>    updateDisplay();
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
> menuVfoToggle(int)':
> ubitx_menu:76:36: error: 'printLine2' was not declared in this scope
>        printLine2("Select VFO B?  ");
>                                    ^
> ubitx_menu:78:36: error: 'printLine2' was not declared in this scope
>        printLine2("Select VFO A?  ");
>                                    ^
> ubitx_menu:85:36: error: 'printLine2' was not declared in this scope
>        printLine2("Selected VFO A  ");
>                                    ^
> ubitx_menu:92:36: error: 'printLine2' was not declared in this scope
>        printLine2("Selected VFO B  ");
>                                    ^
> ubitx_menu:102:19: error: 'updateDisplay' was not declared in this scope
>      updateDisplay();
>                    ^
> ubitx_menu:103:18: error: 'printLine2' was not declared in this scope
>      printLine2("");
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
> menuRitToggle(int)':
> ubitx_menu:113:35: error: 'printLine2' was not declared in this scope
>        printLine2("RIT:On, Off?  ");
>                                    ^
> ubitx_menu:115:35: error: 'printLine2' was not declared in this scope
>        printLine2("RIT:Off, On?  ");
>                                    ^
> ubitx_menu:119:29: error: 'printLine2' was not declared in this scope
>        printLine2("RIT is ON");
>                              ^
> ubitx_menu:124:30: error: 'printLine2' was not declared in this scope
>        printLine2("RIT is OFF");
>                              ^
> ubitx_menu:129:18: error: 'printLine2' was not declared in this scope
>      printLine2("");
>                  ^
> ubitx_menu:130:19: error: 'updateDisplay' was not declared in this scope
>      updateDisplay();
>                    ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
> menuSidebandToggle(int)':
> ubitx_menu:137:31: error: 'printLine2' was not declared in this scope
>        printLine2("Select LSB?");
> Multiple libraries were found for "LiquidCrystal.h"
>  Used: /home/pi/Arduino/libraries/LiquidCrystal
>  Not used: /opt/arduino-nightly/libraries/LiquidCrystal
>                                ^
> ubitx_menu:139:31: error: 'printLine2' was not declared in this scope
>        printLine2("Select USB?");
>                                ^
> ubitx_menu:144:32: error: 'printLine2' was not declared in this scope
>        printLine2("LSB Selected");
>                                ^
> ubitx_menu:150:32: error: 'printLine2' was not declared in this scope
>        printLine2("USB Selected");
>                                ^
> ubitx_menu:155:19: error: 'updateDisplay' was not declared in this scope
>      updateDisplay();
>                    ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
> menuSetup(int)':
> ubitx_menu:167:29: error: 'printLine2' was not declared in this scope
>        printLine2("Setup On?");
>                              ^
> ubitx_menu:169:30: error: 'printLine2' was not declared in this scope
>        printLine2("Setup Off?");
>                              ^
> ubitx_menu:173:31: error: 'printLine2' was not declared in this scope
>        printLine2("Setup:On  ");
>                                ^
> ubitx_menu:177:32: error: 'printLine2' was not declared in this scope
>        printLine2("Setup:Off  ");
>                                ^
> ubitx_menu:180:18: error: 'printLine2' was not declared in this scope
>      printLine2("");
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
> menuExit(int)':
> ubitx_menu:188:34: error: 'printLine2' was not declared in this scope
>      printLine2("Exit Menu?      ");
>                                  ^
> ubitx_menu:191:30: error: 'printLine2' was not declared in this scope
>      printLine2("Exiting menu");
>                              ^
> ubitx_menu:194:19: error: 'updateDisplay' was not declared in this scope
>      updateDisplay();
>                    ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int
> menuCWSpeed(int)':
> ubitx_menu:210:17: error: 'printLine2' was not declared in this scope
>      printLine2(b);
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino:211:5: warning:
> return-statement with no value, in function returning 'int' [-fpermissive]
>      return;
>      ^
> ubitx_menu:214:32: error: 'printLine1' was not declared in this scope
>    printLine1("Press PTT to set");
>                                ^
> ubitx_menu:218:15: error: 'printLine2' was not declared in this scope
>    printLine2(b);
>                ^
> ubitx_menu:221:19: error: 'btnDown' was not declared in this scope
>    while (!btnDown() && digitalRead(PTT) == HIGH) {
>                    ^
> ubitx_menu:223:21: error: 'enc_read' was not declared in this scope
>      knob = enc_read();
>                      ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int
> factoryCalibration(int)':
> ubitx_menu:274:18: error: 'btnDown' was not declared in this scope
>    while (btnDown())
>                  ^
> ubitx_menu:279:34: error: 'printLine2' was not declared in this scope
>      printLine2("Set Calibration?");
>                                  ^
> ubitx_menu:289:37: error: 'si5351_set_calibration' was not declared in
> this scope
>    si5351_set_calibration(calibration);
>                                      ^
> ubitx_menu:291:32: error: 'si5351bx_setfreq' was not declared in this scope
>    si5351bx_setfreq(2, 10000000l);
>                                ^
> ubitx_menu:296:15: error: 'printLine2' was not declared in this scope
>    printLine2(b);
>                ^
> ubitx_menu:298:19: error: 'btnDown' was not declared in this scope
>    while (!btnDown())
>                    ^
> ubitx_menu:306:21: error: 'enc_read' was not declared in this scope
>      knob = enc_read();
>                      ^
> ubitx_menu:329:19: error: 'initOscillators' was not declared in this scope
>    initOscillators();
>                    ^
> ubitx_menu:331:17: error: 'updateDisplay' was not declared in this scope
>    updateDisplay();
>                  ^
> ubitx_menu:333:18: error: 'btnDown' was not declared in this scope
>    while (btnDown())
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'int
> menuSetupCalibration(int)':
> ubitx_menu:343:34: error: 'printLine2' was not declared in this scope
>      printLine2("Set Calibration?");
>                                  ^
> ubitx_menu:347:33: error: 'printLine1' was not declared in this scope
>    printLine1("Set to Zero-beat,");
>                                  ^
> ubitx_menu:348:33: error: 'printLine2' was not declared in this scope
>    printLine2("press PTT to save");
>                                  ^
> ubitx_menu:353:37: error: 'si5351_set_calibration' was not declared in
> this scope
>    si5351_set_calibration(calibration);
>                                      ^
> ubitx_menu:361:47: error: 'btnDown' was not declared in this scope
>    while (digitalRead(PTT) == HIGH && !btnDown())
>                                                ^
> ubitx_menu:363:21: error: 'enc_read' was not declared in this scope
>      knob = enc_read();
>                      ^
> ubitx_menu:377:35: error: 'si5351bx_setfreq' was not declared in this scope
>      si5351bx_setfreq(0, usbCarrier);
>                                    ^
> ubitx_menu:397:19: error: 'initOscillators' was not declared in this scope
>    initOscillators();
>                    ^
> ubitx_menu:400:17: error: 'updateDisplay' was not declared in this scope
>    updateDisplay();
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
> printCarrierFreq(long unsigned int)':
> ubitx_menu:417:15: error: 'printLine2' was not declared in this scope
>    printLine2(c);
>                ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
> menuSetupCarrier(int)':
> ubitx_menu:425:29: error: 'printLine2' was not declared in this scope
>      printLine2("Set the BFO");
>                              ^
> ubitx_menu:430:35: error: 'printLine1' was not declared in this scope
>    printLine1("Tune to best Signal");
>                                    ^
> ubitx_menu:431:32: error: 'printLine2' was not declared in this scope
>    printLine2("PTT to confirm. ");
>                                ^
> ubitx_menu:435:33: error: 'si5351bx_setfreq' was not declared in this scope
>    si5351bx_setfreq(0, usbCarrier);
>                                  ^
> ubitx_menu:439:47: error: 'btnDown' was not declared in this scope
>    while (digitalRead(PTT) == HIGH && !btnDown())
>                                                ^
> ubitx_menu:441:21: error: 'enc_read' was not declared in this scope
>      knob = enc_read();
>                      ^
> ubitx_menu:467:17: error: 'updateDisplay' was not declared in this scope
>    updateDisplay();
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void
> menuSetupCwTone(int)':
> ubitx_menu:477:32: error: 'printLine2' was not declared in this scope
>      printLine2("Change CW Tone");
>                                ^
> ubitx_menu:482:28: error: 'printLine1' was not declared in this scope
>    printLine1("Tune CW tone");
>                            ^
> ubitx_menu:483:32: error: 'printLine2' was not declared in this scope
>    printLine2("PTT to confirm. ");
>                                ^
> ubitx_menu:488:46: error: 'btnDown' was not declared in this scope
>    while (digitalRead(PTT) == LOW || !btnDown())
>                                              ^
> ubitx_menu:490:21: error: 'enc_read' was not declared in this scope
>      knob = enc_read();
>                      ^
> ubitx_menu:516:17: error: 'updateDisplay' was not declared in this scope
>    updateDisplay();
>                  ^
> /home/pi/Arduino/uBTIX_Master/ubitx_menu.ino: In function 'void doMenu()':
> ubitx_menu:524:18: error: 'btnDown' was not declared in this scope
>    while (btnDown())
>                  ^
> ubitx_menu:531:18: error: 'enc_read' was not declared in this scope
>      i = enc_read();
>                  ^
> ubitx_menu:532:24: error: 'btnDown' was not declared in this scope
>      btnState = btnDown();
>                        ^
> ubitx_menu:568:18: error: 'btnDown' was not declared in this scope
>    while (btnDown())
>                  ^
> exit status 1
> 'si5351bx_setfreq' was not declared in this scope
>
> This report would have more information with
> "Show verbose output during compilation"
> option enabled in File -> Preferences.
>
>
>
>     Virus-free. www.avast.com
>
>
> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>

--
                          http://www.metalworkingfun.com





bengt-ingvar.andersson@...
 

Hallo !

I have just put together the uBITX40 and had some QSO with good result.

Now I try to compile KD8CEC sketch version but also got a lot of errors.

I use the file uBITX.20/uBITX20.ino.

I have compile and loaded severels of Allards sketches before with no problom to the " old " BITX40.

What do I wrong ?

SM6ERS/Ingvar

Arduino:1.8.5 (Windows Store 1.8.10.0) (Windows 10), Kort:"Arduino Nano, ATmega328P"
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void setNextHamBandFreq(long unsigned int, char)':
 
sketch_mar12a:394: error: 'byteToMode' was not declared in this scope
 
   byteToMode(loadMode, 1);
 
                         ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'byte delay_background(unsigned int, byte)':
 
sketch_mar12a:419: error: 'getPaddle' was not declared in this scope
 
       if (getPaddle() != 0) //Interrupt : Stop cw Auto mode by Paddle -> Change Auto to Manual
 
                     ^
 
sketch_mar12a:423: error: 'autoSendPTTCheck' was not declared in this scope
 
       autoSendPTTCheck();
 
                        ^
 
sketch_mar12a:425: error: 'Check_Cat' was not declared in this scope
 
       Check_Cat(3);
 
                  ^
 
sketch_mar12a:430: error: 'Check_Cat' was not declared in this scope
 
       Check_Cat(fromType);
 
                         ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void setFrequency(long unsigned int)':
 
sketch_mar12a:499: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_USB - usbCarrier + f  + (isIFShift ? ifShiftValue : 0));
 
                                                                                            ^
 
sketch_mar12a:503: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_LSB + usbCarrier + f + (isIFShift ? ifShiftValue : 0));
 
                                                                                           ^
 
sketch_mar12a:510: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_LSB + cwmCarrier + f + (isIFShift ? ifShiftValue : 0));
 
                                                                                           ^
 
sketch_mar12a:514: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_USB - cwmCarrier + f + (isIFShift ? ifShiftValue : 0));
 
                                                                                           ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void startTx(byte, byte)':
 
sketch_mar12a:549: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoA_mode, 0);
 
                                ^
 
sketch_mar12a:554: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoB_mode, 0);
 
                                ^
 
sketch_mar12a:563: error: 'si5351bx_setfreq' was not declared in this scope
 
     si5351bx_setfreq(0, 0);
 
                          ^
 
sketch_mar12a:589: error: 'updateDisplay' was not declared in this scope
 
     updateDisplay();
 
                   ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void stopTx()':
 
sketch_mar12a:598: error: 'si5351bx_setfreq' was not declared in this scope
 
     si5351bx_setfreq(0, usbCarrier + (isIFShift ? ifShiftValue : 0));  //set back the carrier oscillator anyway, cw tx switches it off
 
                                                                    ^
 
sketch_mar12a:600: error: 'si5351bx_setfreq' was not declared in this scope
 
     si5351bx_setfreq(0, cwmCarrier + (isIFShift ? ifShiftValue : 0));  //set back the carrier oscillator anyway, cw tx switches it off
 
                                                                    ^
 
sketch_mar12a:609: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoA_mode, 0);
 
                                ^
 
sketch_mar12a:614: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoB_mode, 0);
 
                                ^
 
sketch_mar12a:621: error: 'updateDisplay' was not declared in this scope
 
   updateDisplay();
 
                 ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void ritDisable()':
 
sketch_mar12a:640: error: 'updateDisplay' was not declared in this scope
 
     updateDisplay();
 
                   ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void checkButton()':
 
sketch_mar12a:670: error: 'btnDown' was not declared in this scope
 
   if (!btnDown())
 
                ^
 
sketch_mar12a:673: error: 'btnDown' was not declared in this scope
 
   if (!btnDown()) //debounce
 
                ^
 
sketch_mar12a:676: error: 'doMenu' was not declared in this scope
 
   doMenu();
 
          ^
 
sketch_mar12a:679: error: 'btnDown' was not declared in this scope
 
   while(btnDown()) {
 
                 ^
 
sketch_mar12a:681: error: 'Check_Cat' was not declared in this scope
 
     Check_Cat(0);
 
                ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void doTuningWithThresHold()':
 
sketch_mar12a:710: error: 'enc_read' was not declared in this scope
 
     s = enc_read();
 
                  ^
 
sketch_mar12a:746: error: 'updateDisplay' was not declared in this scope
 
   updateDisplay();
 
                 ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void doRIT()':
 
sketch_mar12a:753: error: 'enc_read' was not declared in this scope
 
   int knob = enc_read();
 
                       ^
 
sketch_mar12a:765: error: 'updateDisplay' was not declared in this scope
 
     updateDisplay();
 
                   ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void initSettings()':
 
sketch_mar12a:844: error: 'printLineF' was not declared in this scope
 
     printLineF(1, F("Init EEProm...")); 
 
                                      ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void setup()':
 
sketch_mar12a:1111: error: 'printLineF' was not declared in this scope
 
   printLineF(1, F("CECBT v1.03")); 
 
                                 ^
 
sketch_mar12a:1113: error: 'Init_Cat' was not declared in this scope
 
   Init_Cat(38400, SERIAL_8N1);
 
                             ^
 
sketch_mar12a:1114: error: 'initMeter' was not declared in this scope
 
   initMeter(); //not used in this build
 
             ^
 
sketch_mar12a:1119: error: 'printLineFromEEPRom' was not declared in this scope
 
     printLineFromEEPRom(0, 0, 0, userCallsignLength -1); //eeprom to lcd use offset (USER_CALLSIGN_DAT)
 
                                                       ^
 
sketch_mar12a:1125: error: 'clearLine2' was not declared in this scope
 
     clearLine2();
 
                ^
 
sketch_mar12a:1130: error: 'byteToMode' was not declared in this scope
 
   byteToMode(vfoA_mode, 0);
 
                          ^
 
sketch_mar12a:1131: error: 'initOscillators' was not declared in this scope
 
   initOscillators();
 
                   ^
 
sketch_mar12a:1136: error: 'updateDisplay' was not declared in this scope
 
   updateDisplay();
 
                 ^
 
sketch_mar12a:1138: error: 'btnDown' was not declared in this scope
 
   if (btnDown())
 
               ^
 
sketch_mar12a:1139: error: 'factory_alignment' was not declared in this scope
 
     factory_alignment();
 
                       ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void checkAutoSaveFreqMode()':
 
sketch_mar12a:1160: error: 'FrequencyToVFO' was not declared in this scope
 
       FrequencyToVFO(1);
 
                       ^
 
C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino: In function 'void loop()':
 
sketch_mar12a:1173: error: 'controlAutoCW' was not declared in this scope
 
     controlAutoCW();
 
                   ^
 
sketch_mar12a:1175: error: 'cwKeyer' was not declared in this scope
 
   cwKeyer(); 
 
           ^
 
sketch_mar12a:1187: error: 'idle_process' was not declared in this scope
 
       idle_process();
 
                    ^
 
sketch_mar12a:1194: error: 'Check_Cat' was not declared in this scope
 
   Check_Cat(inTx? 1 : 0);
 
                        ^
 
exit status 1
'byteToMode' was not declared in this scope
 
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
 

Vince Vielhaber
 

You're not paying close enough attention to directory names and the ino file name. The main file that contains the setup() and loop() routines has to be the same name as the directory name but with .ino at the end.

eg.

uBITX.20/uBITX20.ino = no good

uBITX20/uBITX20.ino = good

and

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino = no good

C:\Users\mop\AppData\Local\Temp\sketch_mar12a\sketch_mar12a.ino = good

Vince.

On 03/12/2018 11:35 AM, bengt-ingvar.andersson@... wrote:
Hallo !

I have just put together the uBITX40 and had some QSO with good result.

Now I try to compile KD8CEC sketch version but also got a lot of errors.

I use the file uBITX.20/uBITX20.ino.

I have compile and loaded severels of Allards sketches before with no
problom to the " old " BITX40.

What do I wrong ?

SM6ERS/Ingvar

Arduino:1.8.5 (Windows Store 1.8.10.0) (Windows 10), Kort:"Arduino Nano,
ATmega328P"

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void setNextHamBandFreq(long unsigned int, char)':

sketch_mar12a:394: error: 'byteToMode' was not declared in this scope

byteToMode(loadMode, 1);

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'byte delay_background(unsigned int, byte)':

sketch_mar12a:419: error: 'getPaddle' was not declared in this scope

if (getPaddle() != 0) //Interrupt : Stop cw Auto mode by Paddle
-> Change Auto to Manual

^

sketch_mar12a:423: error: 'autoSendPTTCheck' was not declared in this scope

autoSendPTTCheck();

^

sketch_mar12a:425: error: 'Check_Cat' was not declared in this scope

Check_Cat(3);

^

sketch_mar12a:430: error: 'Check_Cat' was not declared in this scope

Check_Cat(fromType);

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void setFrequency(long unsigned int)':

sketch_mar12a:499: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(2, SECOND_OSC_USB - usbCarrier + f + (isIFShift
? ifShiftValue : 0));


^

sketch_mar12a:503: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(2, SECOND_OSC_LSB + usbCarrier + f + (isIFShift
? ifShiftValue : 0));


^

sketch_mar12a:510: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(2, SECOND_OSC_LSB + cwmCarrier + f + (isIFShift
? ifShiftValue : 0));


^

sketch_mar12a:514: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(2, SECOND_OSC_USB - cwmCarrier + f + (isIFShift
? ifShiftValue : 0));


^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void startTx(byte, byte)':

sketch_mar12a:549: error: 'byteToMode' was not declared in this scope

byteToMode(vfoA_mode, 0);

^

sketch_mar12a:554: error: 'byteToMode' was not declared in this scope

byteToMode(vfoB_mode, 0);

^

sketch_mar12a:563: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(0, 0);

^

sketch_mar12a:589: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void stopTx()':

sketch_mar12a:598: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(0, usbCarrier + (isIFShift ? ifShiftValue : 0));
//set back the carrier oscillator anyway, cw tx switches it off

^

sketch_mar12a:600: error: 'si5351bx_setfreq' was not declared in this scope

si5351bx_setfreq(0, cwmCarrier + (isIFShift ? ifShiftValue : 0));
//set back the carrier oscillator anyway, cw tx switches it off

^

sketch_mar12a:609: error: 'byteToMode' was not declared in this scope

byteToMode(vfoA_mode, 0);

^

sketch_mar12a:614: error: 'byteToMode' was not declared in this scope

byteToMode(vfoB_mode, 0);

^

sketch_mar12a:621: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void ritDisable()':

sketch_mar12a:640: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void checkButton()':

sketch_mar12a:670: error: 'btnDown' was not declared in this scope

if (!btnDown())

^

sketch_mar12a:673: error: 'btnDown' was not declared in this scope

if (!btnDown()) //debounce

^

sketch_mar12a:676: error: 'doMenu' was not declared in this scope

doMenu();

^

sketch_mar12a:679: error: 'btnDown' was not declared in this scope

while(btnDown()) {

^

sketch_mar12a:681: error: 'Check_Cat' was not declared in this scope

Check_Cat(0);

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void doTuningWithThresHold()':

sketch_mar12a:710: error: 'enc_read' was not declared in this scope

s = enc_read();

^

sketch_mar12a:746: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void doRIT()':

sketch_mar12a:753: error: 'enc_read' was not declared in this scope

int knob = enc_read();

^

sketch_mar12a:765: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void initSettings()':

sketch_mar12a:844: error: 'printLineF' was not declared in this scope

printLineF(1, F("Init EEProm..."));

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void setup()':

sketch_mar12a:1111: error: 'printLineF' was not declared in this scope

printLineF(1, F("CECBT v1.03"));

^

sketch_mar12a:1113: error: 'Init_Cat' was not declared in this scope

Init_Cat(38400, SERIAL_8N1);

^

sketch_mar12a:1114: error: 'initMeter' was not declared in this scope

initMeter(); //not used in this build

^

sketch_mar12a:1119: error: 'printLineFromEEPRom' was not declared in
this scope

printLineFromEEPRom(0, 0, 0, userCallsignLength -1); //eeprom to
lcd use offset (USER_CALLSIGN_DAT)

^

sketch_mar12a:1125: error: 'clearLine2' was not declared in this scope

clearLine2();

^

sketch_mar12a:1130: error: 'byteToMode' was not declared in this scope

byteToMode(vfoA_mode, 0);

^

sketch_mar12a:1131: error: 'initOscillators' was not declared in this scope

initOscillators();

^

sketch_mar12a:1136: error: 'updateDisplay' was not declared in this scope

updateDisplay();

^

sketch_mar12a:1138: error: 'btnDown' was not declared in this scope

if (btnDown())

^

sketch_mar12a:1139: error: 'factory_alignment' was not declared in this
scope

factory_alignment();

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void checkAutoSaveFreqMode()':

sketch_mar12a:1160: error: 'FrequencyToVFO' was not declared in this scope

FrequencyToVFO(1);

^

C:\Users\mop\AppData\Local\Temp\arduino_modified_sketch_12014\sketch_mar12a.ino:
In function 'void loop()':

sketch_mar12a:1173: error: 'controlAutoCW' was not declared in this scope

controlAutoCW();

^

sketch_mar12a:1175: error: 'cwKeyer' was not declared in this scope

cwKeyer();

^

sketch_mar12a:1187: error: 'idle_process' was not declared in this scope

idle_process();

^

sketch_mar12a:1194: error: 'Check_Cat' was not declared in this scope

Check_Cat(inTx? 1 : 0);

^

exit status 1
'byteToMode' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

bengt-ingvar.andersson@...
 

I download uBITX-master/uBITX_20/  here under are 9 files (ino) I click on uBITX_20.ino and the IDE start up.

The IDE is then loaded with a big file.............

When I start compile there are lot of errors.

I understand that some files must be missing.

Is there not only one file to compile ?

Ingvar

Jack, W8TEE
 

There are 7 files and all must be in the same directory, which must be named uBITX_20.

Jack, W8TEE



From: "bengt-ingvar.andersson@..." <bengt-ingvar.andersson@...>
To: BITX20@groups.io
Sent: Tuesday, March 13, 2018 8:28 AM
Subject: Re: [BITX20] uBITX Software error messages #ubitx-help

I download uBITX-master/uBITX_20/  here under are 9 files (ino) I click on uBITX_20.ino and the IDE start up.

The IDE is then loaded with a big file.............

When I start compile there are lot of errors.

I understand that some files must be missing.

Is there not only one file to compile ?

Ingvar



Virus-free. www.avast.com

DJ2AG
 

Ingvar, even when the IDE opens all 9 files, it knows how to compile and link together all of them (including libraries) if you  choose compile sketch. 

So If there are still errors, please post the error messages. Maybe some library problem. But the error messages will show ( more or less directly 😉 ) what’s wrong.

Armin, DJ2AG

bengt-ingvar.andersson@...
 

Ok Armin.

I count to 9 files under uBITX_20, one of them is uBITX_20.ino. ( the biggest )

I click on it and IDE start up with an sketch file.

I compile and here are the error list:

Arduino:1.8.5 (Windows Store 1.8.10.0) (Windows 10), Kort:"Arduino Nano, ATmega328P"
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void setNextHamBandFreq(long unsigned int, char)':
 
ubitx_20:396: error: 'byteToMode' was not declared in this scope
 
   byteToMode(loadMode, 1);
 
                         ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'byte delay_background(unsigned int, byte)':
 
ubitx_20:420: error: 'getPaddle' was not declared in this scope
 
       if (getPaddle() != 0) //Interrupt : Stop cw Auto mode by Paddle -> Change Auto to Manual
 
                     ^
 
ubitx_20:424: error: 'autoSendPTTCheck' was not declared in this scope
 
       autoSendPTTCheck();
 
                        ^
 
ubitx_20:426: error: 'Check_Cat' was not declared in this scope
 
       Check_Cat(3);
 
                  ^
 
ubitx_20:431: error: 'Check_Cat' was not declared in this scope
 
       Check_Cat(fromType);
 
                         ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void setFrequency(long unsigned int)':
 
ubitx_20:500: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_USB - usbCarrier + f  + (isIFShift ? ifShiftValue : 0));
 
                                                                                            ^
 
ubitx_20:504: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_LSB + usbCarrier + f + (isIFShift ? ifShiftValue : 0));
 
                                                                                           ^
 
ubitx_20:511: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_LSB + cwmCarrier + f + (isIFShift ? ifShiftValue : 0));
 
                                                                                           ^
 
ubitx_20:515: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_USB - cwmCarrier + f + (isIFShift ? ifShiftValue : 0));
 
                                                                                           ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void startTx(byte, byte)':
 
ubitx_20:549: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoA_mode, 0);
 
                                ^
 
ubitx_20:554: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoB_mode, 0);
 
                                ^
 
ubitx_20:563: error: 'si5351bx_setfreq' was not declared in this scope
 
     si5351bx_setfreq(0, 0);
 
                          ^
 
ubitx_20:589: error: 'updateDisplay' was not declared in this scope
 
     updateDisplay();
 
                   ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void stopTx()':
 
ubitx_20:598: error: 'si5351bx_setfreq' was not declared in this scope
 
     si5351bx_setfreq(0, usbCarrier + (isIFShift ? ifShiftValue : 0));  //set back the carrier oscillator anyway, cw tx switches it off
 
                                                                    ^
 
ubitx_20:600: error: 'si5351bx_setfreq' was not declared in this scope
 
     si5351bx_setfreq(0, cwmCarrier + (isIFShift ? ifShiftValue : 0));  //set back the carrier oscillator anyway, cw tx switches it off
 
                                                                    ^
 
ubitx_20:609: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoA_mode, 0);
 
                                ^
 
ubitx_20:614: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoB_mode, 0);
 
                                ^
 
ubitx_20:621: error: 'updateDisplay' was not declared in this scope
 
   updateDisplay();
 
                 ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void ritDisable()':
 
ubitx_20:640: error: 'updateDisplay' was not declared in this scope
 
     updateDisplay();
 
                   ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void checkButton()':
 
ubitx_20:670: error: 'btnDown' was not declared in this scope
 
   if (!btnDown())
 
                ^
 
ubitx_20:673: error: 'btnDown' was not declared in this scope
 
   if (!btnDown()) //debounce
 
                ^
 
ubitx_20:676: error: 'doMenu' was not declared in this scope
 
   doMenu();
 
          ^
 
ubitx_20:679: error: 'btnDown' was not declared in this scope
 
   while(btnDown()) {
 
                 ^
 
ubitx_20:681: error: 'Check_Cat' was not declared in this scope
 
     Check_Cat(0);
 
                ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void doTuningWithThresHold()':
 
ubitx_20:710: error: 'enc_read' was not declared in this scope
 
     s = enc_read();
 
                  ^
 
ubitx_20:749: error: 'updateDisplay' was not declared in this scope
 
   updateDisplay();
 
                 ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void doRIT()':
 
ubitx_20:756: error: 'enc_read' was not declared in this scope
 
   int knob = enc_read();
 
                       ^
 
ubitx_20:766: error: 'updateDisplay' was not declared in this scope
 
     updateDisplay();
 
                   ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void initSettings()':
 
ubitx_20:846: error: 'printLineF' was not declared in this scope
 
     printLineF(1, F("Init EEProm...")); 
 
                                      ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void setup()':
 
ubitx_20:1112: error: 'printLineF' was not declared in this scope
 
   printLineF(1, F("CECBT v1.04")); 
 
                                 ^
 
ubitx_20:1114: error: 'Init_Cat' was not declared in this scope
 
   Init_Cat(38400, SERIAL_8N1);
 
                             ^
 
ubitx_20:1115: error: 'initMeter' was not declared in this scope
 
   initMeter(); //not used in this build
 
             ^
 
ubitx_20:1120: error: 'printLineFromEEPRom' was not declared in this scope
 
     printLineFromEEPRom(0, 0, 0, userCallsignLength -1); //eeprom to lcd use offset (USER_CALLSIGN_DAT)
 
                                                       ^
 
ubitx_20:1126: error: 'clearLine2' was not declared in this scope
 
     clearLine2();
 
                ^
 
ubitx_20:1131: error: 'byteToMode' was not declared in this scope
 
   byteToMode(vfoA_mode, 0);
 
                          ^
 
ubitx_20:1132: error: 'initOscillators' was not declared in this scope
 
   initOscillators();
 
                   ^
 
ubitx_20:1137: error: 'updateDisplay' was not declared in this scope
 
   updateDisplay();
 
                 ^
 
ubitx_20:1139: error: 'btnDown' was not declared in this scope
 
   if (btnDown())
 
               ^
 
ubitx_20:1140: error: 'factory_alignment' was not declared in this scope
 
     factory_alignment();
 
                       ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void checkAutoSaveFreqMode()':
 
ubitx_20:1161: error: 'FrequencyToVFO' was not declared in this scope
 
       FrequencyToVFO(1);
 
                       ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void loop()':
 
ubitx_20:1174: error: 'controlAutoCW' was not declared in this scope
 
     controlAutoCW();
 
                   ^
 
ubitx_20:1176: error: 'cwKeyer' was not declared in this scope
 
   cwKeyer(); 
 
           ^
 
ubitx_20:1188: error: 'idle_process' was not declared in this scope
 
       idle_process();
 
                    ^
 
ubitx_20:1195: error: 'Check_Cat' was not declared in this scope
 
   Check_Cat(inTx? 1 : 0);
 
                        ^
 
exit status 1
'byteToMode' was not declared in this scope
 
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
 


Jack, W8TEE
 

This will likely make no difference, but the error messages that result might. Try creating a directory with this structure:

    C:\uBITXSoftware\ubitx_20\ubitx_20.ino   // plus the other 8 files

then compile and report the first 3 or 4 errors you get using this directory structure.

Jack, W8TEE





From: "bengt-ingvar.andersson@..." <bengt-ingvar.andersson@...>
To: BITX20@groups.io
Sent: Tuesday, March 13, 2018 3:12 PM
Subject: Re: [BITX20] uBITX Software error messages #ubitx-help

Ok Armin.

I count to 9 files under uBITX_20, one of them is uBITX_20.ino. ( the biggest )

I click on it and IDE start up with an sketch file.

I compile and here are the error list:

Arduino:1.8.5 (Windows Store 1.8.10.0) (Windows 10), Kort:"Arduino Nano, ATmega328P"
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void setNextHamBandFreq(long unsigned int, char)':
 
ubitx_20:396: error: 'byteToMode' was not declared in this scope
 
   byteToMode(loadMode, 1);
 
                         ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'byte delay_background(unsigned int, byte)':
 
ubitx_20:420: error: 'getPaddle' was not declared in this scope
 
       if (getPaddle() != 0) //Interrupt : Stop cw Auto mode by Paddle -> Change Auto to Manual
 
                     ^
 
ubitx_20:424: error: 'autoSendPTTCheck' was not declared in this scope
 
       autoSendPTTCheck();
 
                        ^
 
ubitx_20:426: error: 'Check_Cat' was not declared in this scope
 
       Check_Cat(3);
 
                  ^
 
ubitx_20:431: error: 'Check_Cat' was not declared in this scope
 
       Check_Cat(fromType);
 
                         ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void setFrequency(long unsigned int)':
 
ubitx_20:500: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_USB - usbCarrier + f  + (isIFShift ? ifShiftValue : 0));
 
                                                                                            ^
 
ubitx_20:504: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_LSB + usbCarrier + f + (isIFShift ? ifShiftValue : 0));
 
                                                                                           ^
 
ubitx_20:511: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_LSB + cwmCarrier + f + (isIFShift ? ifShiftValue : 0));
 
                                                                                           ^
 
ubitx_20:515: error: 'si5351bx_setfreq' was not declared in this scope
 
       si5351bx_setfreq(2, SECOND_OSC_USB - cwmCarrier + f + (isIFShift ? ifShiftValue : 0));
 
                                                                                           ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void startTx(byte, byte)':
 
ubitx_20:549: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoA_mode, 0);
 
                                ^
 
ubitx_20:554: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoB_mode, 0);
 
                                ^
 
ubitx_20:563: error: 'si5351bx_setfreq' was not declared in this scope
 
     si5351bx_setfreq(0, 0);
 
                          ^
 
ubitx_20:589: error: 'updateDisplay' was not declared in this scope
 
     updateDisplay();
 
                   ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void stopTx()':
 
ubitx_20:598: error: 'si5351bx_setfreq' was not declared in this scope
 
     si5351bx_setfreq(0, usbCarrier + (isIFShift ? ifShiftValue : 0));  //set back the carrier oscillator anyway, cw tx switches it off
 
                                                                    ^
 
ubitx_20:600: error: 'si5351bx_setfreq' was not declared in this scope
 
     si5351bx_setfreq(0, cwmCarrier + (isIFShift ? ifShiftValue : 0));  //set back the carrier oscillator anyway, cw tx switches it off
 
                                                                    ^
 
ubitx_20:609: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoA_mode, 0);
 
                                ^
 
ubitx_20:614: error: 'byteToMode' was not declared in this scope
 
         byteToMode(vfoB_mode, 0);
 
                                ^
 
ubitx_20:621: error: 'updateDisplay' was not declared in this scope
 
   updateDisplay();
 
                 ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void ritDisable()':
 
ubitx_20:640: error: 'updateDisplay' was not declared in this scope
 
     updateDisplay();
 
                   ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void checkButton()':
 
ubitx_20:670: error: 'btnDown' was not declared in this scope
 
   if (!btnDown())
 
                ^
 
ubitx_20:673: error: 'btnDown' was not declared in this scope
 
   if (!btnDown()) //debounce
 
                ^
 
ubitx_20:676: error: 'doMenu' was not declared in this scope
 
   doMenu();
 
          ^
 
ubitx_20:679: error: 'btnDown' was not declared in this scope
 
   while(btnDown()) {
 
                 ^
 
ubitx_20:681: error: 'Check_Cat' was not declared in this scope
 
     Check_Cat(0);
 
                ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void doTuningWithThresHold()':
 
ubitx_20:710: error: 'enc_read' was not declared in this scope
 
     s = enc_read();
 
                  ^
 
ubitx_20:749: error: 'updateDisplay' was not declared in this scope
 
   updateDisplay();
 
                 ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void doRIT()':
 
ubitx_20:756: error: 'enc_read' was not declared in this scope
 
   int knob = enc_read();
 
                       ^
 
ubitx_20:766: error: 'updateDisplay' was not declared in this scope
 
     updateDisplay();
 
                   ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void initSettings()':
 
ubitx_20:846: error: 'printLineF' was not declared in this scope
 
     printLineF(1, F("Init EEProm...")); 
 
                                      ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void setup()':
 
ubitx_20:1112: error: 'printLineF' was not declared in this scope
 
   printLineF(1, F("CECBT v1.04")); 
 
                                 ^
 
ubitx_20:1114: error: 'Init_Cat' was not declared in this scope
 
   Init_Cat(38400, SERIAL_8N1);
 
                             ^
 
ubitx_20:1115: error: 'initMeter' was not declared in this scope
 
   initMeter(); //not used in this build
 
             ^
 
ubitx_20:1120: error: 'printLineFromEEPRom' was not declared in this scope
 
     printLineFromEEPRom(0, 0, 0, userCallsignLength -1); //eeprom to lcd use offset (USER_CALLSIGN_DAT)
 
                                                       ^
 
ubitx_20:1126: error: 'clearLine2' was not declared in this scope
 
     clearLine2();
 
                ^
 
ubitx_20:1131: error: 'byteToMode' was not declared in this scope
 
   byteToMode(vfoA_mode, 0);
 
                          ^
 
ubitx_20:1132: error: 'initOscillators' was not declared in this scope
 
   initOscillators();
 
                   ^
 
ubitx_20:1137: error: 'updateDisplay' was not declared in this scope
 
   updateDisplay();
 
                 ^
 
ubitx_20:1139: error: 'btnDown' was not declared in this scope
 
   if (btnDown())
 
               ^
 
ubitx_20:1140: error: 'factory_alignment' was not declared in this scope
 
     factory_alignment();
 
                       ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void checkAutoSaveFreqMode()':
 
ubitx_20:1161: error: 'FrequencyToVFO' was not declared in this scope
 
       FrequencyToVFO(1);
 
                       ^
 
C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20\ubitx_20.ino: In function 'void loop()':
 
ubitx_20:1174: error: 'controlAutoCW' was not declared in this scope
 
     controlAutoCW();
 
                   ^
 
ubitx_20:1176: error: 'cwKeyer' was not declared in this scope
 
   cwKeyer(); 
 
           ^
 
ubitx_20:1188: error: 'idle_process' was not declared in this scope
 
       idle_process();
 
                    ^
 
ubitx_20:1195: error: 'Check_Cat' was not declared in this scope
 
   Check_Cat(inTx? 1 : 0);
 
                        ^
 
exit status 1
'byteToMode' was not declared in this scope
 
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
 




DJ2AG
 

I was able to reproduce this. If after downloading the zip file from github I assume you just double clicked the downloaded zip file and opened ubitx_20.ino by double clicking it too. Windows just extracted this file into a temp directory. In your case into:

C:\Users\mop\AppData\Local\Temp\Temp1_ubitx-master (5).zip\ubitx-master\ubitx_20

But only this file and not the other ones. To fix the problem just go to the Download directory where Windows saved the zip file and unzip or extract whatever command you have available with a right click on the zip file. From here you can move it to a more convenient place, but you could also try from the newly created directory in your download Folder.
When you now double click ubitx_20.ino, the Arduino IDE should now show  all ino files in separate tabs and compile should work.

Good luck!
Armin, DJ2AG

bengt-ingvar.andersson@...
 

Now it works !

Thanks for all help.

SM6ERS/Ingvar