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.
-
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’”.
-
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