Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build everest-cmake everest-libmodbus libevse-security libfsm libslac libtimer #34

Open
wajeaniket opened this issue Jul 19, 2024 · 3 comments

Comments

@wajeaniket
Copy link

wajeaniket commented Jul 19, 2024

Hi,

I am working on im8mxq NXP processor on kirkstone branch. with latest commit "f9273939088db91a5699c07e512ddd7981e5637a"

I have cloned meta-everest and added in my bb-layers.conf file.

I hav my image file fsl-image.gui.bb in that i added these packages
IMAGE_INSSTALL:append += "
everest-cmake
everest-libmodbus
libevse-security
libfsm
libslac
libtimer
"

while buildding the image i have following error in do_rootfs

---------------------------------------------------------------------------------------------------------------------------------------'
fsl-image-gui-1.0-r0 do_rootfs: Could not invoke dnf. Command '/media/tru-cpu-17/chargeNex/chargeNex/BSP/kirkstone/imx8m/CodeSetup/build_xwayland/tmp/work/imx8mq_trux_q01-fslc-linux/fsl-image-gui/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /media/tru-cpu-17/chargeNex/chargeNex/BSP/kirkstone/imx8m/CodeSetup/build_xwayland/tmp/work/imx8mq_trux_q01-fslc-linux/fsl-image-gui/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/media/tru-cpu-17/chargeNex/chargeNex/BSP/kirkstone/imx8m/CodeSetup/build_xwayland/tmp/work/imx8mq_trux_q01-fslc-linux/fsl-image-gui/1.0-r0/rootfs/etc/yum.repos.d --installroot=/media/tru-cpu-17/chargeNex/chargeNex/BSP/kirkstone/imx8m/CodeSetup/build_xwayland/tmp/work/imx8mq_trux_q01-fslc-linux/fsl-image-gui/1.0-r0/rootfs --setopt=logdir=/media/tru-cpu-17/chargeNex/chargeNex/BSP/kirkstone/imx8m/CodeSetup/build_xwayland/tmp/work/imx8mq_trux_q01-fslc-linux/fsl-image-gui/1.0-r0/temp --repofrompath=oe-repo,/media/tru-cpu-17/chargeNex/chargeNex/BSP/kirkstone/imx8m/CodeSetup/build_xwayland/tmp/work/imx8mq_trux_q01-fslc-linux/fsl-image-gui/1.0-r0/oe-rootfs-repo --nogpgcheck install android-tools binutils cc-flash cinematicexperience cppzmq-dev curl czmq dnf evcli everest-admin-panel everest-cmake everest-core everest-framework everest-libmodbus everest-node-red-flows ffmpeg gcc kernel-devicetree kernel-image libdrm-tests libevse-security libfsm liblog libmodbus libocpp libslac libtimer minicom mosquitto node-red nodejs nodejs-npm openh264 openjdk-jre openssh-sftp-server packagegroup-base-extended packagegroup-core-boot packagegroup-core-eclipse-debug packagegroup-core-full-cmdline packagegroup-core-nfs-server packagegroup-core-ssh-dropbear packagegroup-core-tools-debug packagegroup-core-tools-testapps packagegroup-fsl-gstreamer1.0 packagegroup-fsl-gstreamer1.0-full packagegroup-fsl-tools-gpu packagegroup-fsl-tools-gpu-external packagegroup-fsl-tools-testapps packagegroup-imx-tools-audio packagegroup-machine-base packagegroup-qt5-toolchain-target packagegroup-qt5-webkit packagegroup-tools-bluetooth paho-mqtt-c pip-stringcase psplash python3-iso15118 python3-pip python3-psutil python3-pyzmq qt3d qt5-opengles2-test qtbase qtbase-dev qtbase-mkspecs qtbase-plugins qtbase-tools qtdeclarative qtgraphicaleffects qtimageformats qtlottie qtmultimedia qtquickcontrols qtquickcontrols-qmlplugins qtquickcontrols2 qtscript qtsensors qtserialbus qtsvg qttools qttools-dev qttools-tools qtvirtualkeyboard qtwayland qtwayland-plugins rpm run-postinsts screen sqlite swupdate swupdate-www tcf-agent ttf-dejavu-mathtexgyre ttf-dejavu-sans ttf-dejavu-sans-condensed ttf-dejavu-sans-mono ttf-dejavu-serif ttf-dejavu-serif-condensed tzdata vim volt volt-activator volt-debug volt-demo weston-init weston-xwayland wget xterm zeromq locale-base-en-us locale-base-en-gb' returned 1:
DNF version: 4.11.1
cachedir: /media/tru-cpu-17/chargeNex/chargeNex/BSP/kirkstone/imx8m/CodeSetup/build_xwayland/tmp/work/imx8mq_trux_q01-fslc-linux/fsl-image-gui/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /media/tru-cpu-17/chargeNex/chargeNex/BSP/kirkstone/imx8m/CodeSetup/build_xwayland/tmp/work/imx8mq_trux_q01-fslc-linux/fsl-image-gui/1.0-r0/oe-rootfs-repo
User-Agent: falling back to 'libdnf': could not detect OS or basearch
repo: using cache for: oe-repo
oe-repo: using metadata from Fri 19 Jul 2024 10:07:40 AM UTC.
No match for argument: everest-cmake
No match for argument: everest-libmodbus
No match for argument: libevse-security
No match for argument: libfsm
No match for argument: libslac
No match for argument: libtimer
Error: Unable to find a match: everest-cmake everest-libmodbus libevse-security libfsm libslac libtimer

ERROR: Logfile of failure stored in: /media/tru-cpu-17/chargeNex/chargeNex/BSP/kirkstone/imx8m/CodeSetup/build_xwayland/tmp/work/imx8mq_trux_q01-fslc-linux/fsl-image-gui/1.0-r0/temp/log.do_rootfs.806838
ERROR: Task (/media/tru-cpu-17/chargeNex/chargeNex/BSP/kirkstone/imx8m/CodeSetup/sources/meta-trucrux/recipes-fsl/images/fsl-image-gui.bb:do_rootfs) failed with exit code '1'


need help to resolve this

@hikinggrass
Copy link
Contributor

You might want to take a look at the yeti-yak-image for an example image using meta-everest for a hardware (in that case a raspberrypi cm4): https://github.com/PionixPublic/yeti-yak-sdk/blob/kirkstone/meta-yeti-yak/recipes-core/images/yeti-yak-image.bb

@wajeaniket
Copy link
Author

Thank you for the quick response.
I had gone through yeti-yak layer and its the same thing what i am doing.
I will explain what i am trying to acheive.

I wanted to use libocpp library in my cpp code.

when i do it it gives me error saying
fatal error: evse_security/evse_security.hpp: No such file or directory
9 | #include <evse_security/evse_security.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

i traced this error and i found out. libevse_security is required in OS
so i need to add libevse_security and other packages(mentioned earlier) in my OS (which yeti-yak is not appending)

after adding this packages i an unable to build my OS
:(

@hikinggrass
Copy link
Contributor

For testing purposes you could write a recipe like the one in everest-core: That dependes on all the required libraries:


They are found via find_package in a yocto build and you have a add it as a target link lib as well to your target:

target_link_libraries(${MODULE_NAME}
    PRIVATE
        OpenSSL::SSL
        OpenSSL::Crypto
        everest::ocpp
        everest::ocpp_evse_security
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants