Description
I have an arduino sketch withthe following file structure
documents/arduino/lvgl/assets
documents/arduino/lvgl/build
documents/arduino/lvgl/application.ino
documents/arduino/lvgl/ESP_Panel_Board_Custom.h|
documents/arduino/lvgl/ESP_Panel_Board_Supported.h
documents/arduino/lvgl/ESP_Panel_Conf.h
documents/arduino/lvgl/lv_conf.h
documents/arduino/lvgl/my.h
In assets are my conterted images e.g. camera_button_120.c
in application.ino i have incuded
#include <lvgl.h>
#include <Arduino.h>
#include <ESP_Panel_Library.h>
#include <lvgl_port_v8.h>
#include “my.h”
and in my.h ihve declared the images
LV_IMG_DECLARE( camera_button_120);
The problem I have is when I compile I get the error
…(.literal._Z22create_settings_screenv+0x10): undefined reference to `camera_button_120’
How do I tell the compiler to okk in the assets folder or where should i put the images
Note The image header is
#ifdef __has_include
#if __has_include(“lvgl.h”)
#ifndef LV_LVGL_H_INCLUDE_SIMPLE
#define LV_LVGL_H_INCLUDE_SIMPLE
#endif
#endif
#endif
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
#include “lvgl.h”
#else
#include “lvgl/lvgl.h”
#endif
#ifndef LV_ATTRIBUTE_MEM_ALIGN
#define LV_ATTRIBUTE_MEM_ALIGN
#endif
#ifndef LV_ATTRIBUTE_IMG_DRIVE_BUTTON_120
#define LV_ATTRIBUTE_IMG_DRIVE_BUTTON_120
#endif
Thank you for your help