Skip to content

Commit

Permalink
Fine-tuning installation instructions under debian
Browse files Browse the repository at this point in the history
  • Loading branch information
epsilonrt committed Jan 11, 2017
1 parent b97f86c commit 7d7d96c
Show file tree
Hide file tree
Showing 3 changed files with 121 additions and 0 deletions.
39 changes: 39 additions & 0 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,45 @@ Sur un système Debian:
$ make
$ sudo make install

* Installer les dépendances:

$ sudo apt-get update
$ sudo apt-get install qt4-qmake qt4-dev-tools build-essential

* Vérifier la version de qmake (doit être 2.X) :

$ qmake -v
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/arm-linux-gnueabihf

Si la version est 3.X c'est que vous avez QT5, il faut sélectionner QT4:

$ qtchooser -l
4
5
default
qt4-arm-linux-gnueabihf
qt4
qt5-arm-linux-gnueabihf
qt5
$ qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/arm-linux-gnueabihf/qt5/bin"
QTLIBDIR="/usr/lib/arm-linux-gnueabihf"
$ export QT_SELECT="qt4"
$ qmake -v
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/arm-linux-gnueabihf

* Compiler et installer mbpoll :

$ cd mbpoll
$ qmake
$ make
$ sudo make install

C'est tout !

Sur Raspberry Pi, il est possible de valider la prise en charge des
circuits d'interface Chipio afin de gérer des esclaves ModBus à travers
le bus I2c.
Expand Down
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,47 @@ floating single precision.

The installation instructions are in the INSTALL file.

For example, for a debian system:

* Install dependencies:

sudo apt-get update
sudo apt-get install qt4-qmake qt4-dev-tools build-essential

* Check the version of qmake (must be 2.X) :

qmake -v
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/arm-linux-gnueabihf

If the version is 3.X is that you have QT5, you must select QT4:

qtchooser -l
4
5
default
qt4-arm-linux-gnueabihf
qt4
qt5-arm-linux-gnueabihf
qt5
qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/arm-linux-gnueabihf/qt5/bin"
QTLIBDIR="/usr/lib/arm-linux-gnueabihf"
export QT_SELECT="qt4"
qmake -v
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/arm-linux-gnueabihf

* Build and install mbpoll :

cd mbpoll
qmake
make
sudo make install

That's all !

## Examples

The following command is used to read the input registers 1 and 2 of the
Expand Down
41 changes: 41 additions & 0 deletions README_FR.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,47 @@ hexadécimal ou flottant simple précision.
## Installation
Le instructions d'installation se trouvent dans le fichier INSTALL.

Par exemple pour un système debian :

* Installer les dépendances:

sudo apt-get update
sudo apt-get install qt4-qmake qt4-dev-tools build-essential

* Vérifier la version de qmake (doit être 2.X) :

qmake -v
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/arm-linux-gnueabihf

Si la version est 3.X c'est que vous avez QT5, il faut sélectionner QT4:

qtchooser -l
4
5
default
qt4-arm-linux-gnueabihf
qt4
qt5-arm-linux-gnueabihf
qt5
qtchooser -print-env
QT_SELECT="default"
QTTOOLDIR="/usr/lib/arm-linux-gnueabihf/qt5/bin"
QTLIBDIR="/usr/lib/arm-linux-gnueabihf"
export QT_SELECT="qt4"
qmake -v
QMake version 2.01a
Using Qt version 4.8.6 in /usr/lib/arm-linux-gnueabihf

* Compiler et installer mbpoll :

cd mbpoll
qmake
make
sudo make install

C'est tout !

##Exemples d'utilisation

La commande ci-dessous permet de lire les registres d'entrée 1 et 2 de
Expand Down

0 comments on commit 7d7d96c

Please sign in to comment.