Skip to content

assemblits/device-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Device Simulator

Device-simulator is a small app based on a Qt example to test Eru scada comms.

Build Status Join the chat at https://gitter.im/eru_An_open_linux_SCADA_based_on_JavaFX/Lobby

Compiling

Make sure the Qt (>= 5.9) development libraries are installed:

  • In Ubuntu/Debian: apt-get install qt5-default qttools5-dev-tools zlib1g-dev
  • In Fedora: sudo dnf builddep tiled
  • In Arch Linux: pacman -S qt
  • In Mac OS X with Homebrew:
    • brew install qt5
    • brew link qt5 --force
  • Or you can download Qt from: https://www.qt.io/download-open-source/

After installing you can compile by running:

$ qmake (or qmake-qt5 on some systems)
$ make

Download the current release of device-simulator.

To do a shadow build, you can run qmake from a different directory and refer it to device-simulator.pro build file, for example:

$ cd ~
$ mkdir device-simulator
$ cd device-simulator
$ qmake [PATH TO THE SOURCE]/tiled.pro
$ make

You can now simply run device-simulator using bin/device-simulator.

Installing

For installing device-simulator you can run make install. By default device-simulator will install to /opt/eru/device-simulator. You can change this prefix when running qmake, and/or you can change the install root when running make install, as follows:

Use /usr/local instead of /opt/eru:

$ qmake -r PREFIX=/usr/local

(Recursive needed when it's not the first time that you're running qmake, since this affects nested pro files)