advancedtelematic / meta-libaktualizr-demo

MIT License
1 stars 2 forks source link

compile libaktualizr-demo fail #7

Open jiang-12345678 opened 2 years ago

jiang-12345678 commented 2 years ago

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

3. 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 commented 2 years ago

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 commented 2 years ago

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 .