matteocrippa / leafminer

A FOSS bitcoin miner for ESP8266 and ESP32
MIT License
51 stars 9 forks source link

Impossible Compil for on vsc and PlatFormIO #23

Open cromes85 opened 3 months ago

cromes85 commented 3 months ago

Describe the bug Impossible de compiler

To Reproduce Steps to reproduce the behavior:

Processing esp8266 (platform: espressif8266; board: d1_mini; framework: arduino)

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html PLATFORM: Espressif 8266 (4.0.1) > WeMos D1 R2 and mini HARDWARE: ESP8266 160MHz, 80KB RAM, 4MB Flash PACKAGES:

matteocrippa commented 3 months ago

Checking at the code it seems you are using some different version of the libraries. I just run it locally and in the Github CI and it worked fine.

I see that the most relevant differences are:

PLATFORM: Espressif 8266 (4.2.1) > WeMos D1 R2 and mini

In your log seems you are using an older version: PLATFORM: Espressif 8266 (4.0.1) > WeMos D1 R2 and mini

Same for the packages

PACKAGES: 
 - framework-arduinoespressif8266 @ 3.30102.0 (3.1.2) 

vs

framework-arduinoespressif8266 @ 3.30002.0 (3.0.2)

Also the error that breaks the compilation is this one:

src\network\accesspoint.cpp:62:32: error: 'class UpdaterClass' has no member named 'getErrorString' 62 | std::string error = Update.getErrorString().c_str();

It seems that Update.h class has not getErrorString() function, can be for the issue above of the different version.

I will send later a commit with 0.0.13 trying to force to use the latest version of the libs

cromes85 commented 3 months ago

Do you have a version of the code that can be used in arduinoIDE, I am more comfortable and I would like to help evolve?

matteocrippa commented 3 months ago

@cromes85 did you try now using the main branch?

cromes85 commented 3 months ago

Pas encore

Le sam. 30 mars 2024, 22:16, Matteo Crippa @.***> a écrit :

@cromes85 https://github.com/cromes85 did you try now using the main branch?

— Reply to this email directly, view it on GitHub https://github.com/matteocrippa/leafminer/issues/23#issuecomment-2028470629, or unsubscribe https://github.com/notifications/unsubscribe-auth/AENQRJRRM6BFFWA56WRT443Y24MSHAVCNFSM6AAAAABE2PX326VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRYGQ3TANRSHE . You are receiving this because you were mentioned.Message ID: @.***>

matteocrippa commented 2 months ago

@cromes85 still same error?