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 10 May 2021, 12:16 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?

    J 1 Reply Last reply 10 May 2021, 12:20
    0
    • M mertb
      10 May 2021, 12:16

      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?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 10 May 2021, 12:20 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 12 May 2021, 16:04 last edited by
        #3

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

        J 1 Reply Last reply 14 May 2021, 05:57
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 12 May 2021, 18:41 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
            12 May 2021, 16:04

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

            J Offline
            J Offline
            jsulm
            Lifetime Qt Champion
            wrote on 14 May 2021, 05:57 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 19 May 2021, 10:30 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

              1/6

              10 May 2021, 12:16

              • Login

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