Closed amoldixit-Git closed 6 years ago
@amoldixit-Git - what are you trying to build here?
azure-iot-gateway-sdk
code is for our Edge gateway v1. If you're building an Edge device (e.g. one that typically sits between devices on an internal network and the broader Internet) you should really be on V2 (https://github.com/azure/azure-iotedge). I'll forward this issue onto Edge team in meantime. If you use V2 Edge, even though we open source it there's considerably easier packaging technologies to get up and running with it.Hello @amoldixit-Git,
The Edge V1 code relies on submodules to pull in its dependencies. That error looks like the submodules did not get initialized. Running git submodule update --init --recursive
will probably clear up this error. If you are still having trouble, please raise an issue here: https://github.com/Azure/iot-edge-v1
What @jspaith wrote applies as well. the V1 Edge is an SDK intended for users creating modular, extensible gateway software, but unless you are on a very constrained system, you may want to consider looking at the V2 gateway.
Thanks
@amoldixit-Git, thank you for your contribution to our open-sourced project! Please help us improve by filling out this 2-minute customer satisfaction survey
Ubuntu 16.04 azure-iot-gateway-sdk 1.0.3
While building azure-iot-gateway-sdk on Ubuntu 16.04 using cmake, got error for uamqp.
-- CMake Install Prefix is /usr/local -- AIG architecture: x86_64 -- NANOMSG LIBRARIES: nanomsg -- NANOMSG CFLAGS: -I/usr/local/include -- NANOMSG LOCATION: /usr/local/lib/libnanomsg.so -- uamqp not found... -- Building uamqp... -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- AMQP Target architecture: x86_64 -- Configuring done -- Generating done -- Build files have been written to: /home/..../azure-iot-gateway-sdk/deps/uamqp/build -- Installing uamqp. Please wait... CMake Error at gatewayFunctions.cmake:170 (message): Error installing uamqp: 2 Call Stack (most recent call first): modules/dependencies.cmake:9 (findAndInstall) modules/CMakeLists.txt:6 (include)
After digging deep for that error, found that "LogError" function is called multiple times in azure-iot-gateway-sdk\deps\uamqp\src\cbs.c & header_detect_io.c After including "azure_c_shared_utility/xlogging.h" in both the file that error was gone but now another error came up. Here is the error messages observed in error.txt /home/ubuntu/Projects/VanillaCopy/azure-iot-gateway-sdk/deps/uamqp/samples/eh_sender_with_sas_token_sample/main.c: In function ‘main’: /home/ubuntu/Projects/VanillaCopy/azure-iot-gateway-sdk/deps/uamqp/samples/eh_sender_with_sas_token_sample/main.c:133:25: error: implicit declaration of function ‘Base64_Encode’ [-Werror=implicit-function-declaration] sas_key_value = Base64_Encode(buffer); ^ /home/ubuntu/Projects/VanillaCopy/azure-iot-gateway-sdk/deps/uamqp/samples/eh_sender_with_sas_token_sample/main.c:133:23: error: assignment makes pointer from integer without a cast [-Werror=int-conversion] sas_key_value = Base64_Encode(buffer); ^ cc1: all warnings being treated as errors make[2]: [samples/eh_sender_with_sas_token_sample/CMakeFiles/eh_sender_with_sas_token_sample.dir/main.c.o] Error 1 make[1]: [samples/eh_sender_with_sas_token_sample/CMakeFiles/eh_sender_with_sas_token_sample.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... make: [all] Error 2
Is the 'azure-iot-gateway-sdk' code useful? Can you please confirm if this is an issue or I am missing something?