Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-2308

Hello world service and tests issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • None
    • App Framework
    • None
    • Intel Minnowboard, Intel Upsquare, QEMU x86_64, Raspberry Pi 3, Renesas M3

      The hello world service and test do not run.

      After building a fresh image with bitbake agl-demo-platform-crosssdk, installing the sdk and sourcing the sdk environment file, here are the following steps taken 

        

      git clone https://github.com/iotbzh/helloworld-service.git helloworld_gg
      cd helloworld_gg
      mkdir build
      cd build
      cmake  -DBUILD_TEST_WGT=TRUE ..
      make
      make widget

       

      It should be noted that there are discrepancies within the documentation - for example

      http://docs.automotivelinux.org/guppy/docs/apis_services/en/dev/reference/afb-test/the-test-widget.html#build-the-test-widget

      The example shown uses -DBUILD_TEST_WIDGET=TRUE, however the correct option is the one shown in the description above -DBUILD_TEST_WGT=TRUE, which would not produce a test widget file following the former example.

      This produces 2 .wgt files

       

      scp agl-service-helloworld*.wgt root@up2.lan:~

       

      The result of the installation and running the helloworld service is the following:

       

      intel-corei7-64:~# afm-util install agl-service-helloworld.wgt 
      {
        "added":"agl-service-helloworld@1.0-aa001d2"
      }
      intel-corei7-64:~# afm-util start agl-service-helloworld@1.0-aa001d2
      ERROR:  cannot-start

      This results in the following helloservice.log

      It turns out that the generated systemd service points to a non-existent .so file, and therefore this has to be fixed by editing the conf.d/wgt/config.xml.in line13 (found by sbogdanov):

       

      <param name="lib/afb-helloworld.so" value="local" />

       

      into 

      <param name="lib/afb-helloworld-skeleton.so" value="local" />

       After cleaning and rebuilding the hello world service widget, scp-ing to the board and installing, the service seems to be running:

       

      intel-corei7-64:~# afm-util install agl-service-helloworld.wgt 
      { 
        "added":"agl-service-helloworld@1.0-aa001d2-dirty" 
      } 
      intel-corei7-64:~# afm-util start agl-service-helloworld@1.0-aa001d2-dirty 
      2181 
      intel-corei7-64:~#
      

      Installing the test widget seems to go fine, however running it - does not:

       

      intel-corei7-64:~# afm-util install agl-service-helloworld-test.wgt 
      {
       "added":"agl-service-helloworld-test@1.0-aa001d2-dirty"
      }
      intel-corei7-64:~# afm-util start agl-service-helloworld-test@1.0-aa001d2-dirty
      ERROR: cannot-start

      The failing test service reports this log: hellosvc_test.log

       

       

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            pmarzin Pierre Marzin
            edi.feschiyan Edi Feschiyan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: