2016-01-11 61 views
0

我想一个英特尔爱迪生IOT中心Git是英特尔爱迪生

https://github.com/Azure/azure-iot-sdks/blob/26e81a7a3358815bfee9553678f546ffe6f3d3ce/c/doc/run_sample_on_intel_edison.md

它说连接,以在Azure文档

导航运行一个简单的C样品:〜/cmake的/ iothub_client /样品/ iothub_client_sample_amqp

./iothub_client_samples_iothub_client_sample_amqp

,但这个文件夹有没有运行

,我发现它在蔚蓝-IOT-的SDK/C/iothub_client /样品/ iothub_client_sample_amqp

.c文件但它说我没有权限,我用gcc命令尝试它,但它说:

gcc ./iothub_client_sample_amqp.cthub_client/samples/iothub_client_sample_amqp# 
./iothub_client_sample_amqp.c:7:27: fatal error: iothub_client.h: No such file or directory 
#include "iothub_client.h" 
        ^
compilation terminated. 
cd \@pe3iot:~/azure-iot-sdks/c/iothub_client/samples/iothub_client_sample_amqp# 

但在cmaker文件夹中,我已经iothub客户端文件夹,我已经运行

$ ./build_proton.sh

$运行./build.sh

成功复制libqpid,proton.so.2到LIB

我cmaker

根@ pe3iot:〜#cmake的--version 的CMake版本3.4.0

GCC:

根@ pe3iot:〜#GCC --version 海合会(GCC)4.9.1

试图更新说明过在

https://github.com/Azure/azure-iot-sdks/pull/212/files?short_path=af74a54

化妆所有文件更改它说,但我无法运行“make -f makefile.linux”错误

make:makefile.linux:没有这样的文件或目录 make:***没有规则使目标'makefile.linux'。停止。

由于提前

+1

'GCC ./iothub_client_sample_amqp.cthub_client/samples/iothub_client_sample_amqp# ./iothub_client_sample_amqp.c:7:27:致命错误:iothub_client.h:没有这样的文件或目录 的#include “iothub_client.h”' 也许,错误在这里,因为gcc正在寻找iothub_client.h在你当前的文件夹中,但不是它正在编译的文件所在的文件夹。尝试先导航到包含c文件的文件夹,然后进行编译。 –

回答

0

我遇到类似的问题,并报告了Azure的IOT-SDK的Github上https://github.com/Azure/azure-iot-sdks/issues/353问题。

这样做的原因:

Intel Edison has older Git version installed which doesn't support submodules. Our C SDK uses submodules for each protocol implementation and because of those submodules were not exist the build script failed

解决方案,这是交叉编译的Linux操作系统,您可以参考上https://github.com/Azure/azure-iot-sdks/issues/435 ashokkhurana的解决方案Azure的物联网SDK。

希望这会有所帮助。