Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved BeagleBone Black, devices generic linux devices impossible to add?

    Mobile and Embedded
    2
    8
    1876
    Loading More Posts
    • 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.
    • O
      Olfox last edited by Olfox

      Hi all,

      I installed full toolchain for BeagleBone Black (BBB).

      I'm able to build, send on BBB and run on BBB a qt gui software written in the console ( without the use of qt creator).

      I want to do the same by using Qt creator now.

      I would like to add a Generic linux device kit to automatically deploy on bbb and see in my Mint developpement PC the result off the execution.

      Normally you can add a kit by my button Add in Device section is diable and i can't do it. There s only Local PC option.

      Do I use the good version of QT ( QT Creator 3.0.1 based on qt 5.2.1) ?

      How to enable the button to add it ?

      Thanks alot, i'm little bit stucked now and i really need to continue my project with this nice qt tool.

      Thanks a lot.

      1 Reply Last reply Reply Quote 0
      • O
        Olfox last edited by Olfox

        I succes to add the linux device by instaling the package in my linux mint :

        Name of the package : qt creator-plugin-remotelinux

        I success to set up the deploy, but now, at execution, i have an error:

        connot connect to Xserver.

        1. i would like to add the -X option when qt creator do the ssh connexion but i don't know where...

        2. i try to execute directly with ssh -X terminal connexion and there is a strange error like :

        ./testqt1: undefined symbol: _ZN7QWidget8qwsEventEP8QWSEvent

        If you have any idea , i' really interessted.

        Thank you

        1 Reply Last reply Reply Quote 0
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          Hi and welcome to devnet,

          Looks like you cross-compiled your application with a Qt 4 for Embedded Linux but you have a classic Qt 4 for X11 on your device. Is that so ?

          As for the -X option, I'm not aware of the possibility to add options when Qt Creator does the connection.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply Reply Quote 0
          • O
            Olfox last edited by Olfox

            Hi SGaist,

            Thanks a lot for your fast reply and your welcome.

            Do you know how can i check the version on both side to compare and be sure that all is ok ? ( May be command line ? )

            Concerning my setting, I followed the Method of Derek Molloy perfectly until the end :

            http://exploringbeaglebone.com/chapter11/

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              From the looks of the guide, you have a Qt 4 for Embedded Linux so a version that runs without X. AFAIK, the one you have installed on your BBB is a classic X built Qt.

              One thing you can do is to uninstall the Qt 4 you have on your BBB and copy the cross-compiled Qt 4 install directory at the exact same place on your BBB (you can always remove the unneeded stuff like header files later)

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply Reply Quote 0
              • O
                Olfox last edited by Olfox

                Ha ok.

                Cause the first time, i worked without cross compile.

                I installed directly qt creator on the BBB and developed directly on it.

                It was a little bit painful so i decided to cross compile. That mean on my beaglebone there is already a qt creator.

                Just a question:

                1. If i cross compile for BBB, does the BBB need something special to run a qt program like a JRE for Java?

                2. What i don't understand is that making a main.cpp in my Mint console that shows a GUI window, build it and send via sftp to BBB and execute on BBB works fine, the window appear.

                But when i use Qtcreator, i have the error.

                1. i have done another test, create a console project on qt creator and deploy it on BBB, it works.

                Only GUI WITH Qt creator doesn't work :(, the most interested part lol.

                1 Reply Last reply Reply Quote 0
                • SGaist
                  SGaist Lifetime Qt Champion last edited by

                  1. It will need the Qt libraries installed
                  2. Are you sure you are using the same version of Qt for both ?
                  3. QCoreApplication doesn't depend on any GUI stuff so there's nothing there to prevent it from running.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply Reply Quote 0
                  • O
                    Olfox last edited by

                    yes for sur, there is a mistake somewhere.

                    To be clean, i restart form scratch with a new virtual machine and by using qt 5 instead of qt4.

                    So sorry to not go until the end of this probleme, I'm focus on cross compil for qt 5 now.

                    Thanks every body for your help and see you for futur problem on qt5 :D

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post