[yocto] Missing -lgpiod during linking an application that uses libgpiod

2023-11-04 Thread Javier Casas Marín
Hi, I’m building a Qt application to controls a few GPIOs so, in my recipe, I add libgpiod to the DEPENDS variable, but even then the –lgpiod is missing in the linking stage and the build fails with several ‘undefined reference’ errors to the gpiod functions: | /build/tmp/work/cortexa53-crypt

Re: [yocto] Missing -lgpiod during linking an application that uses libgpiod

2023-11-04 Thread Javier Casas Marín
I solved the issue. It turned out to be not a yocto but a Qt problem. The Makefile used to build the application is autogenerated by qmake so you have to include LIBS += -lgpiod in order to add the library in the linking stage. I was looking in the wrong place! Sorry for the noise javi -=-=-=

[yocto] Files copied to /usr/local during installation get removed misteriously

2023-11-09 Thread Javier Casas Marín
Hi, I have a recipe that creates some directories in /usr/local and copies there some files using do_install:append > > inherit qmake5 > OE_QMAKE_PATH_HEADERS = "${OE_QMAKE_PATH_QT_HEADERS}" > DEPENDS += "qtbase qtdeclarative qtmultimedia libgpiod" > > > RDEPENDS:${PN} += "qtxmlpatterns qtdec

Re: [yocto] Files copied to /usr/local during installation get removed misteriously

2023-11-13 Thread Javier Casas Marín
Any help on this? -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61672): https://lists.yoctoproject.org/g/yocto/message/61672 Mute This Topic: https://lists.yoctoproject.org/mt/102502363/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscr

Re: [yocto] Files copied to /usr/local during installation get removed misteriously

2023-11-15 Thread Javier Casas Marín
Just in case someone has the same problem, it is the do_userfs function the one that deletes /usr/local directories and files after copying them to ${image_userfs}: cp -r /build/tmp/work/kontron_mx8mm-ked-linux/image-ked-qt/1.0-r0/rootfs${image_userfs_dir}/* ${image_userfs} rm -rf /build/tmp/

Re: [yocto] Files copied to /usr/local during installation get removed misteriously

2023-11-15 Thread Javier Casas Marín
It is in run.do_userfs. I saw that the files where removed while do_image_userfs task was running so I looked at the image logs in temp directory and found it there -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#61697): https://lists.yoctoproject.

Re: [yocto] Files copied to /usr/local during installation get removed misteriously

2023-11-15 Thread Javier Casas Marín
you are right, it is defined in layers/meta-ked/classes/userfs.bbclass I didn't consider that it could be something added by a custom layer but it is, as you said. I'll have a loot at it. Thanks for the clarification Javi -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this gro