Qt Creator won't build project after machine crash



  • 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.



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



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



  • 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?



  • 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 &


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.