Skip to content

Commit

Permalink
fix building win32 target
Browse files Browse the repository at this point in the history
  • Loading branch information
chrox committed Sep 25, 2014
1 parent 6d698c7 commit 5700663
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,3 @@
[submodule "zsync"]
path = zsync
url = http://zsync.moria.org.uk/zsync.git
[submodule "libpng"]
path = libpng
url = git://git.code.sf.net/p/libpng/code
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ fetchthirdparty:
&& cd $(K2PDFOPT_DIR) && rm leptonica-1.69.tar.gz \
&& wget http://leptonica.com/source/leptonica-1.69.tar.gz || true
cd $(K2PDFOPT_DIR) && tar zxf leptonica-1.69.tar.gz
# patch leptonica for a small typo, it's already fixed in 1.70
cd $(K2PDFOPT_DIR)/leptonica-1.69 && sed -i 's|hfind|hFind|g' src/utils.c
[ ! -f $(K2PDFOPT_DIR)/tesseract-ocr-3.02.02.tar.gz ] \
&& cd $(K2PDFOPT_DIR) \
&& wget http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.02.tar.gz || true
Expand All @@ -545,6 +547,12 @@ fetchthirdparty:
[ `md5sum tar-1.28.tar.gz |cut -d\ -f1` != 6ea3dbea1f2b0409b234048e021a9fd7 ] \
&& rm tar-1.28.tar.gz && wget http://ftp.gnu.org/gnu/tar/tar-1.28.tar.gz || true
tar zxf tar-1.28.tar.gz
# download libpng
[ ! -f libpng-1.6.12.tar.gz ] \
&& wget http://download.sourceforge.net/libpng/libpng-1.6.12.tar.gz || true
[ `md5sum libpng-1.6.12.tar.gz |cut -d\ -f1` != 297388a6746a65a2127ecdeb1c6e5c82 ] \
&& rm libpng-1.6.12.tar.gz && wget http://download.sourceforge.net/libpng/libpng-1.6.12.tar.gz || true
tar zxf libpng-1.6.12.tar.gz


# ===========================================================================
Expand Down
5 changes: 2 additions & 3 deletions Makefile.defs
Original file line number Diff line number Diff line change
Expand Up @@ -255,9 +255,8 @@ JPEG_LIB=$(OUTPUT_DIR)/libs/libjpeg$(if $(WIN32),-9.dll,.so.9)
JPEG_DIR=jpeg

PNG_LIB=$(OUTPUT_DIR)/libs/libpng16$(if $(WIN32),-16.dll,.so.16)
PNG_DIR=libpng
#PNG_DIR=$(CRENGINE_DIR)/thirdparty/libpng
PNG_BUILD_DIR=$(CRENGINE_BUILD_DIR)/thirdparty/libpng
PNG_DIR=libpng-1.6.12
PNG_BUILD_DIR=$(PNG_DIR)/lib

SDCV_DIR=sdcv-0.4.2
GLIB_DIR=glib-2.6.6
Expand Down
2 changes: 1 addition & 1 deletion kpvcrlib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ INCLUDE_DIRECTORIES(
)

IF(DEFINED ENV{WIN32})
ADD_DEFINITIONS(-DWIN32=1 -D_WIN32=1 -DQT_GL=1)
ADD_DEFINITIONS(-DWIN32=1 -D_WIN32=1 -DQT_GL=1 -DMINGW)
ELSE()
ADD_DEFINITIONS(-DLINUX=1 -D_LINUX=1)
ENDIF()
Expand Down
2 changes: 1 addition & 1 deletion kpvcrlib/crengine
Submodule crengine updated 1 files
+1 −1 crengine/src/wordfmt.cpp
1 change: 0 additions & 1 deletion libpng
Submodule libpng deleted from d55c4f

0 comments on commit 5700663

Please sign in to comment.