Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QT Cross compile for raspberry pi3
Forum Updated to NodeBB v4.3 + New Features

QT Cross compile for raspberry pi3

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
15 Posts 3 Posters 1.2k Views 1 Watching
  • 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.
  • B Bonty

    @jsulm compiling on another machine (ubuntu pc)

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #4

    @Bonty What exact compiler are you adding?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    B 1 Reply Last reply
    0
    • jsulmJ jsulm

      @Bonty What exact compiler are you adding?

      B Offline
      B Offline
      Bonty
      wrote on last edited by
      #5

      @jsulm GCC for C and C++, for C = arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/bin/gcc

      for C++ = arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/bin/c++

      jsulmJ 1 Reply Last reply
      0
      • B Bonty

        @jsulm GCC for C and C++, for C = arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/bin/gcc

        for C++ = arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/bin/c++

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #6

        @Bonty said in QT Cross compile for raspberry pi3:

        C = arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/bin/gcc

        You should enter absolute (whole) path to the compiler.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        B 1 Reply Last reply
        0
        • jsulmJ jsulm

          @Bonty said in QT Cross compile for raspberry pi3:

          C = arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/arm-linux-gnueabihf/bin/gcc

          You should enter absolute (whole) path to the compiler.

          B Offline
          B Offline
          Bonty
          wrote on last edited by
          #7

          @jsulm now i have resolve that issue but now there is new error coming out below:-

          12:33:03: Starting /opt/test_pi/bin/test_pi ...
          Warning: Identity file not accessible: No such file or directory.
          /opt/test_pi/bin/test_pi: line 1: syntax error: unexpected "("
          12:33:03: Application finished with exit code 2.

          jsulmJ 1 Reply Last reply
          0
          • B Bonty

            @jsulm now i have resolve that issue but now there is new error coming out below:-

            12:33:03: Starting /opt/test_pi/bin/test_pi ...
            Warning: Identity file not accessible: No such file or directory.
            /opt/test_pi/bin/test_pi: line 1: syntax error: unexpected "("
            12:33:03: Application finished with exit code 2.

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #8

            @Bonty said in QT Cross compile for raspberry pi3:

            /opt/test_pi/bin/test_pi

            What is it?

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            B 1 Reply Last reply
            0
            • jsulmJ jsulm

              @Bonty said in QT Cross compile for raspberry pi3:

              /opt/test_pi/bin/test_pi

              What is it?

              B Offline
              B Offline
              Bonty
              wrote on last edited by
              #9

              @jsulm this is the path in raspberry pi, where the app(test_pi) is located.

              jsulmJ 1 Reply Last reply
              0
              • P Offline
                P Offline
                pasi
                wrote on last edited by
                #10

                Your binary is for wrong architecture. Please provide information of binary by running file command for it:
                file /opt/test_pi/bin/test_pi

                B 1 Reply Last reply
                0
                • B Bonty

                  @jsulm this is the path in raspberry pi, where the app(test_pi) is located.

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #11

                  @Bonty said in QT Cross compile for raspberry pi3:

                  this is the path in raspberry pi

                  You can't execute ARM executables on x86

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  B 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    @Bonty said in QT Cross compile for raspberry pi3:

                    this is the path in raspberry pi

                    You can't execute ARM executables on x86

                    B Offline
                    B Offline
                    Bonty
                    wrote on last edited by
                    #12

                    @jsulm Iam not executing on x86, just compiling the project actuall execution will be done on pi(connected over ethernet).

                    jsulmJ 1 Reply Last reply
                    0
                    • B Bonty

                      @jsulm Iam not executing on x86, just compiling the project actuall execution will be done on pi(connected over ethernet).

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by jsulm
                      #13

                      @Bonty What does "file /opt/test_pi/bin/test_pi" output in terminal?

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      B 1 Reply Last reply
                      0
                      • P pasi

                        Your binary is for wrong architecture. Please provide information of binary by running file command for it:
                        file /opt/test_pi/bin/test_pi

                        B Offline
                        B Offline
                        Bonty
                        wrote on last edited by
                        #14
                        This post is deleted!
                        1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @Bonty What does "file /opt/test_pi/bin/test_pi" output in terminal?

                          B Offline
                          B Offline
                          Bonty
                          wrote on last edited by
                          #15

                          @jsulm on pi :
                          -sh: file: not found
                          but fthe app test_pi is present in pi in directory /opt/test_pi/bin/test_pi

                          on pc: /opt/test_pi/bin/test_pi: cannot open `/opt/test_pi/bin/test_pi' (No such file or directory)

                          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