I have MangOH Red Board with a WP7601
I’m trying to get this module working in order to send MQTT packets:
attempting to build, I get the following output:
mangoh@mangoh-virtualbox:~/mangOH/apps/utils-legato-mqtt-master$ make wp7
export TARGET=wp7 ;
mkapp -v -t wp7
-i /home/mangoh/legato_framework/legato/interfaces/dataConnectionService
-i /home/mangoh/legato_framework/legato/interfaces/modemServices
-i mqttComponent/inc
-i mqttComponent/inc/mqtt
mqttService.adef
C compiler = gcc
C++ compiler =g++
Compiler sysroot = /
Linker = ld
Static lib archiver = ar
Assembler = as
Debug symbol stripper = strip
Object file copier/translator = objcopy
ELF file info extractor = readelf
Command-line arguments from previous run not found.
Parsing file: ‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttService.adef’.
Modelling application: ‘mqttService’
defined in ‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttService.adef’
Application ‘mqttService’ contains executable ‘mqttService’.
Parsing file: ‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/Component.cdef’.
Modelling component: ‘mqttComponent’
found at: ‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent’
== ‘mqttComponent’ component summary ==
C sources:
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/mqtt_service.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/mqttClient.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/mqtt/mqttConnectClient.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/mqtt/mqttConnectServer.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/mqtt/mqttUnsubscribeClient.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/mqtt/mqttUnsubscribeServer.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/mqtt/mqttSerializePublish.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/mqtt/mqttSubscribeClient.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/mqtt/mqttDeserializePublish.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/mqtt/mqttSubscribeServer.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/mqtt/mqttPacket.c’
‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent/src/json/swir_json.c’
IPC API client-side interfaces:
‘le_data’:
API defined in: ‘/home/mangoh/legato_framework/legato/interfaces/le_data.api’
‘le_info’:
API defined in: ‘/home/mangoh/legato_framework/legato/interfaces/modemServices/le_info.api’
IPC API server-side interfaces:
‘mqtt’:
API defined in: ‘mqtt’
Executable ‘mqttService’ in application ‘mqttService’ contains component ‘mqttComponent’ (/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqttComponent).
== ‘mqttService’ application summary ==
Uses components:
‘mqttComponent’
Builds executables:
‘mqttService’
Instantiates components:
‘mqttComponent’
WARNING: This application is UNSANDBOXED.
Will be started automatically when the Legato framework starts.
When started, will run process: ‘mqttService’
Executing file: ‘mqttService’
Without any command line arguments.
With the following environment variables:
LE_LOG_LEVEL=DEBUG
PATH=/legato/systems/current/apps/mqttService/read-only/bin:/usr/local/bin:/usr/bin:/bin
Fault recovery action: ignore (default)
Watchdog timeout: disabled
Executable ‘mqttService’:
Serves the following IPC API interfaces:
‘mqtt’
API defined in: ‘/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqtt.api’
Has the following client-side IPC API interfaces:
‘mqttService.mqttComponent.le_data’ -> bound to service ‘le_data’ served by app ‘dataConnectionService’.
API defined in: ‘/home/mangoh/legato_framework/legato/interfaces/le_data.api’
‘mqttService.mqttComponent.le_info’ -> bound to service ‘le_info’ served by app ‘modemService’.
API defined in: ‘/home/mangoh/legato_framework/legato/interfaces/modemServices/le_info.api’
Generating interfaces.h for component ‘mqttComponent’ in ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/src/interfaces.h’.
Generating component-specific IPC code for component ‘mqttComponent’ in ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/src/_componentMain.c’.
Generating system configuration data for app ‘mqttService’ in file ‘_build_mqttService/wp7/app/mqttService/staging/root.cfg’.
Generating startup code for executable ‘mqttService’ (app/mqttService/obj/mqttService/mqttService) in ‘_build_mqttService/wp7/app/mqttService/src/mqttService/_main.c’.
Generating ninja build script: ‘_build_mqttService/wp7/build.ninja’.
Executing ninja build system…
$ ninja -v -d explain -f _build_mqttService/wp7/build.ninja
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/7c07ecb1114d6769b67f526f9244f95a.o.d’ is missing
ninja explain: output _build_mqttService/wp7/api/a76cae69a6299efdb8e840cda4cefdb1/server/mqtt_server.c doesn’t exist
ninja explain: output _build_mqttService/wp7/api/abac8fa661f5ecec877be4958f89e3b7/client/le_data_client.c doesn’t exist
ninja explain: output _build_mqttService/wp7/api/e132043a180ed932041c4b6541585e24/client/le_info_client.c doesn’t exist
ninja explain: output _build_mqttService/wp7/api/c9abb2f71e1b04d9eb045ebfcd1b6eb4/client/le_mdc_interface.h doesn’t exist
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/7c07ecb1114d6769b67f526f9244f95a.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/817c37841aac25a6d5ae39566318c7d5.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/817c37841aac25a6d5ae39566318c7d5.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/d8477f1186e27fd0dab7d05e879e3e78.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/d8477f1186e27fd0dab7d05e879e3e78.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/8fa2c33c7b1d6e5214ccc1b0c71232b1.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/8fa2c33c7b1d6e5214ccc1b0c71232b1.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/601e0ca0b4b477f6dc87a25ce2a78bee.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/601e0ca0b4b477f6dc87a25ce2a78bee.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/ab3cfa897cc0a73025d4cf13ad887dbe.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/ab3cfa897cc0a73025d4cf13ad887dbe.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/ed44563d1ebe45253fbb2ed3a4d734e9.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/ed44563d1ebe45253fbb2ed3a4d734e9.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/e1107fa0c48100ea310656d4b91343bc.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/e1107fa0c48100ea310656d4b91343bc.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/d53cea18ccf704e3488f593d059de265.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/d53cea18ccf704e3488f593d059de265.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/ad6ea27092fe02d47217eb2898315e45.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/ad6ea27092fe02d47217eb2898315e45.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/99a71a0b947932a38a58981eed747d69.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/99a71a0b947932a38a58981eed747d69.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/97037cdd7b746704c830a1b842ee0b49.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/97037cdd7b746704c830a1b842ee0b49.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/api/abac8fa661f5ecec877be4958f89e3b7/client/le_data_client.c.o.d’ is missing
ninja explain: _build_mqttService/wp7/api/abac8fa661f5ecec877be4958f89e3b7/client/le_data_client.c is dirty
ninja explain: _build_mqttService/wp7/api/abac8fa661f5ecec877be4958f89e3b7/client/le_data_messages.h is dirty
ninja explain: _build_mqttService/wp7/api/abac8fa661f5ecec877be4958f89e3b7/client/le_data_interface.h is dirty
ninja explain: _build_mqttService/wp7/api/c9abb2f71e1b04d9eb045ebfcd1b6eb4/client/le_mdc_interface.h is dirty
ninja explain: _build_mqttService/wp7/api/abac8fa661f5ecec877be4958f89e3b7/client/le_data_client.c.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/api/e132043a180ed932041c4b6541585e24/client/le_info_client.c.o.d’ is missing
ninja explain: _build_mqttService/wp7/api/e132043a180ed932041c4b6541585e24/client/le_info_client.c is dirty
ninja explain: _build_mqttService/wp7/api/e132043a180ed932041c4b6541585e24/client/le_info_messages.h is dirty
ninja explain: _build_mqttService/wp7/api/e132043a180ed932041c4b6541585e24/client/le_info_interface.h is dirty
ninja explain: _build_mqttService/wp7/api/e132043a180ed932041c4b6541585e24/client/le_info_client.c.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/api/a76cae69a6299efdb8e840cda4cefdb1/server/mqtt_server.o.d’ is missing
ninja explain: _build_mqttService/wp7/api/a76cae69a6299efdb8e840cda4cefdb1/server/mqtt_server.c is dirty
ninja explain: _build_mqttService/wp7/api/a76cae69a6299efdb8e840cda4cefdb1/server/mqtt_messages.h is dirty
ninja explain: _build_mqttService/wp7/api/a76cae69a6299efdb8e840cda4cefdb1/server/mqtt_server.h is dirty
ninja explain: _build_mqttService/wp7/api/a76cae69a6299efdb8e840cda4cefdb1/server/mqtt_server.o is dirty
ninja explain: depfile ‘_build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/_componentMain.c.o.d’ is missing
ninja explain: _build_mqttService/wp7/component/0e734b4ab87e240f827e6e21feac7225/obj/_componentMain.c.o is dirty
ninja explain: _build_mqttService/wp7/staging/read-only/lib/libComponent_mqttComponent.so is dirty
ninja explain: _build_mqttService/wp7/app/mqttService/staging/read-only/lib/libComponent_mqttComponent.so is dirty
ninja explain: depfile ‘_build_mqttService/wp7/app/mqttService/obj/mqttService/_main.c.o.d’ is missing
ninja explain: _build_mqttService/wp7/app/mqttService/obj/mqttService/_main.c.o is dirty
ninja explain: _build_mqttService/wp7/staging/read-only/lib/libComponent_mqttComponent.so is dirty
ninja explain: _build_mqttService/wp7/app/mqttService/obj/mqttService/mqttService is dirty
ninja explain: _build_mqttService/wp7/app/mqttService/staging/read-only/bin/mqttService is dirty
ninja explain: _build_mqttService/wp7/app/mqttService/staging/info.properties is dirty
[1/27] ifgen --output-dir ./_build_mqttService/wp7/api/abac8fa661f5ecec877be4958f89e3b7/client --gen-client --gen-interface --gen-local --name-prefix le_data --import-dir /home/mangoh/legato_framework/legato/interfaces --import-dir /home/mangoh/legato_framework/legato/framework/include --import-dir /home/mangoh/legato_framework/legato/interfaces/dataConnectionService --import-dir /home/mangoh/legato_framework/legato/interfaces/modemServices --import-dir mqttComponent/inc --import-dir mqttComponent/inc/mqtt --import-dir /home/mangoh/mangOH/apps/utils-legato-mqtt-master /home/mangoh/legato_framework/legato/interfaces/le_data.api
[2/27] ifgen --output-dir ./_build_mqttService/wp7/api/c9abb2f71e1b04d9eb045ebfcd1b6eb4/client --gen-interface --import-dir /home/mangoh/legato_framework/legato/interfaces --import-dir /home/mangoh/legato_framework/legato/framework/include --import-dir /home/mangoh/legato_framework/legato/interfaces/dataConnectionService --import-dir /home/mangoh/legato_framework/legato/interfaces/modemServices --import-dir mqttComponent/inc --import-dir mqttComponent/inc/mqtt --import-dir /home/mangoh/mangOH/apps/utils-legato-mqtt-master /home/mangoh/legato_framework/legato/interfaces/modemServices/le_mdc.api
[3/27] ifgen --output-dir ./_build_mqttService/wp7/api/e132043a180ed932041c4b6541585e24/client --gen-client --gen-interface --gen-local --name-prefix le_info --import-dir /home/mangoh/legato_framework/legato/interfaces --import-dir /home/mangoh/legato_framework/legato/framework/include --import-dir /home/mangoh/legato_framework/legato/interfaces/dataConnectionService --import-dir /home/mangoh/legato_framework/legato/interfaces/modemServices --import-dir mqttComponent/inc --import-dir mqttComponent/inc/mqtt --import-dir /home/mangoh/mangOH/apps/utils-legato-mqtt-master /home/mangoh/legato_framework/legato/interfaces/modemServices/le_info.api
[4/27] ifgen --output-dir ./_build_mqttService/wp7/api/a76cae69a6299efdb8e840cda4cefdb1/server --gen-server --gen-server-interface --gen-local --name-prefix mqtt --import-dir /home/mangoh/legato_framework/legato/interfaces --import-dir /home/mangoh/legato_framework/legato/framework/include --import-dir /home/mangoh/legato_framework/legato/interfaces/dataConnectionService --import-dir /home/mangoh/legato_framework/legato/interfaces/modemServices --import-dir mqttComponent/inc --import-dir mqttComponent/inc/mqtt --import-dir /home/mangoh/mangOH/apps/utils-legato-mqtt-master /home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqtt.api
FAILED: ifgen --output-dir ./_build_mqttService/wp7/api/a76cae69a6299efdb8e840cda4cefdb1/server --gen-server --gen-server-interface --gen-local --name-prefix mqtt --import-dir /home/mangoh/legato_framework/legato/interfaces --import-dir /home/mangoh/legato_framework/legato/framework/include --import-dir /home/mangoh/legato_framework/legato/interfaces/dataConnectionService --import-dir /home/mangoh/legato_framework/legato/interfaces/modemServices --import-dir mqttComponent/inc --import-dir mqttComponent/inc/mqtt --import-dir /home/mangoh/mangOH/apps/utils-legato-mqtt-master /home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqtt.api
/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqtt.api:60:9: error: Unknown type u’int’
/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqtt.api:83:22: warning: Parameters with type ‘handler’ are deprecated. Use the name of the handler instead: e.g. SessionStateHandler handler
/home/mangoh/mangOH/apps/utils-legato-mqtt-master/mqtt.api:106:12: warning: Parameters with type ‘handler’ are deprecated. Use the name of the handler instead: e.g. IncomingMessageHandler handler
ninja: build stopped: subcommand failed.
Makefile:7: recipe for target ‘wp7’ failed
make: *** [wp7] Error 1
It seems to me that I’m missing some core files. I’m not sure how to (re)create them. Any Help?