QT Creator and BeagleBone: Syntax error: newline unexpected

  • Hi,

    I've a few problems trying to set up my developer enovoirment, this is that i've done:

    1. i downloaded the anstrong tool chain from: http://www.angstrom-distribution.org/toolchains/ to my ubuntu 12.04 Virtual Machine.

    2. Run the Environment setup by using ". /usr/local/angstrom/arm/environment-setup"

    3. Download QT Creator 2.8 from: http://download.qt-project.org/official_releases/qtcreator/2.8/2.8.0/

    On my BeagleBoneBlack which is running Angstrong Linux and using 3.8 linux kernel i downloaded qt using "opkg install qt4-embedded --force-dependencies".

    i was following derek's video guide: http://www.youtube.com/watch?v=kP7uvOu9hoQ and made and example app and "qmake2" in the app's folder and then "make", upload the file to my beaglebone and run in it using ./my_app -qws and it worked!

    and now my problems...

    First when i tried to create a new "QT GUI aplication" there wasn't any tample more than , Code Snippet , everything under "Non-Qt project" and "Import Project". So i tried to fix by downloading the same Qt creator derek was using so i run the unistall in the qt creator folder and installed the 2.6 qt creator and the same....

    Does anybody know why could it happend?

    Second, i tough maybe the problem is some library missing so i installed the QT 5.1.1 "Suite" from: http://qt-project.org/downloads "Qt 5.1.1 for Linux 32-bit (417 MB)" and then i solved the problem, now i have more templates whether i'm using 2.6 or 2.8 qt creator.

    i run the environment script again and opened qt creator and:

    1. "Create new project" -> applications -> Qt Gui Application.

    2. i create a new kit:

      • Name: BeagleBoneKit2
      • Device Type: Generic Linux Device
      • Device: MyBeagleBone its ip and root password.
      • sysroot: empty
      • Compiler: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-g++
      • Debbuger: /usr/local/angstrom/arm/bin/arm-angstrom-linux-gnueabi-gdb
      • Qt Version: /usr/local/angstrom/arm/bin/qmake2 (Qt 4.6.3 arm).
      • Qt mkspec: empty
    3. i left the detail secction the same, and git as source control.

    when i tried to run my app i got: :-1: error: execvp: ../Vincent/mainwindow.ui: Permission denied

    so i chmod 777 * in the app's folder.

    now everytime i try to build my app i get:

    /home/vdavidguerrero/app/down/Vincent/mainwindow.ui:-1: error: 2: ../Vincent/mainwindow.ui: Syntax error: newline unexpected

    more detailed:

    21:25:26: Starting: "/usr/local/angstrom/arm/bin/qmake2" /home/vdavidguerrero/app/down/Vincent/Vincent.pro -r -spec linux-gnueabi-oe-g++ CONFIG+=debug
    21:25:26: The process "/usr/local/angstrom/arm/bin/qmake2" exited normally.
    21:25:26: Starting: "/usr/bin/make"
    ../Vincent/mainwindow.ui -o ui_mainwindow.h
    ../Vincent/mainwindow.ui: 2: ../Vincent/mainwindow.ui: Syntax error: newline unexpected
    make: *** [ui_mainwindow.h] Error 2
    21:25:26: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project Vincent (kit: BeagleBoneKit2)
    When executing step 'Make'
    21:25:26: Elapsed time: 00:00.

    and this is how my project's page looks like :http://i42.tinypic.com/2hs9iwz.png

    thanks you!! i really need to fix this.

  • hey..
    So you found solution for this?
    i am facing same issue.

    Thank you,
    Jigar Chokshi

  • Hi Jigar,
    I've written down the procedure to get Qt working properly on the Beaglebone.
    Maybe it'll help you, check it out at:


  • Hi, Jigar
    I had also the same issue, please read the below blog
    This might help you


Log in to reply

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