Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

[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 this issue Apr 12, 2018 · 2 comments

Comments

@MaxKhlupnov
Copy link
Contributor

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
Copy link
Contributor

darobs commented May 1, 2018

Hello @MaxKhlupnov

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

  • the submodules have been moved around by a few projects, and a git submodule update --init --recursive will fix that.
  • the installed-dependencies have been removed or moved, and we need to rebuild them. You can try the --rebuild-deps option in build.sh.
  • there's something new with 18.04 we haven't anticipated. Time to upgrade one of my VMs.
@darobs
Copy link
Contributor

darobs commented May 2, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants