roema / Open-Glider-Network-Groundstation

Open Glider Network Receiver based on TTGO T-Beam ESP32 hardware.
https://ros-it.ch/open-glider-network-base-station/
GNU General Public License v3.0
1 stars 0 forks source link

Can't build source code from scratch with current Arduino IDE 2.3.2 #35

Open linuxianer99 opened 2 months ago

linuxianer99 commented 2 months ago

Hey,

i tried to build the current source code from scratch. Therefore i did a clean installation:

After a while, the following error occurs:

In file included from C:\Users\Timo\AppData\Local\Arduino15\libraries\SD\src/utility/Sd2Card.h:26:0,
                 from C:\Users\Timo\AppData\Local\Arduino15\libraries\SD\src/utility/SdFat.h:29,
                 from C:\Users\Timo\AppData\Local\Arduino15\libraries\SD\src/SD.h:20,
                 from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:1:
C:\Users\Timo\AppData\Local\Arduino15\libraries\SD\src/utility/Sd2PinMap.h:527:2: error: #error Architecture or board not supported.
 #error Architecture or board not supported.
  ^
E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp: In function 'bool OGN_read_config()':
E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:162:5: error: reference to 'File' is ambiguous
     File configFile;
     ^
In file included from C:\Users\Timo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\SPIFFS\src/SPIFFS.h:18:0,
                 from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\Platform_ESP32.h:28,
                 from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\SoC.h:25,
                 from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\EEPROM.h:22,
                 from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:25:
C:\Users\Timo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\FS\src/FS.h:47:7: note: candidates are: class fs::File
 class File : public Stream
       ^
In file included from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:1:0:
C:\Users\Timo\AppData\Local\Arduino15\libraries\SD\src/SD.h:28:9: note:                 class SDLib::File
   class File : public Stream {
         ^
E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:238:7: error: 'configFile' was not declared in this scope
       configFile = SPIFFS.open(config_files[0]);
       ^
E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:250:62: error: 'configFile' was not declared in this scope
     DeserializationError error = deserializeJson(baseConfig, configFile);
                                                              ^
E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp: In function 'bool OGN_save_config()':
E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:433:5: error: reference to 'File' is ambiguous
     File configFile = SPIFFS.open("/config.json", "r");
     ^
In file included from C:\Users\Timo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\SPIFFS\src/SPIFFS.h:18:0,
                 from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\Platform_ESP32.h:28,
                 from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\SoC.h:25,
                 from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\EEPROM.h:22,
                 from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:25:
C:\Users\Timo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\FS\src/FS.h:47:7: note: candidates are: class fs::File
 class File : public Stream
       ^
In file included from E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:1:0:
C:\Users\Timo\AppData\Local\Arduino15\libraries\SD\src/SD.h:28:9: note:                 class SDLib::File
   class File : public Stream {
         ^
E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:434:10: error: 'configFile' was not declared in this scope
     if (!configFile)
          ^
E:\code_temp\Open-Glider-Network-Groundstation\ognbase\config.cpp:440:62: error: 'configFile' was not declared in this scope
     DeserializationError error = deserializeJson(baseConfig, configFile);
                                                              ^
Multiple libraries were found for "sd_defines.h"
  Used: C:\Users\Timo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\SD
  Not used: C:\Users\Timo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\SD_MMC
Multiple libraries were found for "SD.h"
  Used: C:\Users\Timo\AppData\Local\Arduino15\libraries\SD
  Not used: C:\Users\Timo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\SD
Multiple libraries were found for "EEPROM.h"
  Used: C:\Users\Timo\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.5\libraries\EEPROM
  Not used: D:\Users\Timo\Documents\Arduino\libraries\EEPROM
exit status 1

Compilation error: reference to 'File' is ambiguous

Looks like a library version problem.

What is the recommended Arduino IDE Version including libraries for building ?

Thanks a lot, Timo