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

compile libaktualizr-demo fail #7

Open
jiang-12345678 opened this issue May 25, 2022 · 2 comments
Open

compile libaktualizr-demo fail #7

jiang-12345678 opened this issue May 25, 2022 · 2 comments

Comments

@jiang-12345678
Copy link

https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk/about/

Yocto with LSDK Components
The target : add libaktualizr-demo support the board of ls1046afrwy

1.download yocto layers
$: mkdir yocto-sdk
$: cd yocto-sdk
$: repo init -u https://source.codeaurora.org/external/qoriq/qoriq-components/yocto-sdk -b warrior
$: repo sync --force-sync

2.cd sources
git clone https://github.com/advancedtelematic/meta-libaktualizr-demo.git

IMAGE_INSTALL_append = libaktualizr-demo
4.bitbake fsl-image-networking

compile error:
ERROR: libaktualizr-demo-1.0+gitAUTOINC+7fbd28ec5d-9 do_install: Execution of '/home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/temp/run.do_install.10348' failed with exit code 1:
[1/13] cd /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/build/aktualizr/src/libaktualizr/storage && /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/git/aktualizr/src/libaktualizr/storage/embed_schemas.py /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/git/aktualizr/config/sql/ /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/build/aktualizr/src/libaktualizr/storage/sql_schemas.cc libaktualizr
[1/2] cd /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/build && /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/recipe-sysroot-native/usr/bin/cmake -P cmake_install.cmake
-- Install configuration: ""
-- Installing: /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/image/usr/lib/sota/conf.d
-- Installing: /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/image/usr/lib/libaktualizr.so
CMake Error at aktualizr/src/libaktualizr/cmake_install.cmake:60 (file):
file INSTALL cannot find
"/home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/git/include/libaktualizr":
No such file or directory.
Call Stack (most recent call first):
aktualizr/src/cmake_install.cmake:42 (include)
aktualizr/cmake_install.cmake:43 (include)
cmake_install.cmake:42 (include)

FAILED: CMakeFiles/install.util
cd /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/build && /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/recipe-sysroot-native/usr/bin/cmake -P cmake_install.cmake
ninja: build stopped: subcommand failed.
WARNING: /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/temp/run.do_install.10348:1 exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '/home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'

ERROR: Logfile of failure stored in: /home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/temp/log.do_install.10348

error
"/home/autocore/pcu-ewaol/dunfell/build_ls1046afrwy/tmp/work/aarch64-fsl-linux/libaktualizr-demo/1.0+gitAUTOINC+7fbd28ec5d-9/git/include/libaktualizr"
No such file or directory.

@pattivacek
Copy link
Collaborator

It looks like you've initialized your repo with warrior, but you also have references to dunfell. That could be a problem. I would recommend using dunfell, as warrior is no longer maintained by Yocto.

That said, I don't think this repo has been tested or used by anyone in a couple years. I see it claims to only be compatible with warrior. That's probably not true; it should work with newer branches as well. However, I don't have the capacity to diagnose your specific problem.

Did you update your bblayers.conf to include this layer? I don't see that listed in your steps. It looks like something is missing at a fairly high level; it could be as simple as that.

You can try asking Here Technologies for support if they're still interested in supporting this project.

@jiang-12345678
Copy link
Author

Thank you for your reply.
I had added meta-libaktualizr-demo to conf/bblayers.conf.

Yes, the branch of yocto sdk was dunfell.
I changed meta-libaktualizr-demo/conf/layer.conf .

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