I'm developing distribution for raspberry pi 3 using yocto project. I want to make opencv and x11 plugins in this distribution. but I get the following error after "bitbake rpi-avg-image" command. How i can solve this error?
Related part of my local.conf
DISTRO_FEATURES_append = " x11"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks dev-pkgs tools-sdk tools-profile tools-debug tools-testapps"
IMAGE_INSTALL_append = " python3-core python3-pip python3-pandas"
CORE_IMAGE_EXTRA_INSTALL += "libopencv-core-dev libopencv-highgui-dev libopencv-imgproc-dev libopencv-objdetect-dev libopencv-ml-dev"
Related part of my bblayers.conf
BBLAYERS ?= " \
${YOCTOROOT}/recipes/poky/meta \
${YOCTOROOT}/recipes/poky/meta-poky \
${YOCTOROOT}/recipes/poky/meta-yocto-bsp \
\
${YOCTOROOT}/recipes/meta-openembedded/meta-oe \
${YOCTOROOT}/recipes/meta-openembedded/meta-multimedia \
${YOCTOROOT}/recipes/meta-openembedded/meta-networking \
${YOCTOROOT}/recipes/meta-openembedded/meta-webserver \
${YOCTOROOT}/recipes/meta-openembedded/meta-python \
\
${YOCTOROOT}/recipes/meta-qt5 \
\
${YOCTOROOT}/recipes/meta-raspberrypi \
\
${YOCTOROOT}/recipes/meta-raspberrypi-avg \
"
And i get this error:
ERROR: glibc-locale-2.26-r0 do_package: QA Issue: glibc-locale: Files/directories were installed but not shipped in any package:
/usr/lib/gconv/IBM930.so
/usr/lib/gconv/CP1258.so
...
...
...
/usr/share/i18n/charmaps/IBM863.gz
Please set FILES such that these items are packaged. Alternatively if they are unneeded, avoid installing them or delete them within do_install.
glibc-locale: 828 installed and not shipped files. [installed-vs-shipped]
ERROR: glibc-locale-2.26-r0 do_package: Fatal QA errors found, failing task.
ERROR: glibc-locale-2.26-r0 do_package: Function failed: do_package
ERROR: Logfile of failure stored in: /home/murat/recipes/build/tmp/work/cortexa7hf-neon-vfpv4-poky-linux-gnueabi/glibc-locale/2.26-r0/temp/log.do_package.6463
ERROR: Task (/home/murat/recipes/poky/meta/recipes-core/glibc/glibc-locale_2.26.bb:do_package) failed with exit code '1'
With opencv i will processing image and show the pictures on the screen. so I need to add x11 to the distribution I want to obtain.
Thank you from now.
Related
I am currently working on a project that requires llvm-hs package. Since this package only supports up to llvm-9, while I do have llvm-13 installed on my machine for other projects, I built llvm-9 from source on my machine, and added its bin to PATH. However, it seems that when the C compiler was resolving the .inc files included in llvm-9's header files (e.g. #include "llvm/IR/Attributes.inc" in llvm/IR/Attributes.h), it incorrectly used those from /usr/include rather than those from the built llvm-9.
My observation is that GHC uses llvm-config to determine the relevant compiler arguments. On this machine, llvm-config-9 --includedir gives me {llvm-9-src-dir}/llvm/include, which is missing {llvm-9-src-dir}/build/include/ (where the correct .inc files are located). How should I build my llvm-9 such that llvm-config gives the correct includedir? The cmake configurations I used for building my llvm-9 was:
cmake ../llvm \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/opt/llvm90 \
-DLLVM_BUILD_LLVM_DYLIB=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_INSTALL_UTILS=ON \
-DLLVM_ENABLE_RTTI=ON \
-DLLVM_ENABLE_FFI=ON \
-DLLVM_BUILD_TESTS=OFF \
-DLLVM_ENABLE_DOXYGEN=OFF \
-DLLVM_ENABLE_PROJECTS=clang
Setting up vim for ts.
Installed plugin
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Added extensions
let g:coc_global_extensions = [
\ 'coc-snippets',
\ 'coc-pairs',
\ 'coc-tsserver',
\ 'coc-eslint',
\ 'coc-prettier',
\ 'coc-json',
\ ]
But when editor is open, the following error displays. any help
Using windows 10 OS
[coc.nvim] Error on activate extension coc-snippets: ENOENT: no such file or directory, mkdir 'H:\c\Users\Administrator.config\coc\ultisnips'
Make sure you have installed coc-snippets by executing the following command in your vim/nvim:
:CocInstall coc-snippets
Create a directory in terminal: mkdir 'H:\c\Users\Administrator.config\coc\ultisnips'
I'm facing this problem.
When I bitbake recipeA and recipeB separately, everything works fine.
bitbake recipeA
bitbake recipeB
What I want to do is to group recipeA and recipeB into a package group
inherit packagegroup
PACKAGES ="\
packagegroup-my-package \
"
RDEPENDS_${PN} += " \
recipeA \
recipeB \
"
After that
bitbake packagegroup-my-package
Now begins my problems.
All my processed recipes results remains in WORKDIR instead of going to DEPLOIDYR as expected, do_install is not processed (I suppose).
In first case execution, when I bitbake every recipe all my result are copied in to DEPLOYDIR, do_install is processed.
Thank you in advance for your support.
I think you need to add it to your local.conf or to your image recipe file to install it.
in the packagegroup class (which your recipe inherits) we clearly find :
# We only need the packaging tasks - disable the rest
deltask do_fetch
deltask do_unpack
deltask do_patch
deltask do_configure
deltask do_compile
deltask do_install
deltask do_populate_sysroot
I hope it helps you understand that.
I'm trying to build an application using the Yocto SDK. The compilation worked well, but when it comes to linking, following linker errors occurs:
...
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: /opt/mydistro/1.0.0/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libc.a(getcontext.o): in function `getcontext':
/usr/src/debug/glibc/2.29-r0/git/stdlib/../sysdeps/unix/sysv/linux/arm/getcontext.S:101: undefined reference to `_rtld_global_ro'
/opt/mydistro/1.0.0/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/8.3.0/real-ld: /opt/mydistro/1.0.0/sysroots/cortexa9t2hf-neon-poky-linux-gnueabi/usr/lib/libc.a(setcontext.o): in function `__startcontext':
/usr/src/debug/glibc/2.29-r0/git/stdlib/../sysdeps/unix/sysv/linux/arm/setcontext.S:100: undefined reference to `_rtld_global_ro'
collect2: error: ld returned 1 exit status
makefile:116: recipe for target 'ortable' failed
make: *** [ortable] Error 1
I have really no clue, why the object '_rtld_global_ro' cannot be found. Could someone tell me what is going wrong and what I can do to link the application, please? Maybe, there is a workaround for this?
Other applications could be build with same setup without this issue (sourcing the SDK using following command):
source /opt/mydistro/1.0.0/environment-setup-cortexa9t2hf-neon-poky-linux-gnueabi
Here is the image bb file (which I have used for building the SDK using the command bitbake my-image -c populate_sdk).
require recipes-extended/images/core-image-full-cmdline.bb
IMAGE_INSTALL_append = " \
emmy-w1-driver-sdiosdio \
emmy-w1-systemd \
eth-systemd \
can-systemd \
can-utils \
lighttpd \
dnsmasq \
parted \
swupdate \
swupdate-www \
u-boot-fw-utils \
linux-firmware-imx-sdma-imx6q \
"
TOOLCHAIN_HOST_TASK_append = " nativesdk-perl-modules"
SDKIMAGE_FEATURES_append = " staticdev-pkgs"
This is an issue in the upstream glibc sources: The ARM assembler version of setcontext assumes that all PIC code is dynamic linked, which means that static linking fails if glibc was built in static PIE mode (because that actives PIC without providing the dynamic linker code).
You either need to build glibc without static PIE support (I did not even know this was a supported configuration for 32-bit ARM), or replace the PIC macro with SHARED in sysdeps/unix/sysv/linux/arm/setcontext.S.
I need to create a .ipk package from Bitbake script. My bb file:
...
PR = "r0"
PACKAGES = "${PN}"
SRC_URI = " \
file://mypackage \
file://mypackage-startup \
"
do_install() {
install -m 0775 -d ${D}/userdata/costume
install -m 0744 ${WORKDIR}/mypackage ${D}/userdata/costume/mypackage
install -m 0644 ${WORKDIR}/mypackage-startup ${D}/userdata/costume/mypackage-startup
}
FILES_${PN} += "/userdata/costume"
FILES_${PN}-dbg += "/userdata/costume/.debug"
...
But I receive the next error:
ERROR: QA Issue with mypackage: non debug package contains .debug
directory: mypackage path
/work/.../mypackage-1.0-r0/packages-split/mypackage/userdata/costume/.debug/mypackage
FATAL: QA run found fatal errors. Please consider fixing them. ERROR:
Error in executing python function in:
/home/nickname/build/mypackage.bb ERROR:
Exception: Message:1 ERROR: Printing the
environment of the function ERROR: Function do_package_qa failed
ERROR: TaskFailed event exception, aborting ERROR: Build of
/home/nickname/build/mypackage.bb do_package failed
Line with FILES_${PN}-dbg was added after net surfing. But this fix not helped in my situation.
You set PACKAGES = "${PN}" which means the debug package is never created (the default value of PACKAGES does contain ${PN}-dbg).
Either remove the PACKAGES line (if you didn't have a good reason for it) or use
PACKAGES = "${PN}-dbg ${PN}"