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
{{ message }}
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
SDK version used: - Pulled from Git Hub Master branch
Description of the issue: -
Hello,
I am trying to use IoT Edge Gateway source code. I have following differences with respect to IoT C SDK if downloaded independently from master branch,
The IoT C SDK which gets downloaded along with IoT Edge is not from the master branch.
Folders, umqtt and uamqp are outside \iot-edge-v1\v1\deps while they are brought inside \azure-iot-sdk-c folder
In IoT edge package, if I want to change code inside \iot-edge-v1\v1\deps\iot-sdk-c, I can build using option ./tools/build.sh --rebuild-deps. However, it is not clear how to pass compiler options like use_prov_client:BOOL=ON -Dhsm_custom_lib= to iot-sdk-c,
I have implemented custom HSM module and made it work on C IoT SDK. But now I wanted to upgrade to IoT Edge SDK. However I am not able to do provisioning due to previous point.
I tried to enable the flag by hard coding it in CMakefile. When the compilation commenced, it failed. After investigation it was found that utpm folder is emplty.
Console log of the issue:
CMake Error at provisioning_client/deps/CMakeLists.txt:76 (add_subdirectory):
The source directory
CMake Error: File /home/jeevan/edge/iot-edge/v1/deps/iot-sdk-c/provisioning_client/configs/azure_iot_sdksConfig.cmake does not exist.
CMake Error at provisioning_client/CMakeLists.txt:289 (configure_file):
configure_file Problem configuring file
-- Configuring incomplete, errors occurred!
See also "/home/jeevan/edge/iot-edge/v1/deps/iot-sdk-c/build/CMakeFiles/CMakeOutput.log".
CMake Error at gatewayFunctions.cmake:159 (message):
Error running cmake for azure_iot_sdks: 1
Call Stack (most recent call first):
modules/dependencies.cmake:39 (findAndInstall)
modules/CMakeLists.txt:6 (include)
-- Configuring incomplete, errors occurred!
See also "/home/jeevan/edge/iot-edge/v1/build/CMakeFiles/CMakeOutput.log".
Please guide me in enabling provisioning client and integrating custom HSM module in IoT Edge SDK. Also I want latest IoT C SDK to be part of IoT Edge SDK. I have not tried and I doubt whether mere copying of IoT SDK code to deps/ folder would work.
The text was updated successfully, but these errors were encountered:
IoT Edge v1 currently takes a dependency on an older version of the C SDK. We'd like to upgrade it (not to master, but to the LTS release), however there were some breaking changes in the SDK that make that difficult. And because most of our effort has been focused on the current generation of IoT Edge (v2, at https://github.com/Azure/iotedge), we don't have a timeline right now for upgrading our SDK dependency in v1.
@jeevannagvekar Are you able to use IoT Edge v2? It has better support for HSMs...
OS and version used: Ubuntu 18.04.1 LTS
SDK version used: - Pulled from Git Hub Master branch
Description of the issue: -
Hello,
I am trying to use IoT Edge Gateway source code. I have following differences with respect to IoT C SDK if downloaded independently from master branch,
The IoT C SDK which gets downloaded along with IoT Edge is not from the master branch.
Folders, umqtt and uamqp are outside \iot-edge-v1\v1\deps while they are brought inside \azure-iot-sdk-c folder
In IoT edge package, if I want to change code inside \iot-edge-v1\v1\deps\iot-sdk-c, I can build using option ./tools/build.sh --rebuild-deps. However, it is not clear how to pass compiler options like use_prov_client:BOOL=ON -Dhsm_custom_lib= to iot-sdk-c,
I have implemented custom HSM module and made it work on C IoT SDK. But now I wanted to upgrade to IoT Edge SDK. However I am not able to do provisioning due to previous point.
I tried to enable the flag by hard coding it in CMakefile. When the compilation commenced, it failed. After investigation it was found that utpm folder is emplty.
CMake
Error at provisioning_client/deps/CMakeLists.txt:76 (add_subdirectory):The source directory
does not contain a CMakeLists.txt file.
CMake Error: File /home/jeevan/edge/iot-edge/v1/deps/iot-sdk-c/provisioning_client/configs/azure_iot_sdksConfig.cmake does not exist.
CMake Error at provisioning_client/CMakeLists.txt:289 (configure_file):
configure_file Problem configuring file
-- Configuring incomplete, errors occurred!
See also "/home/jeevan/edge/iot-edge/v1/deps/iot-sdk-c/build/CMakeFiles/CMakeOutput.log".
CMake Error at gatewayFunctions.cmake:159 (message):
Error running cmake for azure_iot_sdks: 1
Call Stack (most recent call first):
modules/dependencies.cmake:39 (findAndInstall)
modules/CMakeLists.txt:6 (include)
-- Configuring incomplete, errors occurred!
See also
"/home/jeevan/edge/iot-edge/v1/build/CMakeFiles/CMakeOutput.log".
Please guide me in enabling provisioning client and integrating custom HSM module in IoT Edge SDK. Also I want latest IoT C SDK to be part of IoT Edge SDK. I have not tried and I doubt whether mere copying of IoT SDK code to deps/ folder would work.
The text was updated successfully, but these errors were encountered: