linguini1 opened a new issue, #3208:
URL: https://github.com/apache/nuttx-apps/issues/3208
### Description / Steps to reproduce the issue
When compiling the LVGL demo, I receive these compilation errors:
```console
$ make -j
Create version.h
LN: platform/board to /home/linguini/coding/nuttx-space/apps/platform/dummy
Register: fb
Register: nsh
Register: sh
Register: ostest
Register: lvgldemo
Register: getprime
Register: leds
Register: dd
Register: hello
CC: driver/fs_finddriver.c lvgldemo.c: In function 'lvgldemo_main':
lvgldemo.c:111:3: error: unknown type name 'lv_nuttx_dsc_t'; did you mean
'lv_img_dsc_t'?
111 | lv_nuttx_dsc_t info;
| ^~~~~~~~~~~~~~
| lv_img_dsc_t
lvgldemo.c:112:3: error: unknown type name 'lv_nuttx_result_t'; did you mean
'lv_result_t'?
112 | lv_nuttx_result_t result;
| ^~~~~~~~~~~~~~~~~
| lv_result_t
CC: mmap/fs_munmap.c lvgldemo.c:134:3: error: implicit declaration of
function 'lv_nuttx_dsc_init'; did you mean 'lv_mutex_init'?
[-Wimplicit-function-declaration]
134 | lv_nuttx_dsc_init(&info);
| ^~~~~~~~~~~~~~~~~
| lv_mutex_init
CC: pthread/pthread_setcanceltype.c lvgldemo.c:144:3: error: implicit
declaration of function 'lv_nuttx_init'; did you mean 'lv_mutex_init'?
[-Wimplicit-function-declaration]
144 | lv_nuttx_init(&info, &result);
| ^~~~~~~~~~~~~
| lv_mutex_init
lvgldemo.c:146:13: error: request for member 'disp' in something not a
structure or union
146 | if (result.disp == NULL)
| ^
CC: mmap/fs_mmisc.c lvgldemo.c:177:3: error: implicit declaration of
function 'lv_nuttx_deinit'; did you mean 'lv_mutex_init'?
[-Wimplicit-function-declaration]
177 | lv_nuttx_deinit(&result);
| ^~~~~~~~~~~~~~~
| lv_mutex_init
make[2]: *** [/home/linguini/coding/nuttx-space/apps/Application.mk:330:
lvgldemo.c.home.linguini.coding.nuttx-space.apps.examples.lvgldemo.o] Error 1
make[1]: *** [Makefile:54:
/home/linguini/coding/nuttx-space/apps/examples/lvgldemo_all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [tools/LibTargets.mk:248:
/home/linguini/coding/nuttx-space/apps/libapps.a] Error 2
```
I have followed these steps:
Enable “Application Configuration > Graphics Support > Light and Versatile
Graphics Library (LVGL)”
Enable “LVGL > Enable Framebuffer Port”
Browse into “LVGL > LVGL Configuration”
In “Color Settings”
Set Color Depth to “32: ARGB8888”
In “Memory settings”
Set Size of Memory to 64
In “HAL Settings”
Set Default Dots Per Inch to 250
In “Demos”
Enable “Show Some Widgets”
Enable “Application Configuration > Examples > LVGL Demo”
I encountered the issue while trying to test the LVGL demos on the Raspberry
Pi 4B.
### On which OS does this issue occur?
[OS: Linux]
### What is the version of your OS?
Arch Linux
### NuttX Version
master
### Issue Architecture
[Arch: arm64]
### Issue Area
[Area: Graphics]
### Host information
file sysinfo.h not exists
NuttX CFLAGS:
-D_LDBL_EQ_DBL
-fno-common
-Wall
-Wstrict-prototypes
-Wshadow
-Wundef
-Werror
-Wno-attributes
-Wno-unknown-pragmas
-Wno-psabi
-Os
-fno-strict-aliasing
-fomit-frame-pointer
-ffunction-sections
-fdata-sections \-g\
-march=armv8-a
-isystem /home/linguini/coding/nuttx-space/nuttx/include
-D__NuttX__
-pipe
NuttX CXXFLAGS:
-D_LDBL_EQ_DBL
-fno-common
-Wall
-Wshadow
-Wundef
-Wno-attributes
-Wno-unknown-pragmas
-nostdinc++
-Wno-psabi
-std=\gnu++17\
-fno-exceptions
-fcheck-new
-fno-rtti
-Os
-fno-strict-aliasing
-fomit-frame-pointer
-ffunction-sections
-fdata-sections \-g\
-march=armv8-a
-isystem /home/linguini/coding/nuttx-space/nuttx/include/cxx
-isystem /home/linguini/coding/nuttx-space/nuttx/include
-D__NuttX__
-pipe
NuttX LDFLAGS:
-nostdlib
--gc-sections
--cref
-Map=/home/linguini/coding/nuttx-space/nuttx/nuttx.map
--no-warn-rwx-segments
--print-memory-usage
NuttX configuration options:
CONFIG_EXPERIMENTAL=y
Host system OS:
CONFIG_HOST_LINUX=y
Host system PATH:
CONFIG_APPS_DIR=\
### Verification
- [x] I have verified before submitting the report.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]