forked from SLUB-digitalpreservation/fixit_tiff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.windows
26 lines (21 loc) · 819 Bytes
/
README.windows
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Crosscompiling to Windows
=========================
== preparation ==
* Install mingw-C-Compiler under Linux
== libtiff ==
* needed to compile fixit_tiff and checkit_tiff
* download the libtiff Source package
** http://libtiff.maptools.org/ (tiff-4.0.6.tar.gz or higher)
* crosscompile libtiff for windows
** cd to unzipped source package
** ./configure --host=i686-w64-mingw32 --disable-win32-io
(the option "--disable-win32-io" is necessary to get correct filedescriptor
under windows)
** make -j 2
== fixit_tiff ==
* now compile fixit-tool
** cd to fixit-tool directory
** mkdir build_windows
** cd build_windows
** cmake -DCMAKE_TOOLCHAIN_FILE=../src/toolchain-mingw32.cmake -DTIFF_LIBRARY=~/Downloads/tiff-4.0.6/libtiff/.libs/libtiff.a -DTIFF_INCLUDE_DIR=~/Downloads/tiff-4.0.6/libtiff/ ../src/
** make