Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Run the executable file built in Ubuntu on Raspberry Pi Ubuntu
Forum Update on Monday, May 27th 2025

Run the executable file built in Ubuntu on Raspberry Pi Ubuntu

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 3 Posters 461 Views
  • 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.
  • I Offline
    I Offline
    IknowQT
    wrote on last edited by
    #1

    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

    JonBJ 1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      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 of ls -aGl. If permissions are wrong, you can change them with chmod and chown 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.

      (Z(:^

      I 1 Reply Last reply
      0
      • sierdzioS sierdzio

        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 of ls -aGl. If permissions are wrong, you can change them with chmod and chown 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 Offline
        I Offline
        IknowQT
        wrote on last edited by
        #3

        @sierdzio
        If the arm64 and amd64 architectures are different for the same Ubuntu, do you need to make cross-compilation?

        JonBJ sierdzioS 2 Replies Last reply
        0
        • I IknowQT

          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

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4

          @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.

          1 Reply Last reply
          2
          • I IknowQT

            @sierdzio
            If the arm64 and amd64 architectures are different for the same Ubuntu, do you need to make cross-compilation?

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by JonB
            #5

            @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?

            1 Reply Last reply
            0
            • I IknowQT

              @sierdzio
              If the arm64 and amd64 architectures are different for the same Ubuntu, do you need to make cross-compilation?

              sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              @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.

              (Z(:^

              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