Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Install Dependencies

Tres Finocchiaro edited this page Jan 18, 2016 · 22 revisions

Compatibility

  • ✅ 2.0 | ✅ 1.9 | ...

JDK

Contents

Windows

  1. Install ⚠️JDK 7 or higher:

http://www.oracle.com/technetwork/java/javase/downloads/

  1. Download and extract Apache Ant:

https://ant.apache.org/bindownload.cgi

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

  1. Install NSIS 3.0+:

http://nsis.sourceforge.net/Download

  1. Install git:

https://git-scm.com/download/win

Mac

  1. Install command line tools for OS X (installation methods vary)

  2. Install ⚠️JDK 7 or higher via: http://www.oracle.com/technetwork/java/javase/downloads/

  3. Install homebrew via:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Install ant dependencies via:
# Install ant
brew install ant
  1. Install git:

https://git-scm.com/download/mac

Ubuntu

  1. Install all dependencies (⚠️jdk7, ant, nsis, makeself) via:
sudo apt-get install git openjdk-7-jdk ant nsis makeself

Fedora

  1. Install all dependencies (⚠️jdk, ant, nsis, makeself) via:
sudo yum install git java-1.?.0-openjdk-devel ant nsis makeself

Clone Source Code

  1. Clone the repository:
  • 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

  • QZ Tray 2.0
git clone -b 2.0 https://github.com/qzind/qz-print

Note: This will clone the source code for the 2.0 branch of the software. To clone an experimental branch, you would need to specify that branch name i.e. -b 2.0-foobar


Compile

  1. See separate compiling tutorial.