ecocurious2 / MultiGeiger

Geigerzähler mit ESP32 und empfindlichem Si22g-Zählrohr (Gamma)
https://multigeiger.readthedocs.io/
GNU General Public License v3.0
70 stars 30 forks source link

Fehler beim Kompilieren - "WiFi.h" #454

Closed zwiebelxxl closed 2 years ago

zwiebelxxl commented 2 years ago

Hallo MultiGeiger Team,

ich bin total begeistert von dem Projekt und und hab mir Platine/Bauteile + Heltec WiFi Kit 32 besort.

Zuerst hab ich mit esptool + multigeiger.bin wie in https://github.com/ecocurious2/MultiGeiger/issues/198 beschrieben. Aber leider hängt der esp32 in einem reboot loop.

Also hab ich mich an die Anleitung gehalten und Arduino mit allen Bibliotheken instaliert. Aber leider bekomm ich die Fehlermeldung unten nicht weg. Hat jemand eine Idee?

/Users/myuser/Documents/Arduino/libraries/MCCI_LoRaWAN_LMIC_library/src/hal/getpinmap_thisboard.cpp: In function 'const Arduino_LMIC::HalPinmap_t* Arduino_LMIC::GetPinmap_ThisBoard()':
/Users/myuser/Documents/Arduino/libraries/MCCI_LoRaWAN_LMIC_library/src/hal/getpinmap_thisboard.cpp:71:72: note: #pragma message: Board not supported -- use an explicit pinmap
         #pragma message("Board not supported -- use an explicit pinmap")
                                                                        ^
/Users/myuser/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2-patch3/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /Users/myuser/Library/Arduino15/packages/esp32/hardware/esp32/2.0.3-RC1/tools/sdk/esp32/lib/libpp.a(hal_mac.o): in function `hal_init':
(.text.hal_init+0xb4): multiple definition of `hal_init'; libraries/MCCI_LoRaWAN_LMIC_library/hal/objs.a(hal.cpp.o):/Users/myuser/Documents/Arduino/libraries/MCCI_LoRaWAN_LMIC_library/src/hal/hal.cpp:416: first defined here
collect2: error: ld returned 1 exit status
Mehrere Bibliotheken wurden für "WiFi.h" gefunden
 Benutzt: /Users/myuser/Library/Arduino15/packages/esp32/hardware/esp32/2.0.3-RC1/libraries/WiFi
 Nicht benutzt: /Applications/Arduino.app/Contents/Java/libraries/WiFi
exit status 1
Fehler beim Kompilieren für das Board Heltec Wireless Stick.

schon mal vielen Dank!

ThomasWaldmann commented 2 years ago

I didn't test the 2.0.3-rc1 arduino yet. It worked for me with the previous stable release.

It sounds like being caused by duplicated libraries maybe, so some cleanup there (== only having one) could also help.

The "explicit pinmap" warning maybe can get ignored.

zwiebelxxl commented 2 years ago

how can i do a cleanup? After deleting of: /Applications/Arduino.app/Contents/Java/libraries/WiFi

It looks like below:


/Users/myuser/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/gcc8_4_0-esp-2021r2/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld:
/Users/myuser/Library/Arduino15/packages/esp32/hardware/esp32/2.0.2/tools/sdk/esp32/lib/libpp.a(hal_mac.o): in function `hal_init':

(.text.hal_init+0xb4): multiple definition of `hal_init'; libraries/MCCI_LoRaWAN_LMIC_library/hal/objs.a(hal.cpp.o):
/Users/myuser/Documents/Arduino/libraries/MCCI_LoRaWAN_LMIC_library/src/hal/hal.cpp:416: first defined here
collect2: error: ld returned 1 exit status
exit status 1
Fehler beim Kompilieren für das Board Heltec Wireless Stick.

By delete this folder: /Users/myuser/Documents/Arduino/libraries/MCCI_LoRaWAN_LMIC_library

loraWan.cpp:42:10: fatal error: lmic.h: No such file or directory
 #include <lmic.h>
          ^~~~~~~~
compilation terminated.
exit status 1
lmic.h: No such file or directory

or how can i downgrad back to last stable release?

zwiebelxxl commented 2 years ago

after correctly installing python, the code could be compiled.