"Qt5::Core" references the file...moc...but this file does not exist

Bug #1600761 reported by Cris Dywan
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu SDK IDE
Fix Released
High
Unassigned

Bug Description

In my CMake project (QuasselIRC) the build fails to find moc after an initial successful build.

Work-around: remove the build folder by hand.

  The imported target "Qt5::Core" references the file

     "/var/lib/lxd/containers/device-armhf/rootfs/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

     "/var/lib/lxd/containers/device-armhf/rootfs/usr/lib/arm-linux-gnueabihf/cmake/Qt5Core/Qt5CoreConfigExtras.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /var/lib/lxd/containers/device-armhf/rootfs/usr/lib/arm-linux-gnueabihf/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:17 (_qt5_Core_check_file_exists)
  /var/lib/lxd/containers/device-armhf/rootfs/usr/lib/arm-linux-gnueabihf/cmake/Qt5Core/Qt5CoreConfig.cmake:158 (include)
  CMakeLists.txt:198 (find_package)

Related branches

Changed in ubuntu-sdk-ide:
status: New → Fix Committed
Revision history for this message
Максим Савенков (max-savenkov) wrote :

I encountered the same problem with my own project and the latest version of ubuntu-sdk-tools (0.5+16.04.20160712-0~27~ubuntu16.04.1). It seems like it only happens to some projects, because if I create a project from scratch, there are no problems. But with my project, every time I re-run CMakeLists.txt, I get this error.

Changed in ubuntu-sdk-ide:
status: Fix Committed → Won't Fix
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.