Bug 4565 - Could NOT find Qt4 (missing: QT_RCC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) (found version "4.8.1")
Summary: Could NOT find Qt4 (missing: QT_RCC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.4
Hardware: Other x86_64
: Low minor
Target Milestone: 1.4.2
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2013-05-27 17:38 UTC by nesredin
Modified: 2013-07-10 17:56 UTC (History)
5 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nesredin 2013-05-27 17:38:17 UTC
DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing shell function do_configure
---------------------------------------------
CMake 2.8.11, Copyright 2000-2012 Kitware, Inc.
C compiler on this system is: gcc -isystem/home/swart/yocto/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe
C++ compiler on this system is: g++ -isystem/home/swart/yocto/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe
Makefile processor on this system is: make
g++ is GNU compiler
g++ has setenv
g++ has unsetenv
g++ does not have environ in stdlib.h
g++ has STL in std:: namespace
g++ has ANSI streams
g++ has streams in std:: namespace
g++ has sstream
g++ has operator!=(string, char*)
g++ has stl iterator_traits
g++ has standard template allocator
g++ has allocator<>::rebind<>
g++ does not have non-standard allocator<>::max_size argument
g++ has stl containers supporting allocator objects
g++ has header cstddef
g++ requires template friends to use <>
g++ supports member templates
g++ has standard template specialization syntax
g++ has argument dependent lookup
g++ has struct stat with st_mtim member
g++ has ios::binary openmode
g++ has ANSI for scoping
---------------------------------------------
make: `cmake' is up to date.
loading initial cache file /home/swart/yocto/build/tmp/work/x86_64-linux/cmake-native/2.8.11-r0/cmake-2.8.11/Bootstrap.cmk/InitialCacheFlags.cmake
CMake Warning at Modules/FindQt4.cmake:657 (message):
  /usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu" but
  QtCore could not be found there.  Qt is NOT installed correctly for the
  target build environment.
Call Stack (most recent call first):
  Tests/RunCMake/CMakeLists.txt:79 (find_package)


CMake Error at Modules/FindQt4.cmake:1028 (set_property):
  set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
  been created.
Call Stack (most recent call first):
  Tests/RunCMake/CMakeLists.txt:79 (find_package)


CMake Error at Modules/FindQt4.cmake:1033 (set_property):
  set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
  been created.
Call Stack (most recent call first):
  Tests/RunCMake/CMakeLists.txt:79 (find_package)


CMake Error at Modules/FindQt4.cmake:1036 (set_property):
  set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
  been created.
Call Stack (most recent call first):
  Tests/RunCMake/CMakeLists.txt:79 (find_package)


CMake Warning at Modules/FindQt4.cmake:657 (message):
  /usr/bin/qmake reported QT_INSTALL_LIBS as "/usr/lib/x86_64-linux-gnu" but
  QtCore could not be found there.  Qt is NOT installed correctly for the
  target build environment.
Call Stack (most recent call first):
  Tests/CMakeLists.txt:266 (find_package)


CMake Error at Modules/FindQt4.cmake:1028 (set_property):
  set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
  been created.
Call Stack (most recent call first):
  Tests/CMakeLists.txt:266 (find_package)


CMake Error at Modules/FindQt4.cmake:1033 (set_property):
  set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
  been created.
Call Stack (most recent call first):
  Tests/CMakeLists.txt:266 (find_package)


CMake Error at Modules/FindQt4.cmake:1036 (set_property):
  set_property could not find TARGET Qt4::QtCore.  Perhaps it has not yet
  been created.
Call Stack (most recent call first):
  Tests/CMakeLists.txt:266 (find_package)


-- Could NOT find Qt4 (missing:  QT_RCC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) (found version "4.8.1")
-- Configuring incomplete, errors occurred!
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
ERROR: Function failed: do_configure (log file is located at /home/swart/yocto/build/tmp/work/x86_64-linux/cmake-native/2.8.11-r0/temp/log.do_configure.25781)
Comment 1 nesredin 2013-05-27 17:43:58 UTC
hi everyone,

i just built successfully the minimul version using Hob. But afterwards with no change to configuration of any type i tried to build for core-image-sato again with Hob, but I encountered qt4 issue. I reinstalled qt4 package for ubuntu still no difference. I dont know what to do further. 

Build Configuration:
BB_VERSION        = "1.19.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-12.04"
TARGET_SYS        = "x86_64-poky-linux"
MACHINE           = "sugarbay"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4+snapshot-20130527"
TUNE_FEATURES     = "m64"
TARGET_FPU        = ""
meta              
meta-yocto        = "master:676fd3f394a0c0576b63c77ed2184bf5f42c29b6"
meta-intel        
meta-sugarbay     = "master:2ba2e0ea55bab687134b452a5db81d189b820f59"
meta-hob          = "master:676fd3f394a0c0576b63c77ed2184bf5f42c29b6"


I really appreicate for your help.

thank you,

Nas
Comment 2 Paul Eggleton 2013-06-03 14:17:13 UTC
I've tried to reproduce this with master on top of Ubuntu 12.04 and haven't been able to so far. Can you attach the output of "dpkg -l | grep qt4" so I can see which Qt packages you have installed on your host?
Comment 3 Paul Eggleton 2013-06-04 12:58:37 UTC
Changing status to NEEDINFO following on from comment above.
Comment 4 Martin Jansa 2013-06-30 12:05:51 UTC
I'm seeing this lately in jenkins builds, full log
http://logs.nslu2-linux.org/buildlogs/oe/oe-shr-core-branches/log.world.20130629_142626.log/bitbake.log

$ dpkg -l | grep qt4
ii  libqt4-dbus:i386                          4:4.8.1-0ubuntu4.3                  Qt 4 D-Bus module
ii  libqt4-declarative:i386                   4:4.8.1-0ubuntu4.3                  Qt 4 Declarative module
ii  libqt4-designer:i386                      4:4.8.1-0ubuntu4.3                  Qt 4 designer module
ii  libqt4-network:i386                       4:4.8.1-0ubuntu4.3                  Qt 4 network module
ii  libqt4-opengl:i386                        4:4.8.1-0ubuntu4.3                  Qt 4 OpenGL module
ii  libqt4-qt3support:i386                    4:4.8.1-0ubuntu4.3                  Qt 3 compatibility library for Qt 4
ii  libqt4-script:i386                        4:4.8.1-0ubuntu4.3                  Qt 4 script module
ii  libqt4-scripttools:i386                   4:4.8.1-0ubuntu4.3                  Qt 4 script tools module
ii  libqt4-sql:i386                           4:4.8.1-0ubuntu4.3                  Qt 4 SQL module
ii  libqt4-svg:i386                           4:4.8.1-0ubuntu4.3                  Qt 4 SVG module
ii  libqt4-test:i386                          4:4.8.1-0ubuntu4.3                  Qt 4 test module
ii  libqt4-xml:i386                           4:4.8.1-0ubuntu4.3                  Qt 4 XML module
ii  libqt4-xmlpatterns:i386                   4:4.8.1-0ubuntu4.3                  Qt 4 XML patterns module
ii  qt4-qmake                                 4:4.8.1-0ubuntu4.3                  Qt 4 qmake Makefile generator tool

Description:    Ubuntu 12.04.1 LTS
Comment 5 Paul Eggleton 2013-07-02 09:26:55 UTC
I have now reproduced this issue here. It appears to be triggered by having 32-bit Qt libraries installed on the host but a 64-bit version of qmake, which CMake considers to be a broken configuration. If you have the same variants of qmake and Qt libraries (or no qmake/Qt installed) the issue does not occur.

Interestingly though the failure seems to be a regression in 2.8.11. With dylan that uses 2.8.10, it warns about not finding Qt but configure succeeds. I'll compare the code to see why this is happening.