cannot run: no command
-
@asha Please show the Qt versions and compilers tabs also.
And be a bit more patient: People here help in their free time and live all around the world, not necessarily in the same time zone as you.
- Did you follow a guide to set the toolchain up?
- Which Creator version is that?
Regards
-
-
@asha said in cannot run: no command:
I am connecting the linux device(beagleboneboard)
Have you followed any installation/setup guide for cross-compiling Qt for the BBB device, just like this one for example?
I don't own such device, but from previous experience with cross-compiling Qt for other devices (i.e. Raspberry Pi) and using those devices with Qt Creator, such guide seems quite acceptable.
It also mentions something that could be really applicable to the issue you're describing:
When you try to deploy a program on your BBB from QtCreator you may get an error about an unknown command. This is because QtCreator does not know where to copy the compiled file onto the BBB. The following line should be added to your .pro file:
target.path = /home/Matilda/
You may change the path to anything you want and the executable will be copied to and run from this location.
Now you are ready to run your first Qt BBB project. -
Sir,
Thankyou for the replay,I installed the qt5 through commands.
sudo apt-get install build-essential
sudo apt-get install qtcreator
sudo apt-get install qt5-default
sudo apt-get install qt5-doc
sudo apt-get install qt5-doc-html
sudo apt-get install qtbase5-doc-html
sudo apt-get install qtbase5-examplesbut after this all,
I uninstalled the qt5,now again i installed qt5,while downloaded and executing this file :"qt-opensource-linux-x64-5.13.0.run",
now I am getting the error
and that is showing 2 qt versions .
how to remove one qt 5.9.5 in PATH(qt5)? because after uninstalling I am getting 2versions and
please give the suggestions for :"permission denied error"
Thankyou.
-
I think you need to fundamentally start at a lower point.
So you want to compile for the BeagleBone board, which has an ARM processor. I assume you are working on a PC with Intel or AMD processor.
So what you need to do, is to cross-compile your code to ARM. Therefore you need:
- An ARM cross-compiler with system libraries ("toolchain")
- A Qt version cross-compiled for ARM
- A cross-debugger, if you want to debug on the target
From your screenshots, I don't see a cross-compiler nor a cross-Qt version.
Without them, it's impossible to build programs for the BeagleBone.
Regards
Edit: The Android versions (despite beeing ARM too), will not help you.
-
Hi,
I installed the cross compiler ,through the following command:
sudo apt-get install gcc-arm-linux-gnueabihf
And installed cross debugger via
sudo apt-get install gdb-multiarch,
Here is the attacment of cross-debugger,cross-compiler, and kit configuration
after this configurations and running a simple application with cross compilers and debuggers only getting error ,now what is the mistake,please let me know...and installing cross compiler and debugger process is currect or wrong..and in lit configuration its showing red mark..
-
@asha said in cannot run: no command:
/opt/aa
/opt is a directory where only root has write access. You need to give the user write access to the directory you want to use or (better) use users home directory to deploy.
-
@asha said in cannot run: no command:
I am very new to qt,please can you elaborate how to give user write access to the /opt directory..
That has nothing to do with Qt.
/opt
is a system directory, only the administrator (root) has write access there. If you need to install something there use thesudo
command - but be careful, you can destroy you whole system if you do something wrong.Regards