# MangOH-to-GCloud

**URL:** <https://forum.legato.io/t/mangoh-to-gcloud/2886>\
**Category:** Legato Application Framework\
**Created:** [December 18, 2017, 7:20pm UTC](https://forum.legato.io/t/mangoh-to-gcloud/2886 "2017-12-18T19:20:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Troy1](https://avatars.discourse-cdn.com/v4/letter/t/ed8c4c/32.png) [@Troy1](https://forum.legato.io/u/Troy1)\
**Post date:** [December 18, 2017, 7:20pm UTC](https://forum.legato.io/t/mangoh-to-gcloud/2886/1 "2017-12-18T19:20:09Z")

</div>

Hi – I’m new to the MangOH Red and Legato platform. I’ve successfully completed the mangOH Red Getting Started Tutorial ([mangOH Red Getting Started - WPx5xx + Windows + CLI (Rev3)](http://mangoh.io/uploaded-documents/Reference/mangOH%20Red/Discover/Getting%20Started/mangOHRed_GS_WinCli_r3/#t=41110402_Tutorials_-_HTML5%2F41110479-80-81-82_Tut_Quick_Start%2F41110479-80-81-82_Tut_Quick_Start.htm)). I updated my Legato Application Framework to version 17.09.0 and successfully ran the HelloWorld and RedSensorToCloud applications. My project requires that I send MQTT messages directly to Google Cloud IoT. I found this tutorial ([GitHub - startwithsierra/mangoh-to-gcloud at red](https://github.com/startwithsierra/mangoh-to-gcloud/tree/red)) but I’m getting build errors.

1. A prerequisite is to install the MQTT client Legato application (page 2). I found this at [GitHub - nhonchu/mqttClient-for-Legato: mqttClient application for Legato framework](https://github.com/nhonchu/mqttClient-for-Legato). I downloaded the files to ~/legato\_framework/legato/apps/sample/mqttClient. I ran cfglegato and make wp85. The build finished with this error: “Unrecognized section name ‘provides’”.

2. Next, I tried to build the mangoh-to-gcloud application ([GitHub - startwithsierra/mangoh-to-gcloud at red](https://github.com/startwithsierra/mangoh-to-gcloud/tree/red)). I downloaded the files to ~/legato\_framework/legato/apps/sample/mangohToGCloud. I ran cfglegato and make wp85 (page 13). The build finished with this error: “Unrecognized section name ‘assets’”.

How do I resolve these errors?

\*\*\* mqttClient Build Output \*\*\*  
mangoh@mangoh-virtualbox:~/legato\_framework/legato/apps/sample/mqttClient$ make wp85  
export TARGET=wp85 ;   
mkapp -v -t wp85   
-i /home/mangoh/legato\_framework/legato/interfaces/dataConnectionService   
-i /home/mangoh/legato\_framework/legato/interfaces/modemServices   
-i mqttClientComp/inc   
-i mqttClientComp/inc/mqtt   
mqttClient.adef  
C compiler = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc  
C++ compiler =/opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++  
Compiler sysroot = /opt/swi/y17-ext/sysroots/armv7a-vfp-neon-poky-linux-gnueabi  
Linker = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld  
Static lib archiver = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar  
Assembler = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-as  
Debug symbol stripper = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-strip  
Object file copier/translator = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-objcopy  
ELF file info extractor = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-readelf  
Command-line arguments from previous run not found.  
Parsing file: ‘/home/mangoh/legato\_framework/legato/apps/sample/mqttClient/mqttClient.adef’.  
\*\* ERROR:  
/home/mangoh/legato\_framework/legato/apps/sample/mqttClient/mqttClient.adef:41:8: error: Unrecognized section name ‘provides’.  
Makefile:7: recipe for target ‘wp85’ failed  
make: \*\*\* [wp85] Error 1

* * *

\*\*\* mangoh-to-gcloud Build Output \*\*\*  
mangoh@mangoh-virtualbox:~/legato\_framework/legato/apps/sample/mangohToGCloud$ make wp85  
mkapp -v -t wp85   
-i myComponent/utils   
mangohToGCloud.adef  
C compiler = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc  
C++ compiler =/opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++  
Compiler sysroot = /opt/swi/y17-ext/sysroots/armv7a-vfp-neon-poky-linux-gnueabi  
Linker = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ld  
Static lib archiver = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-ar  
Assembler = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-as  
Debug symbol stripper = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-strip  
Object file copier/translator = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-objcopy  
ELF file info extractor = /opt/swi/y17-ext/sysroots/x86\_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-readelf  
Command-line arguments from previous run not found.  
Parsing file: ‘/home/mangoh/legato\_framework/legato/apps/sample/mangohToGCloud/mangohToGCloud.adef’.  
Modelling application: ‘mangohToGCloud’  
defined in ‘/home/mangoh/legato\_framework/legato/apps/sample/mangohToGCloud/mangohToGCloud.adef’  
Application ‘mangohToGCloud’ contains executable ‘mangohToGCloud’.  
Parsing file: ‘/home/mangoh/legato\_framework/legato/apps/sample/mangohToGCloud/myComponent/Component.cdef’.  
\*\* ERROR:  
/home/mangoh/legato\_framework/legato/apps/sample/mangohToGCloud/myComponent/Component.cdef:51:6: error: Unrecognized section name ‘assets’.  
Makefile:29: recipe for target ‘wp85’ failed  
make: \*\*\* [wp85] Error 1

* * *

Thanks ,

Troy

---

<div class="post-metadata">

**Author:** ![nchu](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/nchu/32/294_2.png) [@nchu](https://forum.legato.io/u/nchu)\
**Post date:** [December 19, 2017, 1:20pm UTC](https://forum.legato.io/t/mangoh-to-gcloud/2886/2 "2017-12-19T13:20:47Z")

</div>

Hi Troy,

The 2 mqtt sample apps were developed for earlier version of Legato. We will update them. Sorry for the inconvenience.

Thanks  
Nhon

---

<div class="post-metadata">

**Author:** ![jdots83](https://avatars.discourse-cdn.com/v4/letter/j/dec6dc/32.png) [@jdots83](https://forum.legato.io/u/jdots83)\
**Post date:** [September 7, 2018, 1:11am UTC](https://forum.legato.io/t/mangoh-to-gcloud/2886/3 "2018-09-07T01:11:25Z")

</div>

Hi @nchu and @Troy1  
I have taken the exact steps as Troy, only 8 months later (but catching up fast).

I was able to compile and run mqttService (although I haven’t been able to exercise it yet).  
I hit the same problem as Troy when trying to compile mangOH-to-GCloud: "Unrecognized section name “assets”.  
Has anyone had any luck sorting this out?  
Jim

---

<div class="post-metadata">

**Author:** ![nchu](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/nchu/32/294_2.png) [@nchu](https://forum.legato.io/u/nchu)\
**Post date:** [October 16, 2018, 6:58am UTC](https://forum.legato.io/t/mangoh-to-gcloud/2886/4 "2018-10-16T06:58:50Z")

</div>

Hi @jdots83 and @Troy1,  
There is a new version of [mqttClient-for-Legato](https://github.com/nhonchu/mqttClient-for-Legato), it comes with a CLI sample to interface with Google Cloud’s MQTT bridge.  
Hope this helps  
Nhon
