Subversion Repositories tpanel

Rev

Rev 381 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
114 andreas 1
# TPanel
313 andreas 2
**TPanel** is an emulation of some AMX G4 touch panels. The panels used to verify the communication protocol and the behavior were an *AMX MVP-5200i* an *AMX NXD-700Vi* and an *MST-701*.
114 andreas 3
 
357 andreas 4
**TPanel** was designed for *NIX desktops (Linux, BSD, …) as well as Android and IOS operating systems. To create an executable for Android a special shell script exists. It sets all dependencies and starts _cmake_ with all necessary parameters.
114 andreas 5
 
357 andreas 6
> **Hint**: With version 1.4 of **TPanel** the support for Qt 5.x was canceled. Now you must use Qt 6.x for all operating systems!
7
 
353 andreas 8
The software uses internally the [Skia](https://skia.org) library for drawing all objects and the [Qt](https://doc.qt.io/) framework to display the objects and handle widgets. **TPanel** is written in C++. This makes it especially on mobile platforms fast and reliable. It has the advantage to not drain the battery of any mobile device while running as fast as possible. Compared to commercial products the battery lasts up to 10 times longer.
114 andreas 9
 
10
# Full documentation
313 andreas 11
Look at the full documentation in this repository. You'll find the [reference manual](https://github.com/TheLord45/tpanel/tree/main/documentation) in three different formats:
114 andreas 12
* [PDF](https://github.com/TheLord45/tpanel/blob/main/documentation/ReferenceGuide.pdf)
13
* [ODT](https://github.com/TheLord45/tpanel/blob/main/documentation/ReferenceGuide.odt)
14
* [HTML](https://github.com/TheLord45/tpanel/blob/main/documentation/ReferenceGuide.html)
15
 
16
# How to compile
357 andreas 17
## Prerequisits
18
For Linux and MacOS you need the following libraries installed:
19
 
20
- [Qt 6](https://doc.qt.io/qt-6/)
21
- [Skia](https://skia.org)
22
- [pjsip](https://www.pjsip.org)
23
- openssl (part of your distribution)
24
- Expat (part of your distribution)
25
- Freetype (part of your distribution)
26
 
359 andreas 27
To install Qt I recommend to download the open source version from [Open Source Development](https://www.qt.io/download-open-source). However: Some Linux distributions are coming with Qt included. If you want to use this version make sure, to install the Qt6 packages.
357 andreas 28
 
114 andreas 29
## Compile for Linux desktop
357 andreas 30
First [download the source](https://github.com/TheLord45/tpanel) into a directory. Then enter the directory and type the following commands.
114 andreas 31
 
373 andreas 32
    $ cmake -B build -DCMAKE_PREFIX_PATH="/<path>/<to>/Qt/6.x.x/gcc_64/lib/cmake"
114 andreas 33
    $ cd build
34
    $ make
35
    $ sudo make install
36
 
357 andreas 37
> Replace `<path>/<to>/` with the path to your Qt installation (usualy `/opt/Qt`).
114 andreas 38
 
373 andreas 39
## Compile on MacOSX
40
First [download the source](https://github.com/TheLord45/tpanel) into a directory. Then enter the directory and type the following commands.
41
 
42
    $ cmake -B build -DCMAKE_PREFIX_PATH="/<path>/<to>/Qt/6.x.x/macos/lib/cmake:/<path>/<to>/homebrew/lib/cmake"
43
    $ cd build
381 andreas 44
    $ make
373 andreas 45
 
46
> Replace `<path>/<to>/` with the path to your Qt installation and to homebrew (usualy `$HOME/Qt`, `/opt/homebrew`).
47
 
381 andreas 48
You'll find the application in `build/tpanel.app/Contents/MacOS/tpanel`. Start it from the command line like:
49
 
50
    build/tpanel.app/Contents/MacOS/tpanel -c <configuration file>
51
 
359 andreas 52
If everything compiled successful and installed, you can start the application. There is a setup dialog included. It depends on the operating system of how this setup looks like.
114 andreas 53
 
357 andreas 54
## Compile for other operating systems
114 andreas 55
 
358 andreas 56
- [Compile for Android](https://github.com/TheLord45/tpanel/blob/main/documentation/build_android.md)
57
- [Compile for iOS](https://github.com/TheLord45/tpanel/blob/main/documentation/build_ios.md)
465 andreas 58
 
59
# TPDesign 4 and 5
60
**TPanel** supports currently TP4 files only. This will change with one of the next versions. Then **TPanel** will support TP5 also. To be able to unarchive TP4 and TP5 files look at [fsfreader](https://github.com/TheLord45/fsfreader). This little tool can read the files produced by TPDesign4 or TPDesign5. The file format is an archive format containing a lot of configuration files and of course the resources like images, fonts and sounds. Especially if you run **TPanel** on a desktop or laptop you may find this tool useful. Or if you be just inquisitive.