How to get qt5-dev packages in angstrom-qt5-x11 image

Hello, I have a angstrom-qt5-x11-image running on TK1, I am using cmake for installing a qt application, but apparently cmake requires development versions of qt, So anyone can tell me how to get qt5 dev packages in TK1.

Qt5 related error

-----------------------------------------------------------------------------
 -- The following REQUIRED packages could NOT be located on your system.
 -- You must install these packages before continuing.
 -----------------------------------------------------------------------------
    * Qt (5.0.0 or higher)  <http://qt-project.org/>
      Required for building everything
    * QtQuick2 (QtQuick) (5.0.0 or higher)  <http://qt-project.org/>
      Required for building QtQuick2 support
    * QtQml (5.0.0 or higher)  <http://qt-project.org/>
      Required for building QtQuick2 support
 
 -----------------------------------------------------------------------------

Full cmake output

root@apalis-tk1:~/qt-gstreamer-1.2.0/build# cmake .. -DCMAKE_INSTALL_PREFIX=/home/root/qt-gstreamer-1.2.0/install  -DQT_VERSION=5
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using Qt5 (min: 5.0.0)
CMake Warning at cmake/modules/FindQt4or5.cmake:69 (find_package):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Core", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Core"
  (requested version 5.0.0) with any of the following names:

    Qt5CoreConfig.cmake
    qt5core-config.cmake

  Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
  "Qt5Core_DIR" to a directory containing one of the above files.  If
  "Qt5Core" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:24 (find_package)


CMake Warning at cmake/modules/FindQt4or5.cmake:69 (find_package):
  By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Gui", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Gui" (requested
  version 5.0.0) with any of the following names:

    Qt5GuiConfig.cmake
    qt5gui-config.cmake

  Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
  "Qt5Gui_DIR" to a directory containing one of the above files.  If "Qt5Gui"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:24 (find_package)


CMake Warning at cmake/modules/FindQt4or5.cmake:69 (find_package):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets"
  (requested version 5.0.0) with any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:24 (find_package)


CMake Warning at cmake/modules/FindQt4or5.cmake:69 (find_package):
  By not providing "FindQt5OpenGL.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5OpenGL", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5OpenGL"
  (requested version 5.0.0) with any of the following names:

    Qt5OpenGLConfig.cmake
    qt5opengl-config.cmake

  Add the installation prefix of "Qt5OpenGL" to CMAKE_PREFIX_PATH or set
  "Qt5OpenGL_DIR" to a directory containing one of the above files.  If
  "Qt5OpenGL" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:24 (find_package)


CMake Warning at cmake/modules/FindQt4or5.cmake:69 (find_package):
  By not providing "FindQt5Declarative.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt5Declarative", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Declarative"
  (requested version 5.0.0) with any of the following names:

    Qt5DeclarativeConfig.cmake
    qt5declarative-config.cmake

  Add the installation prefix of "Qt5Declarative" to CMAKE_PREFIX_PATH or set
  "Qt5Declarative_DIR" to a directory containing one of the above files.  If
  "Qt5Declarative" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:24 (find_package)


CMake Warning at cmake/modules/FindQt4or5.cmake:69 (find_package):
  By not providing "FindQt5Quick.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Quick",
  but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Quick"
  (requested version 5.0.0) with any of the following names:

    Qt5QuickConfig.cmake
    qt5quick-config.cmake

  Add the installation prefix of "Qt5Quick" to CMAKE_PREFIX_PATH or set
  "Qt5Quick_DIR" to a directory containing one of the above files.  If
  "Qt5Quick" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:24 (find_package)


CMake Warning at cmake/modules/FindQt4or5.cmake:69 (find_package):
  By not providing "FindQt5Qml.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Qml", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Qml" (requested
  version 5.0.0) with any of the following names:

    Qt5QmlConfig.cmake
    qt5qml-config.cmake

  Add the installation prefix of "Qt5Qml" to CMAKE_PREFIX_PATH or set
  "Qt5Qml_DIR" to a directory containing one of the above files.  If "Qt5Qml"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  CMakeLists.txt:24 (find_package)


CMake Warning at cmake/modules/FindQt4or5.cmake:69 (find_package):
  By not providing "FindQt5Test.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Test", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Test"
  (requested version 5.0.0) with any of the following names:

    Qt5TestConfig.cmake
    qt5test-config.cmake

  Add the installation prefix of "Qt5Test" to CMAKE_PREFIX_PATH or set
  "Qt5Test_DIR" to a directory containing one of the above files.  If
  "Qt5Test" provides a separate development package or SDK, be sure it has
  been installed.
Call Stack (most recent call first):
  CMakeLists.txt:24 (find_package)


-- Could NOT find Qt4or5 (missing:  _Qt4or5_FOUND Core Gui Widgets) 
-- Boost version: 1.64.0
-- GCC 4.5 or later detected. Enabling C++0x support in QTGSTREAMER_FLAGS.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'gstreamer-1.0'
--   Found gstreamer-1.0, version 1.12.2
-- Checking for module 'gstreamer-base-1.0'
--   Found gstreamer-base-1.0, version 1.12.2
-- Found GSTREAMER_BASE_LIBRARY: /usr/lib/libgstbase-1.0.so
-- Found GSTREAMER_BASE_INCLUDE_DIR: /usr/include/gstreamer-1.0
-- Found GStreamer: /usr/lib/libgstreamer-1.0.so (Required is at least version "1.0.0") 
-- Checking for module 'gstreamer-plugins-base-1.0'
--   Found gstreamer-plugins-base-1.0, version 1.12.2
-- Checking for module 'gstreamer-app-1.0'
--   Found gstreamer-app-1.0, version 1.12.2
-- Found GSTREAMER_APP_LIBRARY: /usr/lib/libgstapp-1.0.so
-- Found GSTREAMER_APP_INCLUDE_DIR: /usr/include/gstreamer-1.0
-- Checking for module 'gstreamer-audio-1.0'
--   Found gstreamer-audio-1.0, version 1.12.2
-- Found GSTREAMER_AUDIO_LIBRARY: /usr/lib/libgstaudio-1.0.so
-- Found GSTREAMER_AUDIO_INCLUDE_DIR: /usr/include/gstreamer-1.0
-- Checking for module 'gstreamer-video-1.0'
--   Found gstreamer-video-1.0, version 1.12.2
-- Found GSTREAMER_VIDEO_LIBRARY: /usr/lib/libgstvideo-1.0.so
-- Found GSTREAMER_VIDEO_INCLUDE_DIR: /usr/include/gstreamer-1.0
-- Checking for module 'gstreamer-pbutils-1.0'
--   Found gstreamer-pbutils-1.0, version 1.12.2
-- Found GSTREAMER_PBUTILS_LIBRARY: /usr/lib/libgstpbutils-1.0.so
-- Found GSTREAMER_PBUTILS_INCLUDE_DIR: /usr/include/gstreamer-1.0
-- Found GStreamerPluginsBase: TRUE (Required is at least version "1.0.0") 
-- Checking for module 'glib-2.0'
--   Found glib-2.0, version 2.52.3
-- Found GLIB2: /usr/lib/libglib-2.0.so  
-- Checking for module 'gobject-2.0'
--   Found gobject-2.0, version 2.52.3
-- Found GObject: /usr/include/glib-2.0  
-- Performing Test USE_OPENGLES
-- Performing Test USE_OPENGLES - Failed
-- Could NOT find OpenGL (missing:  OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR) 
CMake Warning (dev) at examples/CMakeLists.txt:13 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target "examples_distcheck".
Call Stack (most recent call first):
  examples/CMakeLists.txt:22 (example_distcheck)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Could NOT find Doxygen (missing:  DOXYGEN_EXECUTABLE) 

-----------------------------------------------------------------------------
-- The following external packages were located on your system.
-- This installation will have the extra features provided by these packages.
-----------------------------------------------------------------------------
   * Boost - Required for building QtGLib
   * GStreamer - Required to build QtGStreamer
   * GStreamer base library - Used for building the qt5videosink element
   * GStreamer app library - Required to build QtGStreamerUtils
   * GStreamer audio library - Required to build QtGStreamer
   * GStreamer video library - Required to build QtGStreamer
   * GStreamer pbutils library - Used for building the Discoverer API
   * GLib - Required to build QtGLib
   * GObject - Required to build QtGLib

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * QtOpenGL (5.0.0 or higher)  <http://qt-project.org/>
     Required for OpenGL acceleration in qtvideosink and QtGStreamerUi
   * QtQuick1 (QtDeclarative) (5.0.0 or higher)  <http://qt-project.org/>
     Required for building QtQuick1 support
   * OpenGL  <http://www.opengl.org>
     Required for OpenGL rendering support in qt5videosink
   * Doxygen  <http://www.doxygen.org/>
     Used to generate the API documentation

-----------------------------------------------------------------------------
-- The following REQUIRED packages could NOT be located on your system.
-- You must install these packages before continuing.
-----------------------------------------------------------------------------
   * Qt (5.0.0 or higher)  <http://qt-project.org/>
     Required for building everything
   * QtQuick2 (QtQuick) (5.0.0 or higher)  <http://qt-project.org/>
     Required for building QtQuick2 support
   * QtQml (5.0.0 or higher)  <http://qt-project.org/>
     Required for building QtQuick2 support

-----------------------------------------------------------------------------

CMake Error at cmake/modules/MacroLogFeature.cmake:141 (MESSAGE):
  Exiting: Missing Requirements
Call Stack (most recent call first):
  CMakeLists.txt:202 (macro_display_feature_log)


-- Configuring incomplete, errors occurred!
See also "/home/root/qt-gstreamer-1.2.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/root/qt-gstreamer-1.2.0/build/CMakeFiles/CMakeError.log".

I am also attaching cmake log file.
Thank you.

link text

regards akshay

Hi

Note that we at Toradex believe that cross compiling is the prefered method of developing software.

We really do!


I assume you already found this page about native compilation.

In order to install more than the headers of the toolchain you could additionally add ‘dev-pkgs’ to EXTRA_IMAGE_FEATURES in build/conf/local.conf. This will install the *.dev files of every package installed in the rootfs.

Max

P.S. For those using i.MX6 please also checkout this post.