TheLord45 / tpanel

AMX touch panel simulator for Linux, Mac OSX, Android and iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TPanel

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.

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.

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!

The software uses internally the Skia library for drawing all objects and the Qt 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.

Full documentation

Look at the full documentation in this repository. You'll find the reference manual in three different formats:

How to compile

Prerequisits

For Linux and MacOS you need the following libraries installed:

  • Qt 6
  • Skia
  • pjsip
  • openssl (part of your distribution)
  • Expat (part of your distribution)
  • Freetype (part of your distribution)

To install Qt I recommend to download the open source version from Open Source Development. However: Some Linux distributions are coming with Qt included. If you want to use this version make sure, to install the Qt6 packages.

Compile for Linux desktop

First download the source into a directory. Then enter the directory and type the following commands.

$ cmake -B build -DCMAKE_PREFIX_PATH="/<path>/<to>/Qt/6.x.x/gcc_64/lib/cmake"
$ cd build
$ make
$ sudo make install

Replace <path>/<to>/ with the path to your Qt installation (usualy /opt/Qt).

Compile on MacOSX

First download the source into a directory. Then enter the directory and type the following commands.

$ cmake -B build -DCMAKE_PREFIX_PATH="/<path>/<to>/Qt/6.x.x/macos/lib/cmake:/<path>/<to>/homebrew/lib/cmake"
$ cd build
$ make

Replace <path>/<to>/ with the path to your Qt installation and to homebrew (usualy $HOME/Qt, /opt/homebrew).

You'll find the application in build/tpanel.app/Contents/MacOS/tpanel. Start it from the command line like:

build/tpanel.app/Contents/MacOS/tpanel -c <configuration file>

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.

Compile for other operating systems

TPDesign 4 and 5

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. 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.

About

AMX touch panel simulator for Linux, Mac OSX, Android and iOS

License:GNU General Public License v3.0


Languages

Language:C++ 94.4%Language:Java 3.1%Language:Objective-C++ 0.9%Language:CMake 0.8%Language:Shell 0.7%Language:Scilab 0.1%