Setup environment to compile for Raspberry
-
Hi,
You should run
fcheckfsck on your RPi sdcard. An In/Out error usually means that some data got corrupted or more likely the data storage. -
Sorry, I meant fsck.
You got an IO error on a mounted disk image ?
-
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
-
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
-
Are you shutting down the RPi properly ?
Does
/home/helene/raspberry/gcc-4.7-linaro-rpi-gnueabihf/bin/arm-linux-gnueabihf-g++
exists ? -
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
-
QNX ? Did you change anything in the mkspec ?
-
Did you clone directly from code.qt.io ?
-
What about 5.5.1 ?