Proszę o pomoc - mam taki komunikat jak w temacie przy kompilacji.
źródła pobrane z gihub od Krycha88
płytka esp v.3.0
exit status 1 multiple definition of 'enum _sensorI2C'
-
krycha88
- Posts: 5575
- Joined: Fri Nov 16, 2018 7:25 am
- Been thanked: 5 times
Usuń i daj znać:
https://github.com/krycha88/GUI-Generic ... nsors.h#L4
https://github.com/krycha88/GUI-Generic ... nsors.h#L4
https://gui-generic-builder.supla.io/
-
Hektorek
- Posts: 176
- Joined: Wed Apr 22, 2020 10:27 am
- Been thanked: 1 time
krycha88 wrote: Fri Aug 27, 2021 12:52 pm Usuń i daj znać:
https://github.com/krycha88/GUI-Generic ... nsors.h#L4
Code: Select all
#ifndef SuplaWebPageSensor_h
#define SuplaWebPageSensor_h
#include "SuplaDeviceGUI.h"
#include "SuplaWebServer.h"
#include "SuplaWebPageControl.h"
#define PATH_MULTI_DS "multids"
#define PATH_SAVE_MULTI_DS "savemultids"
#define PATH_1WIRE "1wire"
#define PATH_SAVE_1WIRE "save1wire"
#define PATH_I2C "i2c"
#define PATH_SAVE_I2C "savei2c"
#define PATH_SPI "spi"
#define PATH_SAVE_SPI "savespi"
#define INPUT_MULTI_DS_GPIO "mdsg"
#define INPUT_DHT11_GPIO "dht11"
#define INPUT_DHT22_GPIO "dht22"
#define INPUT_SDA_GPIO "sdag"
#define INPUT_SCL_GPIO "sclg"
#define INPUT_BME280 "bme280"
#define INPUT_ALTITUDE_BME280 "abme280"
#define INPUT_SHT3x "sht30"
#define INPUT_SI7021 "si7021"
#define INPUT_OLED "oled"
#define INPUT_OLED_ANIMATION "oleda"
#define INPUT_OLED_BRIGHTNESS "oledb"
#define INPUT_MCP23017 "mcp"
#define INPUT_SI7021_SONOFF "si7021sonoff"
#define INPUT_MAX_DHT11 "mdht11"
#define INPUT_MAX_DHT22 "mdht22"
#define INPUT_MAX_DS18B20 "maxds"
#define INPUT_CLK_GPIO "clk"
#define INPUT_CS_GPIO "cs"
#define INPUT_D0_GPIO "d0"
#define INPUT_MAX6675 "max6675"
#define INPUT_OLED_NAME "ion"
/* enum _sensorI2C
{
SENSOR_I2C_BME280,
SENSOR_I2C_SHT3x,
SENSOR_I2C_SI7021,
SENSOR_I2C_MAX6675,
SENSOR_I2C_OLED,
SENSOR_I2C_MCP23017
};
#ifdef SUPLA_BME280
enum _bmeAdress
{
BME280_ADDRESS_0X76 = 1,
BME280_ADDRESS_0X77,
BME280_ADDRESS_0X76_AND_0X77
};
#endif
#ifdef SUPLA_SHT3x
enum _shtAdress
{
SHT3x_ADDRESS_0X44 = 1,
SHT3x_ADDRESS_0X45,
SHT3x_ADDRESS_0X44_AND_0X45
};
#endif
*/
class SuplaWebPageSensor {
public:
SuplaWebPageSensor();
void createWebPageSensor();
#ifdef SUPLA_DS18B20
#define INPUT_DS18B20_ADDR "dsaddr"
#define INPUT_DS18B20_NAME "dsname"
void handleSearchDS();
void handleDSSave();
void showDS18B20(bool readonly = false);
void supla_webpage_search(int save);
#endif
#if defined(SUPLA_BME280) || defined(SUPLA_SI7021) || defined(SUPLA_SHT3x) || defined(SUPLA_OLED) || defined(SUPLA_MCP23017)
void handlei2c();
void handlei2cSave();
void supla_webpage_i2c(int save);
#endif
#if defined(SUPLA_MAX6675)
void handleSpi();
void handleSpiSave();
#endif
#if defined(SUPLA_DS18B20) || defined(SUPLA_DHT11) || defined(SUPLA_DHT22) || defined(SUPLA_SI7021_SONOFF)
void handle1Wire();
void handle1WireSave();
void supla_webpage_1wire(int save);
#endif
#if defined(SUPLA_MAX6675)
void supla_webpage_spi(int save);
#endif
};
extern SuplaWebPageSensor* WebPageSensor;
#endif // SuplaWebPageSensor_h"exit status 1
'KEY_ALTITUDE_BME280' was not declared in this scope; did you mean 'KEY_ALTITUDE_BMX280'?"
a kompiluje w arduino v 1.8.13
Pozdrawiam:
Sławek
Sławek
-
Patryk
- Posts: 2944
- Joined: Mon Jan 07, 2019 7:51 pm
- Location: Rybnik
@Hektorek
A masz bibliotekę:
SuplaDeviceExtensions
A masz bibliotekę:
SuplaDeviceExtensions
-
Hektorek
- Posts: 176
- Joined: Wed Apr 22, 2020 10:27 am
- Been thanked: 1 time
Uaktualniłem biblioteki i płytkę Generic ESP8266 do v. 3.0.2 i tym razem błąd:krycha88 wrote: Fri Aug 27, 2021 6:05 pm Pobierz nowe źródła i nic nie zmieniaj. Powinno wszystko się kompilować - przed chwilą sprawdziłem. W preferencjach Arduino Ide mam ustawione Ostrzeżenia kompilatora: Domyślne.
exit status 1
'MDNS' was not declared in this scope
W pliku cały przebieg kompilacji arduino
Źródła pobrane stąd:
https://github.com/krycha88/GUI-Generic
Nie wiem, co robię źle?
Czy błąd tkwi w nieprawidłowych bibliotekach?
Jeśli mam:
// #define USE_CUSTOM
to mam błąd:
exit status 1
Błąd kompilacji dla płytki Generic ESP8266 Module.
You do not have the required permissions to view the files attached to this post.
Pozdrawiam:
Sławek
Sławek
-
krycha88
- Posts: 5575
- Joined: Fri Nov 16, 2018 7:25 am
- Been thanked: 5 times
najpierw skompiluj sobie źródła z zakomentowanym
https://github.com/krycha88/GUI-Generic ... onfig.h#L4
jak się skompilują to odkomentuj
https://github.com/krycha88/GUI-Generic ... onfig.h#L4
oraz flagi poniżej które ciebie nie interesują
a jak dalej nie pójdzie to użyj:
https://gui-generic-builder.supla.io/
który aktualnie coś nie działa
https://github.com/krycha88/GUI-Generic ... onfig.h#L4
jak się skompilują to odkomentuj
https://github.com/krycha88/GUI-Generic ... onfig.h#L4
oraz flagi poniżej które ciebie nie interesują
a jak dalej nie pójdzie to użyj:
https://gui-generic-builder.supla.io/
który aktualnie coś nie działa
https://gui-generic-builder.supla.io/
-
Hektorek
- Posts: 176
- Joined: Wed Apr 22, 2020 10:27 am
- Been thanked: 1 time
Wróciłem do wersji płytki 2.7.4 i dla próby skompilowałem SOLAREDGE.ino od lukfud-a i poszło.krycha88 wrote: Fri Aug 27, 2021 7:30 pm najpierw skompiluj sobie źródła z zakomentowanym
https://github.com/krycha88/GUI-Generic ... onfig.h#L4
jak się skompilują to odkomentuj
https://github.com/krycha88/GUI-Generic ... onfig.h#L4
oraz flagi poniżej które ciebie nie interesują
a jak dalej nie pójdzie to użyj:
https://gui-generic-builder.supla.io/
który aktualnie coś nie działa![]()
To wziąłem na tapetę GUI-Generic https://github.com/krycha88/GUI-Generic ... onfig.h#L4 i błąd:
exit status 1
Błąd kompilacji dla płytki Generic ESP8266 Module.
Code: Select all
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp: In constructor 'SuplaConfigManager::SuplaConfigManager()':
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp:166:7: warning: 'SPIFFS' is deprecated (declared at C:\Users\S�awek\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
if (SPIFFS.begin()) {
^
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp:362:5: warning: 'SPIFFS' is deprecated (declared at C:\Users\S�awek\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
SPIFFS.format();
^
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp: In member function 'int SuplaConfigManager::sizeFile()':
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp:458:7: warning: 'SPIFFS' is deprecated (declared at C:\Users\S�awek\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
if (SPIFFS.begin()) {
^
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp:459:9: warning: 'SPIFFS' is deprecated (declared at C:\Users\S�awek\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
if (SPIFFS.exists(CONFIG_FILE_PATH)) {
^
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp:460:25: warning: 'SPIFFS' is deprecated (declared at C:\Users\S�awek\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
File configFile = SPIFFS.open(CONFIG_FILE_PATH, "r");
^
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp: In member function 'uint8_t SuplaConfigManager::load(uint8_t, bool)':
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp:468:7: warning: 'SPIFFS' is deprecated (declared at C:\Users\S�awek\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
if (SPIFFS.begin()) {
^
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp:469:9: warning: 'SPIFFS' is deprecated (declared at C:\Users\S�awek\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
if (SPIFFS.exists(CONFIG_FILE_PATH)) {
^
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp:470:25: warning: 'SPIFFS' is deprecated (declared at C:\Users\S�awek\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
File configFile = SPIFFS.open(CONFIG_FILE_PATH, "r");
^
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp: In member function 'uint8_t SuplaConfigManager::save()':
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp:523:7: warning: 'SPIFFS' is deprecated (declared at C:\Users\S�awek\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
if (SPIFFS.begin()) {
^
C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaConfigManager.cpp:532:23: warning: 'SPIFFS' is deprecated (declared at C:\Users\S�awek\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.4\cores\esp8266/FS.h:269): SPIFFS has been deprecated. Please consider moving to LittleFS or other filesystems. [-Wdeprecated-declarations]
File configFile = SPIFFS.open(CONFIG_FILE_PATH, "w+");
^
In file included from C:\Users\SAWEK~1\AppData\Local\Temp\arduino_build_158472\sketch\SuplaDeviceGUI.cpp:18:0:
C:\Users\S�awek\Desktop\SUPLA\przyklady\libraries\SuplaDeviceExtensions\src/supla/network/SuplaGuiWiFi.h: In member function 'virtual void Supla::GUIESPWifi::setup()':
C:\Users\S�awek\Desktop\SUPLA\przyklady\libraries\SuplaDeviceExtensions\src/supla/network/SuplaGuiWiFi.h:114:14: error: 'class ESP8266WiFiClass' has no member named 'setHostname'
WiFi.setHostname(hostname);
^
Nie raz kompilowałem szkice ale z GUI mam problemy i nie mogę ich rozwiązać mimo Twojej pomocy Krycha88.
Normalnie mi głupio
Pozdrawiam:
Sławek
Sławek
