Skip to content

Commit e05f421

Browse files
committed
Merge branch 'mrxcomp' of https://github.com/Azure/azure-iot-sdk-python into mrxcomp
2 parents 7904c3a + 6b26ae9 commit e05f421

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/Example of Cross Compiling the Azure IoT SDK for Python.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Cross Compiling Azure IoT SDK for Python Example
22
## Overview
33

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.
55

66
This process will consist of three tasks:
77

@@ -13,8 +13,6 @@ All commands will assume that you are starting with your current directory at yo
1313
```
1414
cd ~
1515
```
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-
1816
### Assumptions
1917

2018
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
2321

2422
### Prerequisites
2523

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.
2725

2826
Other required software:
2927

3028
- gcc – the C compiler
3129
- g++ – the C++ compiler
3230
- cmake – application used to generate build files
3331
- git – used to clone repositories from GitHub.com
32+
- curl - library is referenced by the SDK
33+
- openssl - libraries are referenced by the SDK
3434

3535
Install these packages with:
3636
```
@@ -46,13 +46,13 @@ When you have completed your edits, press ctrl-o, press enter to save with the o
4646

4747
## Step 1: Install the MultiTech toolchain
4848

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.
5050
```
5151
curl http://www.multitech.net/mlinux/sdk/3.3.6/mlinux-eglibc-x86\_64-mlinux-factory-image-arm926ejste-toolchain-3.3.6.sh > mlinux-toolchain-install.sh
5252
```
53-
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.
5454

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.
5656
```
5757
chmod +x mlinux-toolchain-install.sh
5858

0 commit comments

Comments
 (0)