You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue:
Using the SDK installed on raspi, to develop a client that interacts with the Hub. Building using cmake. This is similar to https://github.com/Azure/azure-iot-sdk-c/issues/543 Issue #543. Getting this build error:
/usr/bin/ld: ../../azure-iot-sdk-c/cmake/iothub_client/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): in function IoTHubClient_Auth_CreateFromDeviceAuth': /home/raspi2/azure/sdk-c/azure-iot-sdk-c/iothub_client/src/iothub_client_authorization.c:181: undefined reference to iothub_device_auth_create'
/usr/bin/ld: /home/raspi2/azure/sdk-c/azure-iot-sdk-c/iothub_client/src/iothub_client_authorization.c:192: undefined reference to iothub_device_auth_get_type' /usr/bin/ld: ../../azure-iot-sdk-c/cmake/iothub_client/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): in function IoTHubClient_Auth_Destroy':
/home/raspi2/azure/sdk-c/azure-iot-sdk-c/iothub_client/src/iothub_client_authorization.c:217: undefined reference to iothub_device_auth_destroy' /usr/bin/ld: ../../azure-iot-sdk-c/cmake/iothub_client/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): in function IoTHubClient_Auth_Set_xio_Certificate':
/home/raspi2/azure/sdk-c/azure-iot-sdk-c/iothub_client/src/iothub_client_authorization.c:275: undefined reference to iothub_device_auth_generate_credentials' /usr/bin/ld: ../../azure-iot-sdk-c/cmake/iothub_client/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): in function IoTHubClient_Auth_Get_x509_info':
/home/raspi2/azure/sdk-c/azure-iot-sdk-c/iothub_client/src/iothub_client_authorization.c:323: undefined reference to iothub_device_auth_generate_credentials' /usr/bin/ld: ../../azure-iot-sdk-c/cmake/iothub_client/libiothub_client_mqtt_transport.a(iothub_client_authorization.c.o): in function IoTHubClient_Auth_Get_SasToken':
/home/raspi2/azure/sdk-c/azure-iot-sdk-c/iothub_client/src/iothub_client_authorization.c:406: undefined reference to `iothub_device_auth_generate_credentials'
collect2: error: ld returned 1 exit status
gmake[2]: *** [CMakeFiles/MyClient.dir/build.make:129: MyClient] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/MyClient.dir/all] Error 2
gmake: *** [Makefile:103: all] Error 2
The list was much longer, like in #543, but was brought down to these after adding the 4 libraries that were suggested as a resolution there. This is the CMakeLists.txt, I just kept on adding dependencies that I thought were not being linked, will need to clean up as per your suggestion for resolving this issue:
SDK version used: azure-iot-sdk-c LTS_08_2024
Issue:
Using the SDK installed on raspi, to develop a client that interacts with the Hub. Building using cmake. This is similar to https://github.com/Azure/azure-iot-sdk-c/issues/543 Issue #543. Getting this build error:
The list was much longer, like in #543, but was brought down to these after adding the 4 libraries that were suggested as a resolution there. This is the CMakeLists.txt, I just kept on adding dependencies that I thought were not being linked, will need to clean up as per your suggestion for resolving this issue:
What am I missing/overlooking? Any pointers would be greatly appreciated. Thanks.
The text was updated successfully, but these errors were encountered: