MangOH-to-GCloud

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

Hi Troy,

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

Thanks
Nhon

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

Hi @jdots83 and @Troy1,
There is a new version of mqttClient-for-Legato, it comes with a CLI sample to interface with Google Cloud’s MQTT bridge.
Hope this helps
Nhon