Open tsugunao opened 1 year ago
When I added two lines in samples/kvs-esp32/components/kvs-embedded-c/CMakeLists.txt, the link error is gone.
set(COMPONENT_SRCS
${KVS_EMBEDDED_C_SRC}/source/app/kvsapp.c
${KVS_EMBEDDED_C_SRC}/source/codec/nalu.c
${KVS_EMBEDDED_C_SRC}/source/codec/sps_decode.c
${KVS_EMBEDDED_C_SRC}/source/codec/sps_decode.h
${KVS_EMBEDDED_C_SRC}/source/misc/json_helper.c
${KVS_EMBEDDED_C_SRC}/source/misc/json_helper.h
${KVS_EMBEDDED_C_SRC}/source/mkv/mkv_generator.c
${KVS_EMBEDDED_C_SRC}/source/net/http_helper.c
${KVS_EMBEDDED_C_SRC}/source/net/http_helper.h
+ ${KVS_EMBEDDED_C_SRC}/source/net/http_parser_adapter_llhttp.c
+ ${KVS_EMBEDDED_C_SRC}/source/net/http_parser_adapter.h
${KVS_EMBEDDED_C_SRC}/source/net/netio.c
${KVS_EMBEDDED_C_SRC}/source/net/netio.h
${KVS_EMBEDDED_C_SRC}/source/os/allocator.c
This is a question A clear and concise description of what the question is. From this page, I tried to build sample application for esp wrover kit. When I tired to build the project by doing
I encountered the link error, which says undefined reference to `HttpParser_parseHttpResponse' . I have tried ESPIDF environment for ver 4.4 and ver 5.0.2, both are same results. Is there any configuration or prerequisite to successfully build this sample? I have used the CMake option USE_LLHTTP for HTTP parser adapter.
Here is the build log. Please let me know how can I build this sample.