Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. CMake Ubuntu AUTOUIC not working?
QtWS25 Last Chance

CMake Ubuntu AUTOUIC not working?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 610 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • VRoninV Offline
    VRoninV Offline
    VRonin
    wrote on last edited by
    #1

    I'm running into a weird issue, I have a CMake project that works both in Windows and MacOS but fails in Ubuntu Xenial with the message:

    CMake Error at demo/CMakeLists.txt:29 (add_executable):
      Cannot find source file:
        MainWindow.ui
    

    I use g++6.5 and CMake 3.12.4 so i can't think of a reason why it's going wrong.

    Full log available here

    "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
    ~Napoleon Bonaparte

    On a crusade to banish setIndexWidget() from the holy land of Qt

    J.HilkJ 1 Reply Last reply
    0
    • VRoninV VRonin

      I'm running into a weird issue, I have a CMake project that works both in Windows and MacOS but fails in Ubuntu Xenial with the message:

      CMake Error at demo/CMakeLists.txt:29 (add_executable):
        Cannot find source file:
          MainWindow.ui
      

      I use g++6.5 and CMake 3.12.4 so i can't think of a reason why it's going wrong.

      Full log available here

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @VRonin
      any chance this could be related to

      https://bugreports.qt.io/browse/QTBUG-72641

      there was an error in qmake and unresolved dependencies at runtime, the error targeted MacOS, but KaiKoehne brought the issue up, if cmake handles the issue.
      AFAIK noone checked that.


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      0
      • VRoninV Offline
        VRoninV Offline
        VRonin
        wrote on last edited by
        #3

        I tried to downgrade to 5.11 and same result so I suspect it's not a Qt bug but something in my code

        "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
        ~Napoleon Bonaparte

        On a crusade to banish setIndexWidget() from the holy land of Qt

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved