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,
cmake --version
command. Follow this tutorial to install cmake 3.x. 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.