0

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 :

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

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

Fatima
  • 1
  • Please make sure that the titles to your questions are about your question. No *please help me* stuff. The point of SO is to help. – Callum Linington Aug 04 '16 at 08:19
  • I'm always having trouble building the sdk using raspberry pi, have you tried cross-compiling? https://github.com/Azure/azure-iot-sdks/blob/master/c/doc/SDK_cross_compile_example.md – Jackie Aug 24 '16 at 07:28

1 Answers1

0

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.

Community
  • 1
  • 1
Jackie
  • 2,032
  • 1
  • 12
  • 14