Qt in Eclipse on Debian

install

apt install eclipse-cdt eclipse-cdt-qt libqt4-dev

create new C++ Project
(e.g. Hello World C++ Project)

File->New->C++ Project

edit Project settings and add the following includes and libraries

Project->Properties->C/C++ Build->Settings->GCC C++ Compiler->Includes

/usr/include/qt4
/usr/include/qt4/Qt
/usr/include/qt4/QtCore
/usr/include/qt4/QtGui

eclipseincludes

Project->Properties->C/C++ Build->Settings->GCC C++ Linker->Libraries

QtCore
QtGui

eclipselibraries

now you can compile and run the following code:

#include <QApplication>
#include <QLabel>

int main(int argc, char *argv[]) {
QApplication QtApp(argc, argv);
QLabel QtLabel;
QtLabel.setText("!!!Hello World!!!");
QtLabel.show();
QtApp.exec();
}

compile:
Project->Build Project

Debug:
Run->Debug as->Local C/C++Application

compile and use ROOT on Debian 8 Jessie

download ROOT v6.06.04 source
https://root.cern.ch/download/root_v6.06.04.source.tar.gz

md5: 55a2f98dd4cea79c9c4e32407c2d6d17
sha1: aff5cf3e3380821c97ac7047bac6341f1e7811d1
sha512: b33a8f71322c5bf5984dfb6db38ff99e328845850e2c850f8090b18e30cf02ab62a4ff0bd930b6a8a5e0e8abb6e4893c3a11b033cdb347932581d8c7670ca67e

extract

tar xvf root_v6.06.04.source.tar.gz

alternative

git clone http://root.cern.ch/git/root.git
cd root
git tag -l
git checkout -b v6-06-04 v6-06-04

install dependencies (https://root.cern.ch/build-prerequisites)

apt install libXft-dev

compile

cd root-6.06.04/build/
cmake ..
make -j8
make install

use root

source root-6.06.04/bin/thisroot.sh
export ROOTSYS=/path/to/root-6.06.04/
root -l
new TBrowser
.q

Cyanogenmod 13 Android 6.0 auf HTC Sensation installieren

unter Debian/Ubuntu programme installieren

apt install android-tools-adb android-tools-fastboot

Handy per USB an PC anschließen und den USB-Debugmodus aktivieren und folgende Kommandos in einem Terminal ausführen

adb reboot-bootloader
fastboot oem get_identifier_token

Den Identifier von dort kopieren und auf der Homepage www.htcdev.com registrieren und unter “Unlock Bootloader” einfügen.

unlock boot loader mit Hilfe der per E-Mail erhaltenen Unlock_code.bin Datei

fastboot flash unlocktoken Unlock_code.bin

Recovery flashen
6e8e2ed25f07b0bfecc861692b6f6030 TWRP-3.0.M5-0-pyramid.img
42e01d0a7c26d42981329db2c87db664 TWRP-3.0.M4-0-pyramid.img
e58d538c611172c675959af7abf33919 TWRP-3.0.M2-0-pyramid.img

mit [Vol Down] + [Power] Button in bootloader booten
mit FASTBOOT USB modus recovery flashen

fastboot flash recovery  TWRP-3.0.M5-0-pyramid.img

Android Flashen (Source, Source)

mit [Vol Down] + [Power] Button in bootloader booten
Recovery starten und dann zip mit “Install” auf Handy flashen
737c17df76fb70de1d89b350bacf8092 cm-13.0-20161203-UNOFFICIAL-pyramid.zip
0c047d5e63303efe1a51cdc691f7cd8c cm-13.0-20161024-UNOFFICIAL-pyramid.zip
34ab10eec64cdd7d6fba34702469d1be cm-13.0-20160916-UNOFFICIAL-pyramid.zip
2847757f4f5e52b71dc96d2f6c8a90c3 cm-13.0-20160905-UNOFFICIAL-pyramid.zip
ab6e83f96b38f56230d1677d43a9334a cm-13.0-20160830-UNOFFICIAL-pyramid.zip
a7d4a68b56d88a9d525bc78e3952378c cm-13.0-20160823-UNOFFICIAL-pyramid.zip
7a09910f7518358208272a8c406aec50 cm-13.0-20160816-UNOFFICIAL-pyramid.zip
560f2919bff5ba855588d03df6e140be cm-13.0-20160717-UNOFFICIAL-pyramid.zip
22d80e048de1b4091ec314a0eb2dbbcc cm-13.0-20160702-UNOFFICIAL-pyramid.zip
fd40a3b48c7405e70c66c776ba617f52 cm-13.0-20160609-UNOFFICIAL-pyramid.zip

GAPPS installieren
16ae892b5e4135e70291a9d65e418e8e open_gapps-arm-6.0-nano-20160509.zip

F-Droid
e8016a5ff306a5c21c36d3924d463b2c FDroid.apk


remove crypto from /data

make_ext4fs /dev/block/mmcblk0p23