Qt Deployed On Raspberry Pi - Nothing Happens When I Execute
-
wrote on 10 May 2021, 12:16 last edited by
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? -
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?@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).
-
wrote on 12 May 2021, 16:04 last edited by
Hi,
How do I start the app from the terminal? What command can I use? -
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.
-
@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
-
wrote on 19 May 2021, 10:30 last edited by
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 installedSo I tried to follow the deployment instructions again to solve this but was not successfull. How Do I install qt on raspberry?
1/6