How to Link third party library in esp-idf
Posted: Sat Nov 11, 2017 12:13 pm
Hello,
I want to port mxml library in esp-idf where i want to use my static libmxml.a. For that i added One folder in Component , it's structure is as following:
-- component
-- libxml
-- include
(contain header file)
-- lib
(contain lib file libmxml.a)
--component.mk
COMPONENT_ADD_LDFLAGS=$(COMPONENT_PATH)/lib/libmxml.a -l$(COMPONENT_NAME)
include $(IDF_PATH)/make/component_common.mk
--main
--main.c
contain application code
-- component.mk
include $(IDF_PATH)/make/component_common.mk
Referance @ https://esp32.com/viewtopic.php?f=13&t= ... rary#p2298
after compiling this project i get following error:
/esp-idf-v2.1/components/libmxml/lib/libmxml.a: error adding symbols: File format not recognized
Am i Doing anything wrong?
Can anyone provide suggestion regarding this or guidance to port library in esp-idf?
I want to port mxml library in esp-idf where i want to use my static libmxml.a. For that i added One folder in Component , it's structure is as following:
-- component
-- libxml
-- include
(contain header file)
-- lib
(contain lib file libmxml.a)
--component.mk
COMPONENT_ADD_LDFLAGS=$(COMPONENT_PATH)/lib/libmxml.a -l$(COMPONENT_NAME)
include $(IDF_PATH)/make/component_common.mk
--main
--main.c
contain application code
-- component.mk
include $(IDF_PATH)/make/component_common.mk
Referance @ https://esp32.com/viewtopic.php?f=13&t= ... rary#p2298
after compiling this project i get following error:
/esp-idf-v2.1/components/libmxml/lib/libmxml.a: error adding symbols: File format not recognized
Am i Doing anything wrong?
Can anyone provide suggestion regarding this or guidance to port library in esp-idf?