From e0a96754523752548342760f2d24b95bb348acbf Mon Sep 17 00:00:00 2001 From: payton Date: Mon, 7 Jul 2025 10:57:58 +0800 Subject: [PATCH] Fixed:1.Fix emulator compilation failure issue --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a4545b3..1040b17 100644 --- a/Makefile +++ b/Makefile @@ -26,11 +26,12 @@ WARNINGS := -Wall -Wextra \ CFLAGS := -O0 -g $(WARNINGS) # Add simulator define to allow modification of source -DEFINES := -D SIMULATOR=1 -D LV_BUILD_TEST=0 +DEFINES := -D SIMULATOR=1 -D LV_BUILD_TEST=0 -D USE_SDL -DLV_CONF_INCLUDE_SIMPLE -DLV_LVGL_H_INCLUDE_SIMPLE # Include simulator inc folder first so lv_conf.h from custom UI can be used instead -INC := -I./ui/simulator/inc/ -I./ -I./lvgl/ -LDLIBS := -lSDL2 -lm +INC := -I./simulator/inc/ -I./lvgl/ -I ./lvgl/src/extra/libs/sjpg/ -I./lv_drivers/ -I./inc +INC += -I./freetype/inc/ -I./freetype/inc/freetype/ +LDLIBS := -lSDL2 -lpthread -lm -lfreetype BIN := $(BIN_DIR)/demo COMPILE = $(CC) $(CFLAGS) $(INC) $(DEFINES)