From 4f0539769acc2cef5b16e1bb14a3170437fe606f Mon Sep 17 00:00:00 2001 From: Aleks Kissinger Date: Sat, 20 Oct 2018 12:04:46 +0200 Subject: updated readme (#18) and turned mac deployment back on --- .travis.yml | 2 +- README.md | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 98be8d2..5c5e8cd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: cpp env: - - DEPLOY_TIKZIT=0 + - DEPLOY_TIKZIT=1 matrix: include: diff --git a/README.md b/README.md index 24753cf..5ae4ba9 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,30 @@ To install Qt VS Tools in Visual Studio 2017, go to `Tools > Extensions and Upda The only dependency besides Qt itself is flex/bison, which is used to build the TikZ parser. The simplest way to install this is to download WinFlexBison, then rename or copy `win_flex.exe` and `win_bison.exe` to `flex.exe` and `bison.exe` respectively, and make sure both are in your `%PATH%` so the build tools can find them. +You can alternatively build from the command line with mingw or Visual Studio, and install necessary dependencies via Chocolatey. This setup has been tested on Windows 10 with Visual Studio 2015 and Qt 5.11.1. After installing Qt 5.11 and Visual Studio, run the following commands in a `cmd` prompt: + + + choco install winflexbison + C:\Qt\5.11.1\msvc2015_64\bin\qtenv2.bat + call "C:\ProgramFiles (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 + cd C:\path\to\tikzit + qmake + nmake.exe + + ## Building on Linux -This should be buildable in Linux using a "standard" dev setup (gcc, flex, bison, make). You will also need to configure Qt (see instructions for openSUSE, Ubuntu and Arch Linux). After that, building is: +This should be buildable in Linux using a "standard" dev setup (gcc, flex, bison, make) as well as Qt. It has been tested with Qt 5.9, which is packaged with Ubuntu 18.04 (Bionic Beaver). The setup on Ubuntu is: + + $ sudo apt-get install flex bison qt5-default + +After that, building is: $ qmake $ make +Building on other distributions should be similar. For Qt setup, you can find instructions for openSUSE and Arch Linux on the Qt wiki. ## Building on MacOS @@ -39,6 +55,16 @@ Then, TikZiT is built just like a normal Qt project: $ make +On older systems (pre-10.11), you can build with Qt 5.6, which claims to support Mac OS as far back as Mountain Lion. It is installable via MacPorts: + + $ sudo port -N -k install qt56 + $ export PATH=/opt/local/libexec/qt5/bin:$PATH + +Then, you should be able to run `qmake && make`, as above. + + + + ## Building Poppler with Qt bindings Although TikZiT doesn't currently support PDF preview, it probably will in the near future via Poppler. Here's the instructions for building it as a developer. -- cgit v1.2.3