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. [SOLVED].exe throws Syntax Error Unexpected in Qnx
Forum Update on Monday, May 27th 2025

[SOLVED].exe throws Syntax Error Unexpected in Qnx

Scheduled Pinned Locked Moved Mobile and Embedded
5 Posts 2 Posters 3.8k 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.
  • S Offline
    S Offline
    Sriee
    wrote on 12 May 2014, 11:31 last edited by
    #1

    I am trying to run a simple Example on my target board running QNX RTOS.

    My Development Environment
    Qnx SDP 6.6
    Ubuntu 12.0.4
    Qt Creator 3.1
    Qt 5.1 version
    iMx6 Sabre Auto/AI Target Board

    I was able to cross compile my Qt Application by setting the device toolkit, Compiler and Debugger. I have not connected the device with Qt Creator using SSH connection. I tried to Create a Tarball (.tar) by modiying the Run settings in Projects Tab.

    I am running QNX in VMWare Player.
    I used Momentics IDE to connect to the VMWare Player.
    I placed the hello.tar in the QNX File System
    I used the "Terminal" program in QNX to untar hello.tar
    When I run the .exe file from the terminal it shows
    @
    "./hello[1]: syntax error : <some special characters> unexpected"
    @
    Need Clarification
    I want to place the Qt Application in the SD card and run the application from the Target Board. Where am I going wrong.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andreyc
      wrote on 12 May 2014, 12:24 last edited by
      #2

      What does command "file" says?
      @
      file ./hello
      @

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sriee
        wrote on 13 May 2014, 04:59 last edited by
        #3

        Hi Andrec,

        When I execute the above command I get the following output

        "./hello: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamical
        ses shared libs), 0 bytes lazy stack, 4096 bytes preallocated stack,
        bytes lazy stack, -413921280 bytes preallocated stack, not stripped"

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on 13 May 2014, 19:25 last edited by
          #4

          Looks like shell treats your binary file like a shell script
          What does 'uname -a' returns and how do you start your file ?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sriee
            wrote on 14 May 2014, 03:55 last edited by
            #5

            The reason for that error is that Qt related libraries are not present in the target board where QNX is running.

            I am trying to download the QNX Development Frameworf (QDF) for Qt which could be found "here":http://community.qnx.com/sf/frs/do/viewRelease/projects.qt/frs.binpkg.qt_5_2_0_development_environment.

            Thanks for the reply andreyc.

            1 Reply Last reply
            0

            1/5

            12 May 2014, 11:31

            • Login

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