80 | | Part of packaging process is also producing VC libraries using `dumpbin` command which is part of [https://www.visualstudio.com Visual Studio] framework. It's recommended to install ''Common Tools for Visual C++''. |
81 | | |
| 80 | Part of packaging process is also producing VC libraries using `dumpbin` command which is part of [https://www.visualstudio.com Visual Studio] framework. It's recommended to install ''Common Tools for Visual C++'' (e.g. in Microsoft Visual Studio 14.0). |
| 81 | |
| 82 | In this case, following lines in the source file `mswindows/osgeo4w/mklibs.sh` should look like: |
| 83 | |
| 84 | {{{ |
| 85 | PROGRAMFILES="/c/Program Files (x86)" |
| 86 | VSDIR="$PROGRAMFILES/Microsoft Visual Studio 14.0" |
| 87 | PATH="$VSDIR/Common7/IDE:$PATH" |
| 88 | PATH="$VSDIR/VC/bin:$PATH" |
| 89 | PATH="$VSDIR/Common7/Tools:$PATH" |
| 90 | PATH="$PATH:/c/OSGeo4W${OSGEO4W_POSTFIX}/bin" |
| 91 | }}} |
| 92 | |
| 93 | In newer MS Studio versions, Visual Studio Community can be installed instead. |
| 94 | |
| 95 | In the case of newer MS Studio versions (e.g. 2017 on 64 bit platform), following lines in the source file `mswindows/osgeo4w/mklibs.sh` may look like: |
| 96 | |
| 97 | {{{ |
| 98 | PROGRAMFILES="/c/Program Files (x86)" |
| 99 | VSDIR="$PROGRAMFILES/Microsoft Visual Studio/2017/Community" |
| 100 | PATH="$VSDIR/Common7/IDE:$PATH" |
| 101 | PATH="$VSDIR/VC/Tools/MSVC/14.12.25827/bin/Hostx64/x64:$PATH" |
| 102 | PATH="$VSDIR/Common7/Tools:$PATH" |
| 103 | PATH="$PATH:/c/OSGeo4W${OSGEO4W_POSTFIX}/bin" |
| 104 | }}} |