helloworld-service example does not compile on flounder at all

Description

To test the helloworld service example on flounder , I created a flounder branch right before the switch to the CMake module (SHA1 below). It fails to configure.

dl9pf@monster:~/binding_build_example> git clone --recursive -b flounder git@github.com:dl9pf/helloworld-service.git helloworld-service-dl9pf-flounder Cloning into 'helloworld-service-dl9pf-flounder'... remote: Enumerating objects: 14, done. remote: Counting objects: 100% (14/14), done. remote: Compressing objects: 100% (11/11), done. remote: Total 321 (delta 5), reused 8 (delta 3), pack-reused 307 Receiving objects: 100% (321/321), 104.05 KiB | 447.00 KiB/s, done. Resolving deltas: 100% (139/139), done. Submodule 'app-templates' (https://gerrit.automotivelinux.org/gerrit/p/apps/app-templates.git) registered for path 'conf.d/app-templates' Cloning into '/home/dl9pf/binding_build_example/helloworld-service-dl9pf-flounder/conf.d/app-templates'... remote: Counting objects: 81, done remote: Total 2325 (delta 0), reused 2325 (delta 0) s Receiving objects: 100% (2325/2325), 1.16 MiB | 1.31 MiB/s, done. Resolving deltas: 100% (1199/1199), done. Submodule path 'conf.d/app-templates': checked out '17456de19e50f63348d42c4ae26dda156ddec53d' dl9pf@monster:~/binding_build_example> cd helloworld-service-dl9pf-flounder/ dl9pf@monster:~/binding_build_example/helloworld-service-dl9pf-flounder> ls CMakeLists.txt LICENSE README.md conf.d helloworld-afb htdocs nbproject dl9pf@monster:~/binding_build_example/helloworld-service-dl9pf-flounder> ./conf.d/autobuild/linux/autobuild package -- The C compiler identification is GNU 7.3.1 -- The CXX compiler identification is GNU 7.3.1 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Distribution used ID_LIKE="suse opensuse"-- Include: /home/dl9pf/AGLCLASS/binding_build_example/helloworld-service-dl9pf-flounder/conf.d/app-templates/cmake/cmake.d/01-build_options.cmake -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") -- Checking for module 'json-c' -- Found json-c, version 0.13 -- Checking for module 'libsystemd>=222' -- Found libsystemd, version 234 -- Checking for module 'afb-daemon' -- No package 'afb-daemon' found CMake Error at /usr/share/cmake/Modules/FindPkgConfig.cmake:415 (message): A required package was not found Call Stack (most recent call first): /usr/share/cmake/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal) conf.d/app-templates/cmake/cmake.d/01-build_options.cmake:92 (PKG_CHECK_MODULES) conf.d/app-templates/cmake/common.cmake:77 (include) conf.d/cmake/config.cmake:184 (include) CMakeLists.txt:3 (include) -- Configuring incomplete, errors occurred! See also "/home/dl9pf/AGLCLASS/binding_build_example/helloworld-service-dl9pf-flounder/build/CMakeFiles/CMakeOutput.log". make: *** [conf.d/autobuild/linux/autobuild:67: /home/dl9pf/AGLCLASS/binding_build_example/helloworld-service-dl9pf-flounder/build/Makefile] Error 1 dl9pf@monster:~/binding_build_example/helloworld-service-dl9pf-flounder> git log -1 commit e8c717e95d729b3589752893c909ba673c9451e0 (HEAD -> flounder, origin/flounder) Author: Forlot Romain [IoT.bzh] <claneys@iot.bzh> Date: Fri Oct 20 14:54:20 2017 +0200

 

I followed all steps for

export REVISION=FunkyFlounder'

 

http://docs.automotivelinux.org/docs/devguides/en/dev/reference/host-configuration/docs/1_Prerequisites.html

 

Marking as blocker b/c ppl fail following the official tutorial.

Environment

openSUSE 15.0

Activity

Jan-Simon Moeller 
December 10, 2018 at 12:22 PM

The filename is different as I mentioned ... on my system it is

/etc/profile.d/AGL-agl-app-framework-binder.sh

instead of

/etc/profile.d/AGL-app-framework-binder.sh

 

Likely the binaries shipped for FunkyFlounder have the script installed under the different name.

If it is sourced 'as it is meant to', it works.

jose bollo 
December 10, 2018 at 12:05 PM

Have you installed the framework and sourced the file

/etc/profile.d/AGL-app-framework-binder.sh

as explained there http://docs.automotivelinux.org/docs/devguides/en/dev/reference/host-configuration/docs/2_AGL_Application_Framework.html ?

Jan-Simon Moeller 
December 10, 2018 at 11:17 AM

Jan-Simon Moeller 
December 10, 2018 at 11:13 AM
(edited)

This works as afb-daemon is found once we apply the comment from

https://docs-next.iot.bzh/docs/devguides/en/dev/reference/host-configuration/docs/2_AGL_Application_Framework.html

about:

Note: You need to source a config file to use app-framework-binder just after the installation. source /etc/profile.d/AGL-app-framework-binder.sh This file will be source for every new session.

 

BUT the name is wrong

> ls /etc/profile.d/AGL-agl-app-framework-binder.sh /etc/profile.d/AGL-agl-app-framework-binder.sh

 

AGL-agl-app  vs. just AGL-app

Won't Fix

Details

Assignee

Reporter

Labels

Contract ID

Components

Affects versions

Priority

Created December 9, 2018 at 9:36 PM
Updated December 11, 2018 at 12:55 AM
Resolved December 10, 2018 at 11:18 AM

Flag notifications