nauti-control / STWirelessRemote

Open Source Wireless remote for Raymarine ST1000/ST2000 autopilots as well as ST60 speed timer.
https://nauti-control.com/nauti-control-st-wireless-remote-controller/
GNU General Public License v3.0
16 stars 6 forks source link

Build Issue on fresh install #4

Closed nauti-control closed 7 months ago

nauti-control commented 7 months ago

Error happening on fresh install of VC without platformio plugin installed previously .pio\build\esp32doit-devkit-v1\lib6e4\libEspSoftwareSerial.a(SoftwareSerial.cpp.o): In function `std::function<void ()>::operator()() const': C:\ReporOwn\STWirelessRemote/.pio\libdeps\esp32doit-devkit-v1\EspSoftwareSerial\src/SoftwareSerial.cpp:670:(.iram1.54[delegate::detail::DelegateImpl<void*, void>::operator()() const]+0x22): dangerous relocation: l32r: literal placed after use: .literal._ZNK8delegate6detail12DelegateImplIPvvEclEv collect2.exe: error: ld returned 1 exit status

nauti-control commented 7 months ago

Ok this one had me baffled , it does build fine on my build machine however there are a few things that can differer and I was able to replicate on another PC i use.

  1. The espressif platform version isnt tied to the platform.io file and needs upgraded manually .
  2. The one that caused the break in my case was the espsoftwareserial . I have specified version 7.0.0 which works however whenever you do a fresh install it pulls down 7.0.1 which doesnt work . I've worked around this changing the library dependency to point directly at the tag in git rather than the library . This fixed the issue for the build. The joys of open source and dependencies on other libraries . Will get commits up this evening to sort it out for others. Not my code!