Open iho77 opened 6 years ago
So, to compile this SDK as component of esp-idf you have to:
ARDUINO_CORE_LIBS := $(patsubst $(COMPONENT_PATH)/%,%,$(sort $(dir $(wildcard $(COMPONENT_PATH)/libraries///))))
it works
So, to compile this SDK as component of esp-idf you have to:
Edit Makefile on blank esp-idf project (may use hello-world)
PROJECT_NAME := esp32_arduino_hello_world_template COMPONENT_ADD_INCLUDEDIRS := components/include EXTRA_COMPONENT_DIRS := $(IDF_PATH)/../heltec include $(IDF_PATH)/make/project.mk
Edit component.mk in ~/heltec/esp32-arduino
ARDUINO_CORE_LIBS := $(patsubst $(COMPONENT_PATH)/%,%,$(sort $(dir $(wildcard $(COMPONENT_PATH)/libraries///))))
COMPONENT_ADD_INCLUDEDIRS := cores/esp32 variants/wifi_lora_32 $(ARDUINO_CORE_LIBS) COMPONENT_PRIV_INCLUDEDIRS := cores/esp32/libb64 tools/sdk/include/mdns tools/sdk/include/fatfs tools/sdk/include/lwip COMPONENT_SRCDIRS := cores/esp32/libb64 cores/esp32 variants/wifi_lora_32 $(ARDUINO_CORE_LIBS) CXXFLAGS += -fno-rtti CPPFLAGS += -Wno-error=switch -Wno-error=maybe-uninitialized -Wno-error=return-type
it works