-
Notifications
You must be signed in to change notification settings - Fork 277
Install Dependencies
This tutorial is for installing the dependencies necessary for compiling QZ Tray (as well as QZ Print) on Windows, Mac or Ubuntu and accessing the source code repository using git.
To compile, see separate compiling tutorial.
##Install Dependencies
####Windows
- Install JDK 7 or higher:
Note: JDK 8 is required for HTML printing in QZ Tray 2.0
http://www.oracle.com/technetwork/java/javase/downloads/
- Download and extract Apache Ant:
https://ant.apache.org/bindownload.cgi
- 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
http://ant.apache.org/manual/install.html#setup
- Install NSIS 3.0+:
http://nsis.sourceforge.net/Download
- Install git:
https://git-scm.com/download/win
####Mac
-
Install command line tools for OS X (installation methods vary)
-
Install JDK 7 or higher via: http://www.oracle.com/technetwork/java/javase/downloads/
Note: JDK 8 is required for HTML printing in QZ Tray 2.0
- Install homebrew via:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Install ant dependencies via:
# Install ant
brew install ant
- Install git:
https://git-scm.com/download/mac
####Ubuntu
- Install all dependencies (jdk, ant, nsis, makeself) via:
sudo apt-get install git openjdk-7-jdk ant nsis makeself
####Fedora
- Install all dependencies (jdk, ant, nsis, makeself) via:
sudo yum install git java-1.?.0-openjdk-devel ant nsis makeself
##Clone Source Code
- Clone the repository:
- QZ Tray 1.9
git clone -b 1.9 https://github.com/qzind/qz-print
- QZ Tray 1.9
git clone -b 1.9 https://github.com/qzind/qz-print
Note: This will clone the source code for the
1.9
branch of the software. To clone an experimental branch, you would need to specify that branch name i.e.-b 1.9-pdfbox
##Compile
- See separate compiling tutorial.