Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT Creator and BeagleBone: Syntax error: newline unexpected
Forum Updated to NodeBB v4.3 + New Features

QT Creator and BeagleBone: Syntax error: newline unexpected

Scheduled Pinned Locked Moved Mobile and Embedded
4 Posts 4 Posters 4.0k 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.
  • V Offline
    V Offline
    vdavidguerrero
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • J Offline
      J Offline
      jigarchokshi
      wrote on last edited by
      #2

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

      Thank you,
      Jigar Chokshi

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

        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:
        http://embedded.von-kannen.net/2014/05/21/qt-4-8-6-on-beaglebone-black/

        Greetings,
        Marcel

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Sajith P
          wrote on last edited by
          #4

          Hi, Jigar
          I had also the same issue, please read the below blog
          http://armembedded.blogspot.in/2016/02/qt-application-in-beagle-bone-black-in.html
          This might help you

          Greetings,
          Sajith

          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