Hi Stephane. Thanks a lot. Tested and works now on my setup! Best regards, Joel ____________________________________________ Joel Catala Director, Engineering Tuxera e. joel@xxxxxxxxxx w. www.tuxera.com -----Original Message----- From: agl-dev-community@xxxxxxxxxxxxxxxxxxxxxxxxx <agl-dev-community@xxxxxxxxxxxxxxxxxxxxxxxxx> On Behalf Of Stephane Desneux Sent: Thursday, 14 November 2019 13.59 To: agl-dev-community@xxxxxxxxxxxxxxxxxxxxxxxxx Subject: Re: [agl-dev-community] Error when starting helloworld-native-application test widget Hi Joel, helloworld-native-application depends on agl-service-helloworld (API 'helloworld') but it's not installed by default in AGL images. So, you must grab it from here: https://git.automotivelinux.org/apps/agl-service-helloworld and install it too. When I tried to reproduce your issue, I also found a minor bug in helloworld-native-application (mess up with log file). Please use my latest commit from today: https://github.com/iotbzh/helloworld-native-application/commit/fe2c9589d6018176b08af9afadb489f86d534091 So finally, it works as expected. Here's a capture of my test session: Build the 2 widgets from an AGL docker container where SDK is installed: ------------------------------------------------------- # . /xdt/sdk/environment-setup-aarch64-agl-linux # git clone https://git.automotivelinux.org/apps/agl-service-helloworld # agl-service-helloworld/autobuild/agl/autobuild package # scp agl-service-helloworld/build/*.wgt root@h3ulcb:/tmp/ # git clone https://github.com/iotbzh/helloworld-native-application.git # helloworld-native-application/autobuild/agl/autobuild package # scp helloworld-native-application/build/*.wgt root@h3ulcb:/tmp/ ------------------------------------------------------- Then install on the board: ------------------------------------------------------- $ ssh root@h3ulcb root@h3ulcb:~# afm-util install /tmp/agl-service-helloworld.wgt { "added":"agl-service-helloworld@1.0-7a5a796" } root@h3ulcb:~# afm-util install /tmp/helloworld-native-application.wgt { "added":"helloworld-native-application@0.1-fe2c958" } ------------------------------------------------------- And finally run the native app, which calls the verb 'ping' on helloworld API every 10s and appends the json result to a log file in /tmp. ------------------------------------------------------- root@h3ulcb:~# afm-util start helloworld-native-application@0.1-fe2c958 8323 root@h3ulcb:~# tail -f /tmp/helloworld.log } }{ "response":0, "jtype":"afb-reply", "request":{ "status":"success", "info":"Ping count = 0", "uuid":"29c3357f-2083-49a8-9597-3136120728d3" } }{ "response":1, "jtype":"afb-reply", "request":{ "status":"success", "info":"Ping count = 1" } } ... ------------------------------------------------------- Every 10 seconds, a new response block is added to the log. Note that the helloworld-native-application is a non-graphical app, so don't expect anything on the screen :) Hope this helps! --- Stephane Desneux - CTO - IoT.bzh stephane.desneux@xxxxxxx - www.iot.bzh On 14/11/2019 09:02, Joel Catala wrote: > Hello everyone. > > My team is working on creating a custom widget to be added to the AGL > homescreen. > > They've tried (and myself as well) to build the helloworld example > widget from https://github.com/iotbzh/helloworld-native-application. > > They are able to build the widget, install it on the target device (in > their case a qemu machine) but then they are running into the following issues: > - the service doesn't start with the error: > > qemux86-64:~# afm-util start helloworld-native-application@0.1-fe47611 > ERROR: cannot-start > > - 'journalctl -f' does not output anything too useful (at least we think): > > qemux86-64:~# journactl -f > [...] > Oct 25 07:51:23 qemux86-64 afm-system-daemon[265]: ERROR: can't start > system unit > afm-appli-helloworld-native-application--0.1-fe47611--main@.service > for uid > 0 > [/opt/workdir2/agl/hh/build/tmp/work/corei7-64-agl-linux/af-main/halib > ut+gitAUTOINC+533d5a1a51-r0/git/src/afm-urun.c:252] > [...] > > - 'afm-utils ps' outputs nothing: > > qemux86-64:~# afm-util ps > [ > ] > > Any idea what is going on? What are we doing wrong? > Let me know what kind of additional information you need and I'll get it. > > Thank you in advance for your help. > > PS: sorry if the formatting is not a good, I'm not familiar with the > syntax to be used for e.g. code blocks ... > > Best regards, > Joel Catala > Director, Engineering > Tuxera > -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#7823): https://lists.automotivelinux.org/g/agl-dev-community/message/7823 Mute This Topic: https://lists.automotivelinux.org/mt/57195627/2167316 Group Owner: agl-dev-community+owner@xxxxxxxxxxxxxxxxxxxxxxxxx Unsubscribe: https://lists.automotivelinux.org/g/agl-dev-community/leave/4543822/883735764/xyzzy [list-automotive-discussions82@xxxxxxxxxxx] -=-=-=-=-=-=-=-=-=-=-=-