You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Example of Cross Compiling the Azure IoT SDK for Python.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Cross Compiling Azure IoT SDK for Python Example
2
2
## Overview
3
3
4
-
The goal of this document is to describe the steps required to cross compile the Azure IoT SDK for Python in order to allow the user to use Python to send and receive messages between the device and one's Azure IoT Hub. For this example, the target device will be the [MultiTech device](https://catalog.azureiotsuite.com/details?title=MultiConnect-Conduit&source=home-page). It will describe how to install the toolchain for the this device, build the required prerequisite software and finally cross compile the Azure IoT SDK for Python library. The procedure for other Linux based target devices should be very similar.
4
+
The goal of this document is to describe the steps required to cross compile the Azure IoT SDK for Python in order to allow the user to use Python to send and receive messages between the device and one's Azure IoT Hub. For this example, the target device will be the [MultiTech device](https://catalog.azureiotsuite.com/details?title=MultiConnect-Conduit&source=home-page). It will describe how to install the compiler toolchain for the this device, build the required prerequisite software and finally cross compile the Azure IoT SDK for Python library. The procedure for other Linux based target devices should be very similar.
5
5
6
6
This process will consist of three tasks:
7
7
@@ -13,8 +13,6 @@ All commands will assume that you are starting with your current directory at yo
13
13
```
14
14
cd ~
15
15
```
16
-
Please note that, due to width restrictions of this document, some of the entered commands may wrap on the page. They should be entered as a single line on the console.
17
-
18
16
### Assumptions
19
17
20
18
You are building the software on an Ubuntu distribution. For the purposes of testing this document I used Ubuntu 16.04 64-bit.
@@ -23,14 +21,16 @@ You are a member of the sudo user group. You will only need to use sudo to insta
23
21
24
22
### Prerequisites
25
23
26
-
You will require a working Python before starting this process. Typically, most Linux distributions have Python installed out of the box.
24
+
You will require a working Python installation before starting this process. Typically, most Linux distributions have Python installed out of the box.
27
25
28
26
Other required software:
29
27
30
28
- gcc – the C compiler
31
29
- g++ – the C++ compiler
32
30
- cmake – application used to generate build files
33
31
- git – used to clone repositories from GitHub.com
32
+
- curl - library is referenced by the SDK
33
+
- openssl - libraries are referenced by the SDK
34
34
35
35
Install these packages with:
36
36
```
@@ -46,13 +46,13 @@ When you have completed your edits, press ctrl-o, press enter to save with the o
46
46
47
47
## Step 1: Install the MultiTech toolchain
48
48
49
-
The required toolchain can be found at MultiTech's website [here](http://www.multitech.net/developer/software/mlinux/mlinux-software-development/mlinux-c-toolchain/). We will need to download and install this toolchain to use it in later steps. The webpage contains detailed instructions on how to do that but, for convenience, I will document them here too.
49
+
The required toolchain can be found at MultiTech's website [here](http://www.multitech.net/developer/software/mlinux/mlinux-software-development/mlinux-c-toolchain/). We will need to download and install this toolchain to use it in later steps. The webpage contains detailed instructions on how to do that but, for convenience, we will document them here too.
The SDK is around 420Mb so will take a while to download.
53
+
The SDK is around 420Mb so it will take a while to download.
54
54
55
-
Now modify the downloaded file to be a Linux executable and run it to install the toolchain. In this instance I am overriding the default install location with the -d option to a directory in my home directory. I've also added the -y flag to have it automatically reply yes to any questions. This will take a few minutes.
55
+
Now modify the downloaded file to be a Linux executable and run it to install the toolchain. In this instance we are overriding the default install location with the -d option to a directory in our home directory. We've also added the -y flag to have it automatically reply yes to any questions. This will take a few minutes.
0 commit comments