w8jcik commented on a change in pull request #334:
URL: 
https://github.com/apache/incubator-nuttx-apps/pull/334#discussion_r455694018



##########
File path: examples/lvgldemo/Makefile
##########
@@ -86,11 +86,18 @@ endif
 
 MAINSRC = lvgldemo.c
 
-LVGL_SRC_DIR=$(APPDIR)/graphics/lvgl/lvgl
-LVGL_DIR=$(APPDIR)/graphics/lvgl
+# Upstream `lv_examples/lv_examples.h` includes LVGL
+# in following way `#include "../lvgl/lvgl.h"`, for no clean reason.
+#
+# The way that we export LVGL offers `#include <lvgl/lvgl.h>`, so it won't 
work.
+# Solution below is not pretty but it fixes `lv_examples` without patching.
+#
+# Remove this fix when you will get better idea.
+
+LVGL_EXAMPLE_INCLUDE_FIX=$(APPDIR)/graphics/lvgl/lvgl

Review comment:
       For this to work I added one more export in LVGL. Now LVGL can be 
included both with `lvgl/lvgl.h` and `lvgl.h`.
   
   `CXXFLAGS` as well, right?
   
   Done.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to