Failed to include Portenta_Video.h
crespum opened this issue · 1 comments
crespum commented
I'm getting this error while using the LVGL library and the Arduino Portenta:
arm-none-eabi-g++ -o .pio/build/portenta_h7_m7/libd34/Portenta_lvgl/porting.cpp.o -c -Wvla -fno-rtti -std=gnu++14 -DAPPLICATION_ADDR=0x8040000 -DAPPLICATION_RAM_ADDR=0x24000000 -DAPPLICATION_RAM_SIZE=0x80000 -DAPPLICATION_SIZE=0xc0000 -DMBED_RAM1_SIZE=0x80000 -DMBED_RAM1_START=0x24000000 -DMBED_RAM_SIZE=0x80000 -DMBED_RAM_START=0x24000000 -DMBED_ROM_SIZE=0x100000 -DMBED_ROM_START=0x8000000 -DMBED_TRAP_ERRORS_ENABLED=1 -Os -Wall -Wextra -Wno-missing-field-initializers -Wno-unused-parameter -c -fdata-sections -ffunction-sections -fmessage-length=0 -fomit-frame-pointer -funsigned-char -mcpu=cortex-m7 -mfloat-abi=softfp -mfpu=fpv5-d16 -mthumb -iprefix/home/xxxx/.platformio/packages/framework-arduino-mbed/cores/arduino @/home/xxxx/.platformio/packages/framework-arduino-mbed/variants/PORTENTA_H7_M7/includes.txt -nostdlib -DPLATFORMIO=50204 -DARDUINO_PORTENTA_H7_M7 -DARM_MATH_CM7 -DCM4_BOOT_BY_APPLICATION -D__CMSIS_RTOS -DCOMPONENT_4343W_FS=1 -DCOMPONENT_CYW43XXX=1 -DCOMPONENT_FLASHIAP=1 -DCOMPONENT_QSPIF=1 -DCOMPONENT_WHD=1 -DCORE_CM7 -D__CORTEX_M7 -DCYW43XXX_UNBUFFERED_UART -DDEVICE_ANALOGIN=1 -DDEVICE_ANALOGOUT=1 -DDEVICE_CAN=1 -DDEVICE_CRC=1 -DDEVICE_EMAC=1 -DDEVICE_FLASH=1 -DDEVICE_I2C=1 -DDEVICE_I2C_ASYNCH=1 -DDEVICE_I2CSLAVE=1 -DDEVICE_INTERRUPTIN=1 -DDEVICE_LPTICKER=1 -DDEVICE_MPU=1 -DDEVICE_PORTIN=1 -DDEVICE_PORTINOUT=1 -DDEVICE_PORTOUT=1 -DDEVICE_PWMOUT=1 -DDEVICE_QSPI=1 -DDEVICE_RESET_REASON=1 -DDEVICE_RTC=1 -DDEVICE_SERIAL=1 -DDEVICE_SERIAL_FC=1 -DDEVICE_SLEEP=1 -DDEVICE_SPI=1 -DDEVICE_SPI_ASYNCH=1 -DDEVICE_SPISLAVE=1 -DDEVICE_STDIO_MESSAGES=1 -DDEVICE_TRNG=1 -DDEVICE_USBDEVICE=1 -DDEVICE_USTICKER=1 -DDEVICE_WATCHDOG=1 -DEXTRA_IDLE_STACK_REQUIRED -DFEATURE_BLE=1 -D__FPU_PRESENT=1 -D__MBED__=1 -DMBED_BUILD_TIMESTAMP=1637229606.4216297 -D__MBED_CMSIS_RTOS_CM -DMBED_TICKLESS -DMBEDTLS_FS_IO -DMBEDTLS_SHA1_C -DMETAL_INTERNAL -DMETAL_MAX_DEVICE_REGIONS=2 -DNO_ATOMIC_64_SUPPORT -DQSPI_NO_SAMPLE_SHIFT -DRPMSG_BUFFER_SIZE=100 -DSTM32H747xx -DTARGET_CORDIO -DTARGET_CORTEX -DTARGET_CORTEX_M -DTARGET_LIKE_CORTEX_M7 -DTARGET_LIKE_MBED -DTARGET_M7 -DTARGET_MCU_STM32 -DTARGET_MCU_STM32H7 -DTARGET_MCU_STM32H747xI -DTARGET_NAME=PORTENTA_H7_M7 -DTARGET_PORTENTA_H7 -DTARGET_PORTENTA_H7_M7 -DTARGET_RELEASE -DTARGET_RTOS_M4_M7 -DTARGET_STM -DTARGET_STM32H7 -DTARGET_STM32H747xI -DTARGET_STM32H747xI_CM7 -DTOOLCHAIN_GCC -DTOOLCHAIN_GCC_ARM -DTRANSACTION_QUEUE_SIZE_SPI=2 -DUSB_DYNAMIC_CONFIGURATION -DUSE_FULL_LL_DRIVER -DUSE_HAL_DRIVER -DVIRTIO_MASTER_ONLY -DMBED_NO_GLOBAL_USING_DIRECTIVE=1 -DUSE_ARDUINO_PINOUT -DARDUINO=10810 -DARDUINO_ARCH_MBED -DCM4_BINARY_START=0x08100000 -I.pio/libdeps/portenta_h7_m7/lvgl -I.pio/libdeps/portenta_h7_m7/lvgl/src -I/home/xxxx/.platformio/packages/framework-arduino-mbed/libraries/Portenta_lvgl/src -I/home/xxxx/.platformio/packages/framework-arduino-mbed/cores/arduino -I/home/xxxx/.platformio/packages/framework-arduino-mbed/cores/arduino/api/deprecated -I/home/xxxx/.platformio/packages/framework-arduino-mbed/cores/arduino/api/deprecated-avr-comp -I/home/xxxx/.platformio/packages/framework-arduino-mbed/variants/PORTENTA_H7_M7 /home/xxxx/.platformio/packages/framework-arduino-mbed/libraries/Portenta_lvgl/src/porting.cpp
/home/xxxx/.platformio/packages/framework-arduino-mbed/libraries/Portenta_lvgl/src/porting.cpp:6:10: fatal error: Portenta_Video.h: No such file or directory
#include "Portenta_Video.h"
^~~~~~~~~~~~~~~~~~
compilation terminated.
*** [.pio/build/portenta_h7_m7/libd34/Portenta_lvgl/porting.cpp.o] Error 1
===================================================================================================== [FAILED] Took 11.22 seconds =====================================================================================================
Apart from including the LVGL library, the code that fails is just:
#include "Portenta_LittleVGL.h"
As a workaround I add an include right before that:
#include "anx7625.h" // to fix pio "fatal error: Portenta_Video.h: No such file or directory"
#include "Portenta_LittleVGL.h"
Can someone help me fix this issue?
valeros commented
Hi @crespum ! In such cases when LDF fails to resolve dependencies, I'd recommend you to use more advanced LDF modes or explicitly specify missing libraries using the lib_deps option, for example
[env:portenta_h7_m7]
platform = ststm32
framework = arduino
board = portenta_h7_m7
lib_ldf_mode = deep
lib_deps =
...
Portenta_Video