Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Deployed On Raspberry Pi - Nothing Happens When I Execute
Forum Updated to NodeBB v4.3 + New Features

Qt Deployed On Raspberry Pi - Nothing Happens When I Execute

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
6 Posts 3 Posters 1.1k 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.
  • M Offline
    M Offline
    mertb
    wrote on last edited by
    #1

    Hi, Sorry for this is a dumb question, I am a complete noob to this environment.

    I have made an app on QT Creator and it successfully runs on my Raspberry Pi when I run it from the Creator and the built executable file. However, when I transfer the built files to a new raspberry pi, after I click the file it asks to select a program to run "executable" files. After I do, "sudo chmod +x MyFile" to make it executable, this dialog dissappears but the program does not work at all.
    I only installed qt5 by "git clone git://code.qt.io/qt/qt5.git" and after "cd qt5", "./init-repository". Do I need to install additional packages to make this program work? What might be the problem?

    jsulmJ 1 Reply Last reply
    0
    • M mertb

      Hi, Sorry for this is a dumb question, I am a complete noob to this environment.

      I have made an app on QT Creator and it successfully runs on my Raspberry Pi when I run it from the Creator and the built executable file. However, when I transfer the built files to a new raspberry pi, after I click the file it asks to select a program to run "executable" files. After I do, "sudo chmod +x MyFile" to make it executable, this dialog dissappears but the program does not work at all.
      I only installed qt5 by "git clone git://code.qt.io/qt/qt5.git" and after "cd qt5", "./init-repository". Do I need to install additional packages to make this program work? What might be the problem?

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

      @mertb Start you app on RaspberryPi from a terminal - you should then get some errors. Post those here. Most probably some libs are missing and you need to deploy your app (https://doc.qt.io/qt-5/linux-deployment.html).

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

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mertb
        wrote on last edited by
        #3

        Hi,
        How do I start the app from the terminal? What command can I use?

        jsulmJ 1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          @mertb said in Qt Deployed On Raspberry Pi - Nothing Happens When I Execute:

          I only installed qt5 by "git clone git://code.qt.io/qt/qt5.git" and after "cd qt5", "./init-repository". Do I need to install additional packages to make this program work? What might be the problem?

          This is no installation, you just cloned the sources.

          As for the command line, just login into your RPi and start the application from there.

          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
          0
          • M mertb

            Hi,
            How do I start the app from the terminal? What command can I use?

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

            @mertb said in Qt Deployed On Raspberry Pi - Nothing Happens When I Execute:

            What command can I use?

            It's the executable of your app:

            ./NAME_OF_YOUR_EXECUTABLE
            

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

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mertb
              wrote on last edited by
              #6

              Hi, Thanks for the help.
              When I run it from the terminal it returns:
              qt5ct: using qt5ct plugin
              QQmlApplicationEngine failed to load component
              qrc:/main.qml:2 module "QtQuick.Controls" version 2.2 is not installed

              So I tried to follow the deployment instructions again to solve this but was not successfull. How Do I install qt on raspberry?

              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