Run the executable file built in Ubuntu on Raspberry Pi Ubuntu
-
wrote on 22 Oct 2021, 06:13 last edited by
I copied the executable file built in Ubuntu to Raspberry Pi Ubuntu and ran it, but Permission denied came out and I set the permission?
But the error path is /home/ubuntu/Desktop/DistributionKit/bin/TEST: Permission denied Is this a problem with the path of Cutie or a problem with Linux? Help me -
But you have cross-compiled your app on desktop, right? If yes, please see if your
TEST
binary has correct permissions. For example, look it up in output ofls -aGl
. If permissions are wrong, you can change them withchmod
andchown
commands.If you have not cross-compiled, then your binary is compiled in x86 architecture but Raspberry Pi uses ARM processor (armhf architecture) - it cannot work, permissions do not matter at all here.
-
But you have cross-compiled your app on desktop, right? If yes, please see if your
TEST
binary has correct permissions. For example, look it up in output ofls -aGl
. If permissions are wrong, you can change them withchmod
andchown
commands.If you have not cross-compiled, then your binary is compiled in x86 architecture but Raspberry Pi uses ARM processor (armhf architecture) - it cannot work, permissions do not matter at all here.
-
I copied the executable file built in Ubuntu to Raspberry Pi Ubuntu and ran it, but Permission denied came out and I set the permission?
But the error path is /home/ubuntu/Desktop/DistributionKit/bin/TEST: Permission denied Is this a problem with the path of Cutie or a problem with Linux? Help mewrote on 22 Oct 2021, 07:47 last edited by@IknowQT
You are already asking this at https://forum.qt.io/topic/131329/executable-library-permission/6, and I answered there. Please don't post two different topics for the same question, it wastes people's time answering both, or at least cross-reference the other post from each other so that we know. -
@sierdzio
If the arm64 and amd64 architectures are different for the same Ubuntu, do you need to make cross-compilation?wrote on 22 Oct 2021, 07:48 last edited by JonB@IknowQT said in Run the executable file built in Ubuntu on Raspberry Pi Ubuntu:
@sierdzio
If the arm64 and amd64 architectures are different for the same Ubuntu, do you need to make cross-compilation?Yes, like I wrote you in your other thread. Or do you wish to keep asking different people if this is indeed the case because you don't like it?
-
@sierdzio
If the arm64 and amd64 architectures are different for the same Ubuntu, do you need to make cross-compilation?@IknowQT said in Run the executable file built in Ubuntu on Raspberry Pi Ubuntu:
@sierdzio
If the arm64 and amd64 architectures are different for the same Ubuntu, do you need to make cross-compilation?Yes, cross-compile or compile natively on Raspberry Pi.
1/6