Hello,

I am building my custom rootfs as I need to add packages to it. As this is a product, I do not want to just install things on the fly using the booted target system. I want to build it on the host system and have it be repeatable. With that said, I have a few requirements and opencv with opengl support is one of them. I can get opencv to compile and onto the rootfs by placing this into my local.conf...

Qt Code:
  1. IMAGE_INSTALL_append += "opencv pciutils"
  2. IMAGE_INSTALL_append += "libopencv-core-dev"
  3. IMAGE_INSTALL_append += "libopencv-highgui-dev"
  4. IMAGE_INSTALL_append += "libopencv-imgproc-dev"
  5. IMAGE_INSTALL_append += "libopencv-objdetect-dev"
  6. IMAGE_INSTALL_append += "libopencv-ml-dev"
  7. IMAGE_INSTALL_append += "opencv-apps"
  8. IMAGE_INSTALL_append += "opencv-dev"
  9. IMAGE_INSTALL_append += "python-opencv"
  10. #IMAGE_INSTALL_append += "python-modules”
  11. IMAGE_INSTALL_append += "imx-gpu-viv"
To copy to clipboard, switch view to plain text mode 

With this, there is configuring opencv. In build/sources/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.bb I have added a few lines to the variable that looks like the config variable (EXTRA_OECMAKE) ...
Qt Code:
  1. -DWITH_OPENGL=ON \
To copy to clipboard, switch view to plain text mode 

The compiling of opencv works except in looking at "build/build-apalis-imx6/tmp/work/armv7ahf-vfp-neon-poky-linux-gnueabi/opencv/2.4.11+gitAUTOINC+2c9547e314-r0/temp/log.do_compile", except the important part I need is not found...

Qt Code:
  1. -- GUI:
  2. -- QT: NO
  3. -- GTK+ 2.x: NO
  4. -- GThread : NO
  5. -- GtkGlExt: NO
  6. -- OpenGL support: NO
  7. -- VTK support: NO
To copy to clipboard, switch view to plain text mode 

I have then added or edited these two lines in my local.conf...
Qt Code:
  1. DISTRO_FEATURES_append += "opengl"
  2. IMAGE_INSTALL_append += "opengl opencv pciutils"
To copy to clipboard, switch view to plain text mode 

Here's the problem now...

Qt Code:
  1. $ bitbake b2qt-embedded-qt5-image
  2. Loading cache: 100% |#################################################################################################################################################| ETA: 00:00:00
  3. Loaded 2638 entries from dependency cache.
  4. Parsing recipes: 100% |###############################################################################################################################################| Time: 00:00:00
  5. Parsing of 2066 .bb files complete (2064 cached, 2 parsed). 2637 targets, 412 skipped, 35 masked, 0 errors.
  6. NOTE: Resolving any missing task queue dependencies
  7. [B]ERROR: Nothing RPROVIDES 'opengl' (but /home/rrneng/svn/mcs/build/sources/meta-boot2qt/recipes-qt/images/b2qt-embedded-qt5-image.bb RDEPENDS on or otherwise requires it)
  8. NOTE: Runtime target 'opengl' is unbuildable, removing...
  9. Missing or unbuildable dependency chain was: ['opengl']
  10. ERROR: Required build target 'b2qt-embedded-qt5-image' has no buildable providers.
  11. Missing or unbuildable dependency chain was: ['b2qt-embedded-qt5-image', 'opengl'][/B]
To copy to clipboard, switch view to plain text mode 


What am I missing?

Thank you for your time!

Cheers,
Pete