[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:

-DQT_VERSION=5

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

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?

Thanks

Michael

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
/home/ubuntu/yocto/build/tmp/sysroots/cubox-i/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:27
(message):
|   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
|
|
"/home/ubuntu/yocto/build/tmp/sysroots/cubox-i/usr/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"
|
|   but not all the files it references.
|
| Call Stack (most recent call first):
|
/home/ubuntu/yocto/build/tmp/sysroots/cubox-i/usr/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:6
(_qt5_Core_check_file_exists)
|
/home/ubuntu/yocto/build/tmp/sysroots/cubox-i/usr/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:140
(include)
|   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