mapbox / windows-builds

DEPRECATED! build scripts for mapnik dependencies, mapnik, node-mapnik, node, libosmiom, osmium-tool
38 stars 22 forks source link

scripts\build.bat failed #99

Closed hcfang2000 closed 7 years ago

hcfang2000 commented 7 years ago
  1. c:\Python27 installed and ready
  2. Git installed and ready
  3. installed Visual Studio 2015 and installed VS2015 runtime
  4. open VS2015 x64 Native Tools Command Prompt
  5. mkdir c:\dev2015
  6. cd c:\dev2015
  7. git clone https://github.com/mapbox/windows-builds.git
  8. cd windows-builds
  9. settings.bat
  10. scripts\build.bat

Build process running, but then it failed after Build started (i.e. after solution file generated) The attached below is the screenshot.

Did I do anything wrong? How to solve it? Thanks.

c:\dev2015\windows-builds>scripts\build.bat FASTBUILD skipping deps ------ MAPNIK ----- cloning mapnik Cloning into 'mapnik-master'... remote: Counting objects: 109686, done. remote: Compressing objects: 100% (17/17), done. remote: Total 109686 (delta 5), reused 0 (delta 0), pack-reused 109669 Receiving objects: 100% (109686/109686), 156.74 MiB | 598.00 KiB/s, done. Resolving deltas: 100% (73532/73532), done. Checking out files: 100% (1286/1286), done. fetching mapnik checking out mapnik/master Already on 'master' Your branch is up-to-date with 'origin/master'. ERRORLEVEL: 0 pulling mapnik Already up-to-date. ERRORLEVEL: 0 SUPERFASTBUILD: Submodule 'deps/mapbox/variant' (https://github.com/mapbox/variant.git) registered for path 'deps/ma pbox/variant' Submodule 'test/data' (https://github.com/mapnik/test-data.git) registered for path 'test/data' Submodule 'test/data-visual' (https://github.com/mapnik/test-data-visual.git) registered for path 't est/data-visual' Cloning into 'C:/dev2015/windows-builds/packages/mapnik-master/deps/mapbox/variant'... Cloning into 'C:/dev2015/windows-builds/packages/mapnik-master/test/data'... Cloning into 'C:/dev2015/windows-builds/packages/mapnik-master/test/data-visual'... Submodule path 'deps/mapbox/variant': checked out '84a426a31ad3b63c4b8f8d189841e19af48cda40' Submodule '.mason' (https://github.com/mapbox/mason.git) registered for path 'deps/mapbox/variant/.m ason' Cloning into 'C:/dev2015/windows-builds/packages/mapnik-master/deps/mapbox/variant/.mason'... Submodule path 'deps/mapbox/variant/.mason': checked out '07179f160b96c72ddedbbe6bf82580d1a1d0091a' Submodule path 'test/data': checked out '6ce59adfc4f11b16a5dc0e2020c36dc614850989' Submodule path 'test/data-visual': checked out '941db3d00920dc7aceaa6797096a7228bc7bac14' Cloning into 'bindings/python'... remote: Counting objects: 85043, done. remote: Total 85043 (delta 0), reused 0 (delta 0), pack-reused 85043 Receiving objects: 100% (85043/85043), 134.37 MiB | 707.00 KiB/s, done. Resolving deltas: 100% (56829/56829), done. Already up-to-date. checking out mapnik python: master Already on 'master' Your branch is up-to-date with 'origin/master'. cloning mapnik-gyp Cloning into 'mapnik-gyp'... remote: Counting objects: 1158, done. remote: Total 1158 (delta 0), reused 0 (delta 0), pack-reused 1158Receiving objects: 92% (1066/1158 Receiving objects: 95% (1101/1158), 268.01 KiB | 173.00 KiB/s Receiving objects: 100% (1158/1158), 321.71 KiB | 173.00 KiB/s, done. Resolving deltas: 100% (749/749), done. fetching mapnik-gyp checking out mapnik-gyp/master Already on 'master' Your branch is up-to-date with 'origin/master'. pulling mapnik-gyp Already up-to-date. [c:\dev2015\windows-builds\packages\mapnik-master\mapnik-gyp\mapnik-sdk] does not exist! downloading binary deps package... "checking for mapnik-win-sdk-binary-deps-14.0-x64.7z" "downloading https://mapbox.s3.amazonaws.com/windows-builds/windows-build-deps/mapnik-win-sdk-binary -deps-14.0-x64.7z" extracting binary deps package... Processing archive: mapnik-win-sdk-binary-deps-14.0-x64.7z building mapnik 16:38:04.10: calling build.bat of mapnik-gyp ... Cloning into 'gyp'... remote: Sending approximately 11.60 MiB ... remote: Total 17809 (delta 11114), reused 17809 (delta 11114)R Receiving objects: 100% (17809/17809), 11.60 MiB | 839.00 KiB/s, done. Resolving deltas: 100% (11114/11114), done.

Checking out files: 100% (1645/1645), done.

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! SET IGNOREFAILEDTESTS=1 REMOVE after tests are working

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

not building Python bindings building tests running code analysis, RUNCODEANALYSIS:0 PACKAGEDEBUGSYMBOLS 0 IGNOREFAILEDTESTS 1 FASTBUILD 1 PACKAGEDEPS 0 mapnik SDK directory: c:\dev2015\windows-builds\packages\mapnik-master\mapnik-gyp\mapnik-sdk DEPSDIR: .... INFO: Could not find files for the given pattern(s). psql not found - some tests will fail SDK directory found label MAPNIK_SDK_DIR_CREATED PYTHON_DIR: c:\dev2015\windows-builds\tmp-bin\python2 doing a FASTBUILD label DOFASTBUILD INCLUDE C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Window s Kits\10\include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C: \Program Files (x86)\Windows Kits\8.1\include\shared;C:\Program Files (x86)\Windows Kits\8.1\includ e\um;C:\Program Files (x86)\Windows Kits\8.1\include\winrt;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt;C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\8.1\include\ shared;C:\Program Files (x86)\Windows Kits\8.1\include\um;C:\Program Files (x86)\Windows Kits\8.1\i nclude\winrt; generating solution file, calling gyp... ERRORLEVEL: 0 solution file generated empty directory structure created building heavy files first... Build started 10/28/2016 4:38:34 PM. Project "c:\dev2015\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik.vcxproj" on node 1 (ClCompile target(s)). c:\dev2015\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik.vcxproj(20,3): error MSB40 19: The imported project "c:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in t he declaration is correct, and that the file exists on disk. Done Building Project "c:\dev2015\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik.vcx proj" (ClCompile target(s)) -- FAILED.

Build FAILED.

"c:\dev2015\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik.vcxproj" (ClCompile targe t) (1) -> c:\dev2015\windows-builds\packages\mapnik-master\mapnik-gyp\build\mapnik.vcxproj(20,3): error MSB 4019: The imported project "c:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.04 msbuild ERRORLEVEL: 1 error during build ----------ERROR MAPNIK -------------- ERRORLEVEL 1 Python bindings built succesfully !!!!!!! IGNOREFAILEDTESTS was set to 1: check test results !!!!!!! DONE building Mapnik 16:38:04.10: started build.bat of mapnik-gyp ... 16:38:34.82: finished build.bat of mapnik-gyp ---------- ERROR windows-builds MAPNIK -------------- ---------- DONE windows-builds MAPNIK -------------- !!!!!ERROR: ABORTED!!!!!! Started at 16:23:13.90, finished at 16:38:34.84 -- DONE --- Started at 16:23:13.90, finished at 16:38:34.84

hcfang2000 commented 7 years ago

Issue solved by set VCTargetsPath=C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140