-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathINSTALL
57 lines (39 loc) · 1.66 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
-----------------
PREPARE FOR BUILD
-----------------
Compiling with Qt5 needs qtbase5-dev, qtmultimedia5-dev, libqt5printsupport5, libqt5multimedia5
Name of packages can be different on distributions.
---------------
BUILD for Linux
---------------
On linux systems you need the following packages installed to build: cmake, make, g++ and selected Qt packages
Other packages needed un ubuntu 18.04: libftdi1-dev libftdipp1-dev libusb-1.0.0-dev
To build the executable binary file run the script:
# ./create_elf_binary.sh
In this shell script you can change followed options in the line:
cmake -DUSE_DEBUGGER=ON -DUSE_QT5=ON ..
USE_DEBUGGER ON/OFF: the debug information in binary file
USE_QT5 ON/OFF: select Qt5 or Qt4
USE_PROFILER ON/OFF: include the information for profiling
After compiling the linux binary you can test the executable:
# ./ponyprog
Or with debugger:
# gdb -ex run --args ./ponyprog
But for direct communication about TTY be sure, than you have access rights.
Your username must be added to the tty group. Same playing for the LPT case.
The other possibility tu run the program is 'sudo' tool.
To generate the debian installer file (deb) please run the script:
# ./create_deb_package.sh
Install the package
# sudo dpkg -i ./ponyprog*.deb
The installation set the capabilities from postinst script:
# setcap 'cap_sys_tty_config=+ep' /usr/bin/ponyprog
To generate the rpm file run the script :
# ./create_rpm_package.sh
-----------------------------
BUILD for Windows using mingw
-----------------------------
Install QT SDK 5.
To build the executable file run the script:
# create_exe_binary.bat
You will find ponyprog.exe in the build directory.