Install Dependencies - sdon2/thermal-printer-tray GitHub Wiki
Compatibility
- :white_check_mark: 2.1 | :white_check_mark: 2.0 | :white_check_mark: 1.9 | ...
JDK
- QZ Tray 2.1 - JDK8 or higher (AdoptOpenJDK11 HotSpot recommended)
- QZ Tray 2.0 - JDK7 or higher (AdoptOpenJDK11 HotSpot recommended)
Contents
Windows
-
Install :warning:JDK 7 or higher:
-
Download and extract Apache Ant:
-
Setup environment variables
JAVA_HOME
,PATH
, etc:- Assume Ant is installed in
c:\ant\
. The following commands set up the environment:set ANT_HOME=c:\ant set JAVA_HOME=c:\jdk1.7.0_51 set PATH=%PATH%;%ANT_HOME%\bin
- Assume Ant is installed in
-
Install NSIS 3.0+:
-
Install git:
Mac
-
Install command line tools for macOS (installation methods vary)
-
Install :warning:JDK 7 or higher via: http://www.oracle.com/technetwork/java/javase/downloads/
-
Install homebrew via:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
Install brew dependencies via:
brew install ant makeself nsis
-
If you prefer to use a system-installed version of Java, you can use
brew install ant --ignore-dependencies
-
Install git:
Ubuntu
-
Install AdoptOpenJDK11 via https://adoptopenjdk.net/installation.html#linux-pkg
- Note: You can use OpenJDK 8+ via apt instead if desired
-
Install remaining dependencies (ant, nsis, makeself) via:
sudo apt-get install git ant nsis makeself
Fedora
-
Install AdoptOpenJDK11 via https://adoptopenjdk.net/installation.html#linux-pkg
- Note: You can use OpenJDK 8+ via yum instead if desired
-
Install remaining dependencies (ant, nsis, makeself) via:
sudo yum install git ant nsis makeself
Clone Source Code
- Clone the repository:
-
QZ Tray
git clone https://github.com/qzind/tray
Note: This will clone the source code for the default branch of the software. To clone a non-default branch, you would need to specify that branch name i.e.
-b foo
Compile
- See separate compiling tutorial.