Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved How do I setup a kit to crosscompile for Raspbian for the Pi3?

    Mobile and Embedded
    7
    27
    2386
    Loading More Posts
    • 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.
    • aha_1980
      aha_1980 Lifetime Qt Champion @graniteDev last edited by

      @graniteDev

      Hmm...ok, maybe I missunderstood some of the instruction when it talked about 64bit. I assumed it was talking about the pi, which is 32bit

      Don't worry, as said, cross compiling is advanced stuff ;)

      arch command on my desktop:
      x86_64

      Ok, that proves it.

      Qt has to stay free or it will die.

      1 Reply Last reply Reply Quote 0
      • Pablo J. Rogina
        Pablo J. Rogina @graniteDev last edited by

        @graniteDev

        arch command on my desktop:
        x86_64

        If you're following the suggested RaspberryPi2EGLFS guide, in step #10 please pay attention to

        If your system is 64 bit you may also edit device option to:

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        G 1 Reply Last reply Reply Quote 0
        • G
          graniteDev @Pablo J. Rogina last edited by

          @Pablo-J.-Rogina

          Ok so I added the options for 64 bit, and looks like it all worked and compiled. So then I went to do the next step which is a test build, but there is no ~/raspi/qt5/bin/qmake

          That directory doesn't exist, so now I really don't know what the hell to do. The previous steps created the qt5 and qt5pi folders so if there are missing directories, now what?

          1 Reply Last reply Reply Quote 0
          • G
            graniteDev last edited by

            Ok so I got a lot farther using a different set of instructions, in fact I got to actually building in Qt Creator!!

            However Qt Creator is failing to upload the file to the raspberry pi:

            mkdir: cannot create directory ‘/opt/widgettest’: Permission denied
            21:09:40: Failed to upload file "/home/brandon/development/build-widgettest-RaspPi-Release/widgettest".
            21:09:40: Deploy step failed.
            Error while building/deploying project widgettest (kit: RaspPi)
            When executing step "Upload files via SFTP"
            

            How do I give Qt permission to do this? Do I need to dissable some security on the pi? Or add "sudo" to some commands in Qt?

            1 Reply Last reply Reply Quote 0
            • SGaist
              SGaist Lifetime Qt Champion last edited by

              You should either use credentials for your Pi that allows to write in that folder, or change the folder for something the user you use to connect to your RPi can write to.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              A 1 Reply Last reply Reply Quote 0
              • A
                Asha @SGaist last edited by

                even i am also getting same problem,I am very new this qt creator,I am using the ubuntu ,can you say step by step please..

                Pablo J. Rogina 1 Reply Last reply Reply Quote 0
                • Pablo J. Rogina
                  Pablo J. Rogina @Asha last edited by

                  @asha said in How do I setup a kit to crosscompile for Raspbian for the Pi3?:

                  can you say step by step please..

                  What have you done so far? Any errors you can share here?

                  Just in case, please refer to any of these guides:

                  1. Cross-compile and deploy Qt 5.12 for Raspberry Pi
                  2. RaspberryPi2EGLFS

                  Upvote the answer(s) that helped you solve the issue
                  Use "Topic Tools" button to mark your post as Solved
                  Add screenshots via postimage.org
                  Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post