[英]Build the Azure IoT sdk for arduino yun on ubuntu x86
I am trying to build Azure IoT sdk for arduino yun on ubuntu 14.04 and getting the following error while running .\\build.sh script. 我正在尝试在ubuntu 14.04上为arduino yun构建Azure IoT SDK,并在运行。\\ build.sh脚本时遇到以下错误。
azure-c-shared-utility/c/adapters/socketio_berkeley.c: In function 'socketio_open': azure-c-shared-utility/c/adapters/socketio_berkeley.c:228:24: error: variable 'addrHint' has initializer but incomplete type azure-c-shared-utility / c / adapters / socketio_berkeley.c:在函数'socketio_open'中:azure-c-shared-utility / c / adapters / socketio_berkeley.c:228:24:错误:变量'addrHint'具有初始化程序但类型不完整
I am following the instructions list here . 我在这里按照说明列表进行操作。 Does anyone know how to get around this error and get successful build? 有谁知道如何解决这个错误并获得成功的构建?
I guess this shouldn't be a problem but want to mention that I am using Ubuntu installed in virtualbox on windows machine. 我想这应该不成问题,但是我想提一下,我使用的是Windows计算机上virtualbox中安装的Ubuntu。
build succeeded after upgrading gcc to 4.9 and cmake to 3.2. 将gcc升级到4.9,并将cmake升级到3.2之后,构建成功。 Found instruction at the following location. 在以下位置找到了说明。
https://github.com/Azure/azure-iot-sdks/blob/master/c/doc/devbox_setup.md#set-up-a-linux-development-environment https://github.com/Azure/azure-iot-sdks/blob/master/c/doc/devbox_setup.md#set-up-a-linux-development-environment
How do I use the latest gcc 4.9 on Ubuntu 14.04 我如何在Ubuntu 14.04上使用最新的gcc 4.9
How to install cmake 3.2 on ubuntu 14.04 如何在Ubuntu 14.04上安装cmake 3.2
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.