[Development] Error The imported target "Qt5::Core" references the file "/qmake"

Neuer User auslands-kv at gmx.de
Wed May 21 12:05:59 CEST 2014

Am 21.05.2014 11:51, schrieb Stephen Kelly:
> On Wednesday, May 21, 2014 10:46:09 Neuer User wrote:
>> I found a yocto recipe from Andrey Telepin and tried to modify it for
>> Qt5.
> You need to find out if Qt-Gstreamer is already ported to Qt 5. Assuming they 
> use cmake, you need to ask them if they have any special flags they want you 
> to use. With Qt 5 (as opposed to Qt 4), you don't need all the bin dir and 
> include dir settings etc typically. I don't know if your yocto recipe adds 
> extra complications. That's also something for you to investigate.
>  http://doc-snapshot.qt-project.org/qt5-stable/cmake-manual.html
>  http://www.cmake.org/cmake/help/v3.0/manual/cmake-qt.7.html
> Thanks,
Yes, qtgstreamer has been ported to Qt5. There is even an option to
choose if it is Qt5 or Qt4:


The problem seems to be pretty specific to Yocto, if I see that
correctly, as Qt5CoreConfig.cmake has an empty

Probably, this variable should be defined somewhere, probably
automatically. But, I guess I did something wrong in the recipe, so that
is missing.

Did anybody compile it sucessfully in yocto? Or does anybody know, where
and how this OE_QMAKE_PATH_EXTERNAL_HOST_BINS is defined?



P.S. I already grepped through the sources, but couldn't find any clue...


I get the following error during configure:

| -- Using Qt5 (min: 5.0.0)
| CMake Error at
|   The imported target "Qt5::Core" references the file
|      "/qmake"
|   but this file does not exist.  Possible reasons include:
|   * The file was deleted, renamed, or moved to another location.
|   * An install or uninstall procedure did not complete successfully.
|   * The installation package was faulty and contained
|   but not all the files it references.
| Call Stack (most recent call first):
|   cmake/modules/FindQt4or5.cmake:69 (find_package)
|   CMakeLists.txt:24 (find_package)

It seems that OE_QMAKE_PATH_EXTERNAL_HOST_BINS is not defined. I have no
idea, however, where and how it should be defined correctly.

More information about the Development mailing list