← Back to team overview

ubuntu-phone team mailing list archive

Re: Adding missing packages to a armhf kit

 

Hi Darren,

the moc binary is not missing, this is in fact a bug in the Qt cmake files.
The wrong moc path is put in there. You can workaround this bug but you
have to delete the CMakeCache files in the builddirectory. If you are using
QtCreator , right click on the project and choose "run cmake", then it will do
the workaround automatically.

As for the missing Mkspec file, how old is your chroot? Does it maybe
need to be upgraded?  click chroot -a armhf -f ubuntu-sdk-14.10 upgrade

If the upgrade did not help, please check what mkspec it is looking for.

Last resort is to recreate the chroot:
click chroot -a armhf -f ubuntu-sdk.14.10 destroy
click chroot -a armhf -f ubuntu-sdk.14.10 create

Make sure to put in the correct framework you want to use ubuntu-sdk-14.10 vs ubuntu-sdk-15.04.

Benjamin

Am 12.04.2015 um 09:54 schrieb Darren Smith:
Hi,

I'm not sure if this is the best place to ask this question.
Please redirect me if not.

I've written a qml app for Ubuntu Touch which builds and runs fine on my desktop (Ubuntu 14.10 x86_64). When I try to build it with a "UbuntuSDK for armhf (GCC ubuntu-sdk-14.10-utopic)" kit I get the following error in the ubuntu-sdk:

/usr/lib/arm-linux-gnueabihf/cmake/Qt5Core/Qt5CoreConfig.cmake:27: error: The imported target "Qt5::Core" references the file "/usr/lib/arm-linux-gnueabihf/qt5/bin/moc" 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 "/usr/lib/arm-linux-gnueabihf/cmake/Qt5Core/Qt5CoreConfigExtras.cmake" but not all the files it references. /usr/lib/arm-linux-gnueabihf/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:17 (_qt5_Core_check_file_exists) /usr/lib/arm-linux-gnueabihf/cmake/Qt5Core/Qt5CoreConfig.cmake:140 (include) CMakeLists.txt:8 (find_package)

How can I add this missing "moc" binary to the chroot?

Also when I look at this kit in "Manage kits" I see an error "Mkspec not found for QT version".
Is this just a symptom of the problem above?

Any help would be much appreciated,
Darren






Follow ups

References