I’m just experimenting with PlatformIO for Arduino development and I’ve come totally unstuck quite early on.
I’m using the LVGL library. So, I thought, OK, I’ll add it in the PIO Library manager - all seems to work fine. It says it’s installing 8.0.0, which is what I want - but my software doesn’t compile at all. Looking at it, I’m not sure what version Platform IO has installed - the files don’t seem to match any version on GitHub. They’re the right library, just very strange versions
Eg, the 8.0.0 src/extras/layout/lv_grid.h file on Github (lvgl/lv_grid.h at v8.0.0 · lvgl/lvgl · GitHub) is 7.03kB, has lots of defines, typedefs, globals etc - eg starts like
/**
* @file lv_grid.h
*
*/
#ifndef LV_GRID_H
#define LV_GRID_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../../../core/lv_obj.h"
#if LV_USE_GRID
/*********************
* DEFINES
*********************/
/**
* Can be used track size to make the track fill the free space.
* @param x how much space to take proportionally to other FR tracks
* @return a special track size
*/
#define LV_GRID_FR(x) (LV_COORD_MAX - 100 + x)
The version in Platform IO is 3387 bytes (nothing like 7.03kB), is missing lots of the necessary defines, typedefs, globals, etc and starts like:
/**
* @file lv_grid.h
*
*/
#ifndef LV_GRID_H
#define LV_GRID_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../../../core/lv_obj.h"
/*********************
* DEFINES
*********************/
#if LV_USE_GRID
What’s going on? If the PIO library registry didn’t have LVGL, or if it didn’t have version 8.0.0, I could understand it, but it says it’s got the right version, but the file contents are totally different!
It’s not exactly filling me with confidence