QLiteOSD
QLiteOSD copied to clipboard
source code compiling
trying to compile source code after disabling a few of the osd elements and i get the following errors:
In file included from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:39:
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\OSD_positions_config.h:5: warning: "ESP8266" redefined
5 | #define ESP8266 // Uncommment this line if using the ESP8266 (Wemos D1 Mini)
|
<command-line>: note: this is the location of the previous definition
In file included from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:37:
c:\Users\tarc6\Documents\audrino\libraries\MSP/MSP.h:231:32: warning: 'packed' attribute ignored for field of type 'msp_servo_mix_rules_t::<unnamed struct> [16]' [-Wattributes]
231 | } mixRule[MSP_MAX_SERVO_RULES];
| ^
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void setup()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:196:7: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
196 | if (SPIFFS.begin()) {
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'uint32_t logGetNextFileNum()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:644:13: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
644 | Dir dir = SPIFFS.openDir("/");
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void logRemoveOldFiles(uint32_t)':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:661:5: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
661 | SPIFFS.remove(String("/") + String(i));
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:667:5: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
667 | SPIFFS.rename(oldFile,newFile);
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void logFileCreate()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:677:16: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
677 | gpsLogFile = SPIFFS.open(fileName, "w"); //need to test what turning off without closing the file does
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void showFiles()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:767:13: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
767 | Dir dir = SPIFFS.openDir("/");
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:785:3: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
785 | SPIFFS.info(fsInfo);
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void downloadFile()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:821:26: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
821 | File rawDataFile = SPIFFS.open(filename, "r");
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:845:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
845 | char *msecVal = ".000";
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:847:21: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
847 | msecVal = ".500";
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void deleteFiles()':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:863:3: warning: 'SPIFFS' is deprecated: SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
863 | SPIFFS.format();
| ^~~~~~
In file included from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/CertStoreBearSSL.h:26,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecureBearSSL.h:30,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiClientSecure.h:23,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/WiFiServerSecure.h:20,
from C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41,
from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:61:
C:\Users\tarc6\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\cores\esp8266/FS.h:286:15: note: declared here
286 | extern fs::FS SPIFFS __attribute__((deprecated("SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems.")));
| ^~~~~~
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void send_msp_to_airunit(uint8_t)':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:348:9: warning: 'void* memcpy(void*, const void*, size_t)' writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=]
348 | memcpy(fc_variant.flightControlIdentifier, fcVariant, sizeof(fcVariant));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. Variables and constants in RAM (global, static), used 33500 / 80192 bytes (41%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1636 initialized variables
╠══ RODATA 4072 constants
╚══ BSS 27792 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 63131 / 65536 bytes (96%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 30363 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 348328 / 1048576 bytes (33%)
║ SEGMENT BYTES DESCRIPTION
╚══ IROM 348328 code in flash
after i comment out lines 5-9 in the osd_positions_config.h i get this error:
In file included from C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:37:
c:\Users\tarc6\Documents\audrino\libraries\MSP/MSP.h:231:32: warning: 'packed' attribute ignored for field of type 'msp_servo_mix_rules_t::<unnamed struct> [16]' [-Wattributes]
231 | } mixRule[MSP_MAX_SERVO_RULES];
| ^
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino: In function 'void send_msp_to_airunit(uint8_t)':
C:\Users\tarc6\Desktop\QLiteOSD-1.5\QLiteOSD\QLiteOSD.ino:348:9: warning: 'void* memcpy(void*, const void*, size_t)' writing 5 bytes into a region of size 4 overflows the destination [-Wstringop-overflow=]
348 | memcpy(fc_variant.flightControlIdentifier, fcVariant, sizeof(fcVariant));
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. Variables and constants in RAM (global, static), used 29180 / 80192 bytes (36%)
║ SEGMENT BYTES DESCRIPTION
╠══ DATA 1532 initialized variables
╠══ RODATA 992 constants
╚══ BSS 26656 zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 61123 / 65536 bytes (93%)
║ SEGMENT BYTES DESCRIPTION
╠══ ICACHE 32768 reserved space for flash instruction cache
╚══ IRAM 28355 code in IRAM
. Code in flash (default, ICACHE_FLASH_ATTR), used 252120 / 1048576 bytes (24%)
I have also used one of the provided bin files to get the osd working but the voltage is not reading correctly even though i have the bec set for 5.9v.
I even tried verifying the code directly out of the zip file and still same errors ...i must be doing something wrong.