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. Regarding porting for an embedded device

Regarding porting for an embedded device

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
25 Posts 4 Posters 6.8k Views 2 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.
  • tomasz3dkT tomasz3dk

    @Naveen_D I think that Yocto is the best choice.

    Naveen_DN Offline
    Naveen_DN Offline
    Naveen_D
    wrote on last edited by
    #16

    As suggested by @tomasz3dk i am trying with yocto....
    i have the tool chain, sysroot, debugger,compiler for qt 5.6.2 in that iMX-6 board. but when i try to build the sample example for qt and qml i get the following errors, can anyone please suggest me the possible solution, what i have to do further to make it work.

    error for qt example :
    g++ -o QtExample main.o exqamplewidget.o moc_exqamplewidget.o -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread

    /usr/bin/ld: cannot find -lQt5Widgets

    /usr/bin/ld: cannot find -lQt5Gui

    /usr/bin/ld: cannot find -lQt5Core

    /usr/bin/ld: cannot find -lGLESv2

    collect2: error: ld returned 1 exit status

    make: *** [QtExample] Error 1

    12:47:06: The process "/usr/bin/make" exited with code 2.

    Error while building/deploying project QtExample (kit: iMX-6)

    The kit iMX-6 has configuration issues which might be the root cause for this problem.

    When executing step "Make"

    12:47:06: Elapsed time: 00:00.

    for qml example :
    g++ -o QmlExample main.o qrc_qml.o -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread

    /usr/bin/ld: cannot find -lQt5Quick

    /usr/bin/ld: cannot find -lQt5Gui

    /usr/bin/ld: cannot find -lQt5Qml

    /usr/bin/ld: cannot find -lQt5Network

    /usr/bin/ld: cannot find -lQt5Core

    /usr/bin/ld: cannot find -lGLESv2

    collect2: error: ld returned 1 exit status

    make: *** [QmlExample] Error 1

    12:48:55: The process "/usr/bin/make" exited with code 2.

    Error while building/deploying project QmlExample (kit: iMX-6)

    The kit iMX-6 has configuration issues which might be the root cause for this problem.

    When executing step "Make"

    12:48:55: Elapsed time: 00:02.

    Thanks

    Naveen_D

    jsulmJ tomasz3dkT 2 Replies Last reply
    0
    • Naveen_DN Naveen_D

      As suggested by @tomasz3dk i am trying with yocto....
      i have the tool chain, sysroot, debugger,compiler for qt 5.6.2 in that iMX-6 board. but when i try to build the sample example for qt and qml i get the following errors, can anyone please suggest me the possible solution, what i have to do further to make it work.

      error for qt example :
      g++ -o QtExample main.o exqamplewidget.o moc_exqamplewidget.o -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread

      /usr/bin/ld: cannot find -lQt5Widgets

      /usr/bin/ld: cannot find -lQt5Gui

      /usr/bin/ld: cannot find -lQt5Core

      /usr/bin/ld: cannot find -lGLESv2

      collect2: error: ld returned 1 exit status

      make: *** [QtExample] Error 1

      12:47:06: The process "/usr/bin/make" exited with code 2.

      Error while building/deploying project QtExample (kit: iMX-6)

      The kit iMX-6 has configuration issues which might be the root cause for this problem.

      When executing step "Make"

      12:47:06: Elapsed time: 00:00.

      for qml example :
      g++ -o QmlExample main.o qrc_qml.o -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread

      /usr/bin/ld: cannot find -lQt5Quick

      /usr/bin/ld: cannot find -lQt5Gui

      /usr/bin/ld: cannot find -lQt5Qml

      /usr/bin/ld: cannot find -lQt5Network

      /usr/bin/ld: cannot find -lQt5Core

      /usr/bin/ld: cannot find -lGLESv2

      collect2: error: ld returned 1 exit status

      make: *** [QmlExample] Error 1

      12:48:55: The process "/usr/bin/make" exited with code 2.

      Error while building/deploying project QmlExample (kit: iMX-6)

      The kit iMX-6 has configuration issues which might be the root cause for this problem.

      When executing step "Make"

      12:48:55: Elapsed time: 00:02.

      Thanks

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #17

      @Naveen_D As the error message says you should check your iMX-6 kit. It looks like it is broken: all the needed libraries are missing. Please check your Kit: is the correct compiler set? Is the correct Qt version set? Are there any warning/errors in the Kit?
      g++, /usr/bin/ld and /usr/bin/make look like tools from your host PC not for your device.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      Naveen_DN 1 Reply Last reply
      0
      • jsulmJ jsulm

        @Naveen_D As the error message says you should check your iMX-6 kit. It looks like it is broken: all the needed libraries are missing. Please check your Kit: is the correct compiler set? Is the correct Qt version set? Are there any warning/errors in the Kit?
        g++, /usr/bin/ld and /usr/bin/make look like tools from your host PC not for your device.

        Naveen_DN Offline
        Naveen_DN Offline
        Naveen_D
        wrote on last edited by
        #18

        @jsulm oh okay sir, will check with the kit.
        do i need to connect the board before building the project...?

        Naveen_D

        jsulmJ 1 Reply Last reply
        0
        • Naveen_DN Naveen_D

          @jsulm oh okay sir, will check with the kit.
          do i need to connect the board before building the project...?

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #19

          @Naveen_D If you have the sysroot on your host PC then no need to connect the device

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • Naveen_DN Naveen_D

            As suggested by @tomasz3dk i am trying with yocto....
            i have the tool chain, sysroot, debugger,compiler for qt 5.6.2 in that iMX-6 board. but when i try to build the sample example for qt and qml i get the following errors, can anyone please suggest me the possible solution, what i have to do further to make it work.

            error for qt example :
            g++ -o QtExample main.o exqamplewidget.o moc_exqamplewidget.o -lQt5Widgets -lQt5Gui -lQt5Core -lGLESv2 -lpthread

            /usr/bin/ld: cannot find -lQt5Widgets

            /usr/bin/ld: cannot find -lQt5Gui

            /usr/bin/ld: cannot find -lQt5Core

            /usr/bin/ld: cannot find -lGLESv2

            collect2: error: ld returned 1 exit status

            make: *** [QtExample] Error 1

            12:47:06: The process "/usr/bin/make" exited with code 2.

            Error while building/deploying project QtExample (kit: iMX-6)

            The kit iMX-6 has configuration issues which might be the root cause for this problem.

            When executing step "Make"

            12:47:06: Elapsed time: 00:00.

            for qml example :
            g++ -o QmlExample main.o qrc_qml.o -lQt5Quick -lQt5Gui -lQt5Qml -lQt5Network -lQt5Core -lGLESv2 -lpthread

            /usr/bin/ld: cannot find -lQt5Quick

            /usr/bin/ld: cannot find -lQt5Gui

            /usr/bin/ld: cannot find -lQt5Qml

            /usr/bin/ld: cannot find -lQt5Network

            /usr/bin/ld: cannot find -lQt5Core

            /usr/bin/ld: cannot find -lGLESv2

            collect2: error: ld returned 1 exit status

            make: *** [QmlExample] Error 1

            12:48:55: The process "/usr/bin/make" exited with code 2.

            Error while building/deploying project QmlExample (kit: iMX-6)

            The kit iMX-6 has configuration issues which might be the root cause for this problem.

            When executing step "Make"

            12:48:55: Elapsed time: 00:02.

            Thanks

            tomasz3dkT Offline
            tomasz3dkT Offline
            tomasz3dk
            wrote on last edited by tomasz3dk
            #20

            @Naveen_D It seems that you didn't set your iMX-6 kit properly. Look here. Btw you do not need connect your device to your computer, when you only crosscompile program for your device. It is necessary when you deploy program to device (by clicking "run" in qtcreator, of course before this you should set proper device for this kit).

            Naveen_DN 1 Reply Last reply
            0
            • tomasz3dkT tomasz3dk

              @Naveen_D It seems that you didn't set your iMX-6 kit properly. Look here. Btw you do not need connect your device to your computer, when you only crosscompile program for your device. It is necessary when you deploy program to device (by clicking "run" in qtcreator, of course before this you should set proper device for this kit).

              Naveen_DN Offline
              Naveen_DN Offline
              Naveen_D
              wrote on last edited by
              #21

              @tomasz3dk Ok sir.. thanks i will recheck the kit.

              Naveen_D

              1 Reply Last reply
              0
              • Naveen_DN Offline
                Naveen_DN Offline
                Naveen_D
                wrote on last edited by
                #22

                Hi, now i am able to run qt example on the board.
                I have developed one qml example and trying to port it for this device. the example builds without errors, but when i try to execute this in the boar it gives me the following error :

                root@imx6dlsabreauto:~# ./CarInfotainment_27March -qws
                QQmlApplicationEngine failed to load component
                qrc:/main.qml:2 module "QtQuick" version 2.7 is not installed

                what is the possible solution for this? Thanks

                Naveen_D

                tomasz3dkT 1 Reply Last reply
                0
                • Naveen_DN Naveen_D

                  Hi, now i am able to run qt example on the board.
                  I have developed one qml example and trying to port it for this device. the example builds without errors, but when i try to execute this in the boar it gives me the following error :

                  root@imx6dlsabreauto:~# ./CarInfotainment_27March -qws
                  QQmlApplicationEngine failed to load component
                  qrc:/main.qml:2 module "QtQuick" version 2.7 is not installed

                  what is the possible solution for this? Thanks

                  tomasz3dkT Offline
                  tomasz3dkT Offline
                  tomasz3dk
                  wrote on last edited by
                  #23

                  @Naveen_D You mentioned in previous post, that you have Qt 5.6.2 version on board. In this Qt version QtQuick module was in 2.5 version, so you must change all appearances of

                  import QtQuick 2.7
                  

                  to

                  import QtQuick 2.5
                  

                  If you will have same problems with other modules you should also take lower module version.

                  Naveen_DN 1 Reply Last reply
                  1
                  • tomasz3dkT tomasz3dk

                    @Naveen_D You mentioned in previous post, that you have Qt 5.6.2 version on board. In this Qt version QtQuick module was in 2.5 version, so you must change all appearances of

                    import QtQuick 2.7
                    

                    to

                    import QtQuick 2.5
                    

                    If you will have same problems with other modules you should also take lower module version.

                    Naveen_DN Offline
                    Naveen_DN Offline
                    Naveen_D
                    wrote on last edited by
                    #24

                    @tomasz3dk Ok thanks..

                    Naveen_D

                    A 1 Reply Last reply
                    0
                    • Naveen_DN Naveen_D

                      @tomasz3dk Ok thanks..

                      A Offline
                      A Offline
                      andyinyakima
                      wrote on last edited by
                      #25

                      @Naveen_D
                      I have had good success with Julius on my Ubuntu Desktop, Raspberry Pi 2 & 3 and embedded Up Board. (intel cpu). Also installed flite (TTS) with several naturally sounding voices. It is for a long range project.

                      My code and notes are at:
                      https://bitbucket.org/andyinyakima/

                      Look at: boswasi and bos-jt for starters.

                      I use Qt for most of my work. My code ain't pretty but does the trick for me.
                      My first code was assembly on Commodore 64.

                      I saw where Qt 5.9 was released so came to forum looking for QtSpeech updates.
                      Tried Sphinx but couldn't capture well enough, Julius is working good for me.
                      Kaldi is too big I believe.

                      Tried "hello_speak" example on Qt 5.8 on Ubuntu. Get a "can't locate plug_in" error.
                      Does this example work on Linux machines? I am using pulseaudio.

                      Anyhow, will check back to see if any more speech developments being made on Qt.

                      Thank you,
                      andyinyakima

                      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