简体   繁体   中英

Unable to build Azure IOT SDKs on Raspberry Pi

I've just followed this tutorial when I tried to build the updated sample solution by entering the following:

cd ~/azure-iot-sdks/

sudo ~/azure-iot-sdks/c/build_all/linux/setup.sh   

chmod +x ~/azure-iot-sdks/c/build_all/linux/build.sh

~/azure-iot-sdks/c/build_all/linux/build.sh

I got the error shown in the following screenshots :

http://i.stack.imgur.com/I6iUN.png

I can't find anything to fix this. Any ideas what's going on?

The error message shows that it fails to find the "main" entry point, which is defined in azure-iot-sdks\\c\\serializer\\samples\\simplesample_http\\linux\\main.c file in the http sample.

Two things you can check on,

  1. Make sure you're using gcc >= 4.9 and cmake >= 3.0, I see you're correctly referencing gcc, also check on your cmake version via cmake --version command. Follow this tutorial to install cmake 3.x.
  2. When you pull the azure-iot-sdk repository, make sure you use the recursive keyword, or using git submodule update --init --recursive to make sure you pulled all the submodule codes.

I myself have found trouble building sdk using rapberry, due to limited memory resources, an alternative way you can also try is cross-compiling, you can find tutorial in here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM