Hi Romain, I did use the SDK when compiling, but still had the same issue. I don't see how the SDK is installing the CMake module to /usr/share/cmake-3.7/Modules. Shouldn't the SDK only install it's modules to the /xdt/sdk/sysroots/<machine>-agl-linux/usr/share/cmake/Modules directory? My docker only has the CMakeAfbTemplates at the /usr/share directory, and not the /xdt/sdk one, after installing the M3 SDK. Where is your CMakeAfbTemplates file located, I am curious to know? Thanks. Mark On Thu, Nov 22, 2018 at 10:20 PM Romain Forlot [IoT.bzh] <romain.forlot@xxxxxxx> wrote: > > Hi Mark, > > Strange. For what I understand, you try to compile an app natively from > the container without using a SDK, am I correct ? > > This isn't normal you should prefer to use the one from a SDK. Creating > a container with docker-worker-generator doesn't install by default the > CMake module and this is normal. I've just managed to create a container > using the latest docker-worker-generator, then I downloaded the latest > raspberry pi 3 SDK[1] and successfully build the helloworld service app[2]. > > Best regards. > > [1]: > https://download.automotivelinux.org/AGL/snapshots/master/latest/raspberrypi3/deploy/sdk/poky-agl-glibc-x86_64-agl-demo-platform-crosssdk-armv7vehf-neon-vfpv4-toolchain-6.99.1.sh > > [2]: git@xxxxxxxxxx:iotbzh/helloworld-service.git > > On 11/22/18 12:49 AM, Mark Farrugia wrote: > > Hi Romain, > > > > I too had this issue, and have built docker-worker-generator myself > > from master branch. > > I found however that it is not an issue with docker-worker-generator, > > but rather with the app's cmake configuration. > > > > Simply add: > > set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} /usr/share/cmake-3.7/Modules) > > to your config.cmake file before include(CMakeAfbTemplates) and it > > should find the module fine. > > > > The long term solution for this might be to have the > > docker-worker-generator automatically include this path. > > That being said, I was under the impression that CMake automatically > > included this path (globally) to begin with, so something strange is > > definitely happening here. > > > > Cheers, > > Mark > > On Sat, Nov 17, 2018 at 12:55 AM Aniello Carotenuto > > <a.carotenuto16@xxxxxxxxxxxxxxxxx> wrote: > >> Hey Romain! > >> > >> Both the target and the SDK I'm working with are on the latest 6.0.2 version. The container is the latest I've found, from last week I think (the download site is offline at the moment, I can't > >> check the exact date). > >> > >> Anyway thanks for pointing that out, I'll switch to 6.0 version for both target and SDK and hopefully it should be fine! > >> > >> Thanks again > >> Nello > >> > >> Il giorno ven 16 nov 2018 alle ore 14:46 Romain Forlot [IoT.bzh] <romain.forlot@xxxxxxx> ha scritto: > >>> Hi Aniello, > >>> > >>> How old are your container and especially your SDK. CMake module is fairly new in the SDK and only present in the master version one. > >>> > >>> Best regards. > >>> > >>> On 11/16/18 1:05 PM, Aniello Carotenuto wrote: > >>> > >>> Hello everyone, > >>> > >>> I'm trying to build some examples using the agl-worker docker container on docker. I managed to install the SDK for the Raspberry Pi 3 but I really don't understand the problem now. > >>> > >>> Whenever i launch the cmake command i do get this error: CMake Error at conf.d/cmake/config.cmake:184 (include): > >>> include could not find load file: > >>> CMakeAfbTemplates > >>> > >>> Shouldn't the container be ready to use? How can I add the missing module myself? > >>> > >>> Thanks in advance for the help! > >>> Nello > >>> > >>> > >>> > >>> _______________________________________________ > >>> automotive-discussions mailing list > >>> automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx > >>> https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions > >>> > >>> -- > >>> Romain Forlot - Embedded Engineer - IoT.bzh > >>> romain.forlot@xxxxxxx - www.iot.bzh - +33675142438 > >>> > >>> _______________________________________________ > >>> automotive-discussions mailing list > >>> automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx > >>> https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions > >> _______________________________________________ > >> automotive-discussions mailing list > >> automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx > >> https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions > > -- > Romain Forlot - Embedded Engineer - IoT.bzh > romain.forlot@xxxxxxx - www.iot.bzh - +33675142438 > _______________________________________________ automotive-discussions mailing list automotive-discussions@xxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linuxfoundation.org/mailman/listinfo/automotive-discussions