Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator won't build project after machine crash
Qt 6.11 is out! See what's new in the release blog

Qt Creator won't build project after machine crash

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 4.8k Views 1 Watching
  • 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.
  • C Offline
    C Offline
    camt
    wrote on last edited by
    #1

    I am using Qt Creator 2.8.0 on ubuntu 12.04. My Ubuntu box was acting funny so I rebooted it from a terminal, and after the reboot my Qt project won't build anymore.

    The compile output is:
    14:23:15: The process "/usr/local/angstrom/arm/bin/qmake" exited normally.
    14:23:15: Starting: "/usr/bin/make"
    ../abx/mainwindow.ui -o ui_mainwindow.h
    ../abx/mainwindow.ui: 1: ../abx/mainwindow.ui: cannot open ?xml: No such file
    ../abx/mainwindow.ui: 2: ../abx/mainwindow.ui: cannot open ui: No such file
    ../abx/mainwindow.ui: 3: ../abx/mainwindow.ui: cannot open class: No such file
    ../abx/mainwindow.ui: 4: ../abx/mainwindow.ui: cannot open widget: No such file
    ../abx/mainwindow.ui: 5: ../abx/mainwindow.ui: cannot open property: No such file
    ../abx/mainwindow.ui: 6: ../abx/mainwindow.ui: cannot open rect: No such file
    ../abx/mainwindow.ui: 7: ../abx/mainwindow.ui: Syntax error: redirection unexpected
    make: *** [ui_mainwindow.h] Error 2
    14:23:15: The process "/usr/bin/make" exited with code 2.

    I should note that I can build it from the command line.

    I've scoured the forum and haven't come across any solution to this.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      maxim.prishchepa
      wrote on last edited by
      #2

      try to clean up project,
      something like that:
      make clean
      make

      Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

      1 Reply Last reply
      0
      • S Offline
        S Offline
        shajeen
        wrote on last edited by
        #3

        Go to Build->Clean All in Qt Creator
        Build All again..

        Shajeen Ahamed

        1 Reply Last reply
        0
        • C Offline
          C Offline
          camt
          wrote on last edited by
          #4

          cleaning the project doesn't help, it's something to do with installing on Ubuntu (VM workstation). I shared the files from my VM to windows and it built fine there. I created a new Ubuntu VM and copied the files and its working there now too.

          I'm concerned this is going to happen again. Is there anything special that I need to do when installing Qt creator in Ubuntu (12.04)? All that I did was download qt-creator-linux-x86_64-opensource-2.8.0.run from http://download.qt-project.org/official_releases/qtcreator/2.8/2.8.0/ and run it.

          Perhaps there are some permissions commands that I need to run?

          1 Reply Last reply
          0
          • C Offline
            C Offline
            camt
            wrote on last edited by
            #5

            The root cause of this was that the environment wasn't properly setup. I am using the Angstrom arm environment setup script, so I just need to append the source command to the terminal window that I call it from, and then launch Qt Creator from there.

            So for beaglebone black, it's
            $./usr/local/angstrom/arm/environment-setup > source
            $./qtcreator &

            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