Azure / iot-edge-v1

Azure IoT Edge
http://azure.github.io/iot-edge/
Other
524 stars 258 forks source link

[V1] Compilation error on last Ubuntu 18.04 LTS: iot-sdk-c file azure_uamqp_c/amqp_definitions_fields.h not found #579

Open MaxKhlupnov opened 6 years ago

MaxKhlupnov commented 6 years ago

CMake Error at gatewayFunctions.cmake:172 (message): **ERROR installing azure_iot_sdks. See /home/makhlu/projects/iot-edge/v1/deps/iot-sdk-c/build/error.txt and /home/makhlu/projects/iot-edge/v1/deps/iot-sdk-c/build/output.txt.

Call Stack (most recent call first): modules/dependencies.cmake:39 (findAndInstall) modules/CMakeLists.txt:6 (include)

From error.txt makhlu@iotedge:~/projects/iot-edge/v1$ cat /home/makhlu/projects/iot-edge/v1/deps/iot-sdk-c/build/error.txt In file included from /home/makhlu/projects/iot-edge/v1/deps/iot-sdk-c/iothub_service_client/src/iothub_messaging.c:13:0: /usr/local/include/azure_uamqp_c/connection.h:13:10: fatal error: azure_uamqp_c/amqp_definitions_fields.h: file doesn't not exist

include "azure_uamqp_c/amqp_definitions_fields.h"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. make[2]: [iothub_service_client/CMakeFiles/iothub_service_client.dir/src/iothub_messaging.c.o] Error 1 make[1]: [iothub_service_client/CMakeFiles/iothub_service_client.dir/all] Error 2

darobs commented 6 years ago

Hello @MaxKhlupnov

"azure_uamqp_c" is a submodule in the iot-sdk-c submodule. It looks like a couple of potential problems:

darobs commented 6 years ago

I just updated one of my VMs to 18.04 and was able to build from a fresh clone of the repo.