-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhowto_build.txt
78 lines (60 loc) · 2.43 KB
/
howto_build.txt
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
This directory include the libraries required by all x64 build of xptools.
Unlike the OSX/Linux libraries, which always have to be built be any developer
from source with a provided makefile - for windows its a less automated approach:
Some libraries require building with nmake on the command line, other have a
msvc2017 *.sln ready to compile.
Either build method on windows requires a manual copy of the relevant include
and output files into the into the respective ./include and ./lib directories.
For his reason, the precompiled libraries and other files in these two
directories are included in the git repository, so normally no action is
required when compiling the XPtools with msvc2017.
### msvc2017 ide builds ###
cd zlib-1.2.11
compile contrib\vstudio\vs17\zlibvc.sln
copy zlib.h zconf.h ..\include\
cd contrib\vstudio\vs17\x64\Release
copy zlibstat.lib zlibstat.pdb $lib\
cd squish-1.11
compile vs17\squish.sln
copy squish.h ..\include\
cd vs17\squish\x64\Release
copy squish.lib squish.pdb $lib\
cd libpng-1.2.41
compile projects\vs17\libpng.sln
copy png.h pngconf.h ..\include\
cd projects/vs17/x64/LIB Release
copy libpng.lib libpng.pdb $lib\
cd expat-2.0.1
compile expat.sln
copy lib\expat.h lib\expat_external.h ..\include\
copy win32\libexpatMT.lib win32\libexpatMT.pdb ..\lib\
cd jpeg-9a
compile jpeg.sln
copy jpeg.lib jpeg.pdb ..\lib\
copy jpeglib.h jconfig.h jmorecfg.h jerror.h ..\include\
cd freetype-2.2.1
compile builds\win32\visualc\freetype.sln
copy include\ft2build.h freetype ..\include\
copy objs\freetype.lib objs\freetype.pdb ..\lib\
## libcurl with windows native schannel, no openSSL !
## needs to link ws2_32.lib wldap32.lib advapi32.lib crypt32.lib
cd libcurl-7.74.0\winbuild
namke /f Makefile.vc mode=static ZLIB_PATH=..\.. WITH_ZLIB=static RTLIBCFG=static
Then test the results:
bin\curl -v -H "Accept-Encoding, gzip, deflate" --compressed https://gateway.x-plane.com/runway_coordinates.txt -o junk.txt
Check its using port 443, download is ~300kB, files size on disk ~750kB and its plain ASCII
copy lib\libcurl_a.lib ..\..\..\lib
md ..\..\..\include\curl
copy include\curl ..\..\..\include\curl\
## end if libcurl instructions
cd tiff-4.0.3
nmake /f Makefile.vc lib
cd libtiff
copy libtiff.lib libtiff.pdb ..\lib\
copy tiff.h tiffconf.h tiffio.h tiffio.hxx tiffvers. ..\include\
cd proj-4.7.0
nmake /f makefile.vc
copy src\proj.lib ..\lib\
copy src\proj_api.h ..\include\
cd libgeotiff-1.4.2
make /f makefile.vc install