Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile the sources #99

Open
DC1KW opened this issue Apr 24, 2022 · 0 comments
Open

Can't compile the sources #99

DC1KW opened this issue Apr 24, 2022 · 0 comments

Comments

@DC1KW
Copy link

DC1KW commented Apr 24, 2022

I have tried to build your great software. But when I compile I receive a lot of errorrs compiling "Adafruit_SPIDevice.cpp":

[{
	"resource": "/d:/Ingmar/Desktop/LORA APRS/TTGO-T-Beam-LoRa-APRS/.pio/libdeps/ttgo-t-beam-v1.0/Adafruit BusIO/Adafruit_SPIDevice.cpp",
	"owner": "cpp",
	"severity": 8,
	"message": "invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]",
	"startLineNumber": 310,
	"startColumn": 61,
	"endLineNumber": 310,
	"endColumn": 61
},{
	"resource": "/d:/Ingmar/Desktop/LORA APRS/TTGO-T-Beam-LoRa-APRS/.pio/libdeps/ttgo-t-beam-v1.0/Adafruit BusIO/Adafruit_SPIDevice.cpp",
	"owner": "cpp",
	"severity": 8,
	"message": "invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]",
	"startLineNumber": 313,
	"startColumn": 47,
	"endLineNumber": 313,
	"endColumn": 47
},{
	"resource": "/d:/Ingmar/Desktop/LORA APRS/TTGO-T-Beam-LoRa-APRS/.pio/libdeps/ttgo-t-beam-v1.0/Adafruit BusIO/Adafruit_SPIDevice.cpp",
	"owner": "cpp",
	"severity": 8,
	"message": "invalid conversion from 'const uint8_t* {aka const unsigned char*}' to 'uint8_t* {aka unsigned char*}' [-fpermissive]",
	"startLineNumber": 418,
	"startColumn": 59,
	"endLineNumber": 418,
	"endColumn": 59
}] 

The reason is that the project is not compatible with current Adafruit_BusIO 1.11.3. You can solve the problem by inserting the following in your "platformio.ini" under your board :

lib_deps = adafruit/Adafruit [email protected]

Or you can:

  • search on the PIO home under "Libraries" for "Adafruit BusIO"
  • than leftclick on "Adafruit BusIO "
  • select version 1.11.2
  • and final click on "Add to Project"

See the image below:

Change_Sparkfun_VErsion_LI

vy 73, DC1KW (Ingmar)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant