mapbox / windows-builds

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

Window Build #117

Open QuincyAdams24 opened 6 years ago

QuincyAdams24 commented 6 years ago

not sure what I did wrong.

  1. Downloaded mapbox/windows-builds
  2. installed Python 64 bit
  3. installed git 64 bit
  4. installed VS2015
  5. updated settings.bat to point to 64 bit python and git.
  6. ran settings.bat "FASTBUILD=0" "BOOST_VERSION=63"
  7. ran scripts\build.bat

build_mapnik.bat fails

     ..\..\src\geometry\closest_point.cpp(81): error C2440: 'initializing': cannot convert from 'initializer list'
   to 'mapnik::geometry::result_type'

closest_point.cpp return resulttype { pt.x, pt_.y, 0.0 };

springmeyer commented 6 years ago

This looks to me that you are pulling Mapnik master, which requires C++14 features which likely don't work with visual studio 2015. I would recommend sticking with Mapnik 3.0.x rather than master (which is future v3.1.x)

QuincyAdams24 commented 6 years ago

I tried

  1. ran settings.bat "FASTBUILD=0" "BOOST_VERSION=63" "MAPNIKBRANCH=v3.0.x"
  2. ran scripts\build.bat

now I get fatal error C1083: Cannot open source file: '....\test\visual\parse_map_sizes.cpp': No such file or dire ctory [D:\CodeDepot\Mk_Mapnik\windows-builds\packages\mapnik-v3.0.x\mapnik-gyp\build\test_visual_run.vcxproj]

QuincyAdams24 commented 6 years ago

I pulled master and copied over the missing files to v3.0.x. ran it again now I get

...\pip.zip\pip_vendor\requests\packages\urllib3\util\ssl.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning. ...\pip.zip\pip_vendor\requests\packages\urllib3\util\ssl.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning. Could not fetch URL https://pypi.python.org/simple/pip/: There was a problem confirming the ssl certificate: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed - skipping Could not find a version that satisfies the requirement pip (from versions: ) No matching distribution found for pip

Nacktiv commented 6 years ago
  1. installed Python 64 bit

isn't Python 32bit necessary?