- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I am using ModusToolBox library manager to add the aws iot sdk but when I compile I am getting an issue saying
In file included from ../mtb_shared/aws-iot-device-sdk-embedded-C/202011.00/libraries/standard/coreHTTP/source/core_http_client.c:31:
../mtb_shared/aws-iot-device-sdk-embedded-C/202011.00/libraries/standard/coreHTTP/source/include/core_http_client.h:39:14: fatal error: core_http_config.h: No such file or directory
39 | #include "core_http_config.h"
| ^~~~~~~~~~~~~~~~~~~~
and I don't know what to do to fix it.
Solved! Go to Solution.
- Labels:
-
ModusToolbox AWS IoT SDK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
By adding - $(SEARCH_aws-iot-device-sdk-embedded-C)/libraries/standard/coreMQTT
libs/aws-iot-device-sdk-embedded-C/libraries/standard/coreMQTT, it will not include MQTT related relevant files in the compilation process, still your HTTP issue is not resolved.
You can remove this addition from the .cyignore file and use the following suggestion for error-free build-
Just add these two macros in the defines section of the makefile of your application-
HTTP_DO_NOT_USE_CUSTOM_CONFIG
MQTT_DO_NOT_USE_CUSTOM_CONFIG
Your defines will look something like this -
DEFINES=$(MBEDTLSFLAGS) CYBSP_WIFI_CAPABLE CY_RETARGET_IO_CONVERT_LF_TO_CRLF CY_RTOS_AWARE HTTP_DO_NOT_USE_CUSTOM_CONFIG MQTT_DO_NOT_USE_CUSTOM_CONFIG
Let me know if you still face issues.
Thanks
Aditi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Do you have any .cyignore file in your project folder? If yes, please attach that.
Thanks
Aditi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have fixed that problem now by doing the steps in the https-client README file by adding
$(SEARCH_aws-iot-device-sdk-embedded-C)/libraries/standard/coreMQTT
libs/aws-iot-device-sdk-embedded-C/libraries/standard/coreMQTT
but now i am getting errors in other libraries such as
../mtb_shared/clib-support/release-v1.1.0/TOOLCHAIN_GCC_ARM/cy_newlib_freertos.c:76:9: error: 'errno' undeclared (first use in this function)
76 | errno = ENOMEM;
| ^~~~~
I have attched both my .cyignore and Makefile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
By adding - $(SEARCH_aws-iot-device-sdk-embedded-C)/libraries/standard/coreMQTT
libs/aws-iot-device-sdk-embedded-C/libraries/standard/coreMQTT, it will not include MQTT related relevant files in the compilation process, still your HTTP issue is not resolved.
You can remove this addition from the .cyignore file and use the following suggestion for error-free build-
Just add these two macros in the defines section of the makefile of your application-
HTTP_DO_NOT_USE_CUSTOM_CONFIG
MQTT_DO_NOT_USE_CUSTOM_CONFIG
Your defines will look something like this -
DEFINES=$(MBEDTLSFLAGS) CYBSP_WIFI_CAPABLE CY_RETARGET_IO_CONVERT_LF_TO_CRLF CY_RTOS_AWARE HTTP_DO_NOT_USE_CUSTOM_CONFIG MQTT_DO_NOT_USE_CUSTOM_CONFIG
Let me know if you still face issues.
Thanks
Aditi