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.1k 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 Offline
    B Offline
    Bonty
    wrote on 1 Apr 2022, 06:27 last edited by
    #1

    When i add C and C++ compiler for raspberry pi 3, getting below errors.

    Project ERROR: Cannot run compiler 'g++'. Output:
    Maybe you forgot to setup the environment?
    gcc: error trying to exec 'cc1': execvp: No such file or directory
    c++: error trying to exec 'cc1plus': execvp: No such file or directory

    J 1 Reply Last reply 1 Apr 2022, 06:36
    0
    • B Bonty
      1 Apr 2022, 06:27

      When i add C and C++ compiler for raspberry pi 3, getting below errors.

      Project ERROR: Cannot run compiler 'g++'. Output:
      Maybe you forgot to setup the environment?
      gcc: error trying to exec 'cc1': execvp: No such file or directory
      c++: error trying to exec 'cc1plus': execvp: No such file or directory

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 1 Apr 2022, 06:36 last edited by
      #2

      @Bonty said in QT Cross compile for raspberry pi3:

      When i add C and C++ compiler for raspberry pi 3

      Where? On RaspberryPi or on another machine (cross compiling)?

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

      B 1 Reply Last reply 1 Apr 2022, 06:38
      0
      • J jsulm
        1 Apr 2022, 06:36

        @Bonty said in QT Cross compile for raspberry pi3:

        When i add C and C++ compiler for raspberry pi 3

        Where? On RaspberryPi or on another machine (cross compiling)?

        B Offline
        B Offline
        Bonty
        wrote on 1 Apr 2022, 06:38 last edited by
        #3

        @jsulm compiling on another machine (ubuntu pc)

        J 1 Reply Last reply 1 Apr 2022, 06:39
        0
        • B Bonty
          1 Apr 2022, 06:38

          @jsulm compiling on another machine (ubuntu pc)

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 1 Apr 2022, 06:39 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 1 Apr 2022, 06:52
          0
          • J jsulm
            1 Apr 2022, 06:39

            @Bonty What exact compiler are you adding?

            B Offline
            B Offline
            Bonty
            wrote on 1 Apr 2022, 06:52 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++

            J 1 Reply Last reply 1 Apr 2022, 06:54
            0
            • B Bonty
              1 Apr 2022, 06:52

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

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 1 Apr 2022, 06:54 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 1 Apr 2022, 07:04
              0
              • J jsulm
                1 Apr 2022, 06:54

                @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 1 Apr 2022, 07:04 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.

                J 1 Reply Last reply 1 Apr 2022, 07:23
                0
                • B Bonty
                  1 Apr 2022, 07:04

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

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 1 Apr 2022, 07:23 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 1 Apr 2022, 07:42
                  0
                  • J jsulm
                    1 Apr 2022, 07:23

                    @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 1 Apr 2022, 07:42 last edited by
                    #9

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

                    J 1 Reply Last reply 1 Apr 2022, 07:47
                    0
                    • P Offline
                      P Offline
                      pasi
                      wrote on 1 Apr 2022, 07:46 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 1 Apr 2022, 08:05
                      0
                      • B Bonty
                        1 Apr 2022, 07:42

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

                        J Offline
                        J Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on 1 Apr 2022, 07:47 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 1 Apr 2022, 07:54
                        0
                        • J jsulm
                          1 Apr 2022, 07:47

                          @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 1 Apr 2022, 07:54 last edited by
                          #12

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

                          J 1 Reply Last reply 1 Apr 2022, 07:55
                          0
                          • B Bonty
                            1 Apr 2022, 07:54

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

                            J Offline
                            J Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 1 Apr 2022, 07:55 last edited by jsulm 4 Jan 2022, 07:56
                            #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 1 Apr 2022, 08:50
                            0
                            • P pasi
                              1 Apr 2022, 07:46

                              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 1 Apr 2022, 08:05 last edited by
                              #14
                              This post is deleted!
                              1 Reply Last reply
                              0
                              • J jsulm
                                1 Apr 2022, 07:55

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

                                B Offline
                                B Offline
                                Bonty
                                wrote on 1 Apr 2022, 08:50 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

                                1/15

                                1 Apr 2022, 06:27

                                • Login

                                • Login or register to search.
                                1 out of 15
                                • First post
                                  1/15
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • Users
                                • Groups
                                • Search
                                • Get Qt Extensions
                                • Unsolved