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
git clone https://github.com/xiangxw/mupdf-qt.gitcd mupdf-qtgit submodule update --init --recursive
cd mupdfmake
cd ..mkdir buildcd buildcmake ..make
git clone https://github.com/xiangxw/mupdf-qt.gitcd mupdf-qtgit submodule update --init --recursive
Go to platforms/win32, open mupdf.sln and build.
Install Qt5 and add path of qmake.exe to PATH
Launch CMake(gui version), set source code directory and build directory. Configure and generate mupdf-qt.sln. Open mupdf-qt.sln and build it.
git clone https://github.com/xiangxw/mupdf-qt.gitcd mupdf-qtgit submodule update --init --recursive
Install MSYS and MinGW (http://www.mingw.org/wiki/Getting_Started). Using the Graphical User Interface Installer, mingw-get-setup.exe, is recommended. During installation, "checking/ticking" the following in "Basic Setup" is recommended:
Add C:\MinGW\bin;
to your PATH system variables (at the beginning).
cd mupdf-qtmake 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.
Install CMake.
Open CMakeLists.txt with Qt Creator(Qt5 built with mingw), run cmake and build mupdf-qt
联系客服