Skip to content
This repository has been archived by the owner on May 14, 2022. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangxw committed Sep 22, 2014
1 parent 9032813 commit f61a5f7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions README.md
@@ -1,23 +1,23 @@
# How to compile mupdf-qt

## Compile on Linux
#### Install tools and thirdparty libraries
###### Install tools and thirdparty libraries
You should install some tools and thirdparty libraries. For Ubuntu users, you can use the following command(similar for other Linux users):

sudo apt-get install build-essential pkg-config cmake qtbase5-dev qt5-default libfreetype6-dev

#### Clone source code
###### Clone source code

git clone https://github.com/xiangxw/mupdf-qt.git
cd mupdf-qt
git submodule update --init --recursive

#### Compile MuPDF Source
###### Compile MuPDF Source

cd mupdf
make

#### Compile mupdf-qt
###### Compile mupdf-qt

cd ..
mkdir build
Expand All @@ -26,30 +26,30 @@ You should install some tools and thirdparty libraries. For Ubuntu users, you ca
make

## Compile on Window with Visual Studio
#### Clone source code
###### Clone source code

git clone https://github.com/xiangxw/mupdf-qt.git
cd mupdf-qt
git submodule update --init --recursive

#### Compile MuPDF Source
###### Compile MuPDF Source
Go to platforms/win32, open mupdf.sln and build.

#### Qt5
###### Qt5
Install Qt5 and add path of qmake.exe to PATH


#### Compile mupdf-qt
###### Compile mupdf-qt
Launch CMake(gui version), set source code directory and build directory. Configure and generate mupdf-qt.sln. Open mupdf-qt.sln and build it.

## Compile on Window with MSYS MinGW
#### Clone source code
###### Clone source code

git clone https://github.com/xiangxw/mupdf-qt.git
cd mupdf-qt
git submodule update --init --recursive

#### Installing MSYS/MinGW
###### Installing MSYS/MinGW
Install MSYS and MinGW (http://www.mingw.org/wiki/Getting_Started). Using the Graphical User Interface Installer, [mingw-get-setup.exe](http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download), is recommended. During installation, "checking/ticking" the following in "Basic Setup" is recommended:

1. mingw32-base
Expand All @@ -59,14 +59,14 @@ Install MSYS and MinGW (http://www.mingw.org/wiki/Getting_Started). Using the Gr

Add ```C:\MinGW\bin;``` to your PATH system variables (at the beginning).

#### Compile MuPDF source
###### Compile MuPDF source

cd mupdf-qt
make build=debug NOX11=yes

For release, just change "debug" to "release". NOX11 is necessary since X11 headers are not available in Windows. Note that this will not build the "app" packaged with the MuPDF source.

#### Compile mupdf-qt
###### Compile mupdf-qt

Install CMake.

Expand Down

0 comments on commit f61a5f7

Please sign in to comment.