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. Setup environment to compile for Raspberry
Forum Updated to NodeBB v4.3 + New Features

Setup environment to compile for Raspberry

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
configureraspberry
14 Posts 2 Posters 6.2k Views 2 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.
  • H Offline
    H Offline
    helenebro
    wrote on last edited by
    #3

    Does that mean that .img are a problem ? If I test with Raspbian image, it should work ?
    What is fcheck ? A command line ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      Sorry, I meant fsck.

      You got an IO error on a mounted disk image ?

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

      1 Reply Last reply
      0
      • H Offline
        H Offline
        helenebro
        wrote on last edited by
        #5

        When I insert my SD Card, I have on dmesg :

        [ 1597.464008] sd 3:0:0:0: [sdb] 15482880 512-byte logical blocks: (7.92 GB/7.38 GiB)
        [ 1597.470203]  sdb: sdb1 sdb2
        [ 1597.886246] EXT4-fs (sdb2): recovery complete
        [ 1597.886254] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
        [ 1597.909332] FAT-fs (sdb1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
        

        When I run fsck, I have :

        $sudo fsck /dev/sdb1
        fsck de util-linux 2.20.1
        fsck.fat 3.0.26 (2014-03-07)
        0x25: Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
        1) Remove dirty bit
        2) No action
        ? 
        

        After correction, if I insert the card, I have :

        [ 2116.065860] sd 3:0:0:0: [sdb] 15482880 512-byte logical blocks: (7.92 GB/7.38 GiB)
        [ 2116.071942]  sdb: sdb1 sdb2
        [ 2116.461258] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
        

        I will try again the procedure.

        Thank for your help

        1 Reply Last reply
        0
        • H Offline
          H Offline
          helenebro
          wrote on last edited by helenebro
          #6

          The problem of seems solved but I have an other error :

          Running configuration tests...
          Failed to process makespec for platform 'devices/linux-rasp-pi-g++'
          Project ERROR: Compiler /home/helene/raspberry/gcc-4.7-linaro­-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++ not found. Check the value of CROSS_COMPILE -device-option
          Could not read qmake configuration file /home/helene/raspberry/qt-everywhere-opensource-src-5.4.1/qtbase/mkspecs/devices/linux-rasp-pi-g++/qmake.conf.
          Error processing project file: /dev/null
          
          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #7

            Are you shutting down the RPi properly ?

            Does /home/helene/raspberry/gcc-4.7-linaro­-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++exists ?

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

            1 Reply Last reply
            0
            • H Offline
              H Offline
              helenebro
              wrote on last edited by
              #8

              I succeed to setup environment but I can't succeed to run a simple project.
              I had

              • debugger (Path : /home/helene/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-gdb)
              • compiler (Path: /home/helene/opt/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++)
              • Qt version (qmake path : /usr/local/qt5pi/bin/qmake)
              • Kit

              But I don't know why, version is to Qt 5.6.1 ans when I run my application, I have the error :

              avertissement : You are using deprecated mkspecs. Please use qnx-armle-v7-qcc instead.
              erreur : qcc: Command not found
              
              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #9

                QNX ? Did you change anything in the mkspec ?

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

                1 Reply Last reply
                0
                • H Offline
                  H Offline
                  helenebro
                  wrote on last edited by helenebro
                  #10

                  No, I don't think so.
                  Is this normal, I have Qt 5.6.1 (not 5.4.1 ?)

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #11

                    Did you clone directly from code.qt.io ?

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

                    1 Reply Last reply
                    0
                    • H Offline
                      H Offline
                      helenebro
                      wrote on last edited by
                      #12

                      Yes.
                      I have tried again with qt-everywhere-opensource-src-5.4.1 and it works.

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #13

                        What about 5.5.1 ?

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

                        1 Reply Last reply
                        0
                        • H Offline
                          H Offline
                          helenebro
                          wrote on last edited by
                          #14

                          I didn't try. 5.4.1 is enough for me

                          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