On GitHub is a wonderful installation instructions, but most users GitHub, use Linux, it's not worked on Windows.... https://github.com/openlayers/ol3/wiki/Developer-Guide

How can I build OpenLayers 3 on Windows?

Can't install Pystache

Traceback (most recent call last):
  File "C:\Openlayers\pystache-0.5.3\setup.py", line 111, in <module>
    import setuptools as dist
ImportError: No module named setuptools

And Closure Linter

Warning (from warnings module):

     File "C:\Openlayers\lib\distutils\dist.py", line 267
        warnings.warn(msg)
    UserWarning: Unknown distribution option: 'install_requires'
up vote 1 down vote accepted

I did this just a couple of days ago. The error that you are getting doesn't have anything to do specifically with OL3.

The error that you are facing, has to do with setup tools not being installed.

I have found that the easiest way to get this done, is to download ez_setup.py and install it from there.

To recap, you need to do this:

  1. Download the OpenLayers Code.
  2. Install Python if you don't have it installed.
  3. Install Setup tools from ez_setup.py
  4. Install Pystache
  5. Install RegEx
  6. Finally build OL3 by running build.py in the OL3 directory
  • Need for build OL3 phantom.js, node.js and plovr? And why should they? – Jonh Apr 19 '14 at 21:00
  • 1
    Those are needed for the tests, not for the build. – Devdatta Tengshe Apr 20 '14 at 7:05
  • Failed to install ez_setup.py or it does not matter?Extracting in c:\users\2e78~1\appdata\local\temp\tmpxc2sdu Now working in c:\users\2e78~1\appdata\local\temp\tmpxc2sdu\setuptools-3.4.4 Installing Setuptools Something went wrong during the installation. See the error message above. – Jonh Apr 20 '14 at 12:00
  • 1
    @jonh: Yes, it needs to be installed correctly; Only after that can you proceed. What's the python version that you are using? – Devdatta Tengshe Apr 20 '14 at 16:42
  • I use Python 2.7.6. I think that maybe conflict with Python from ArcGIS. But i install from python.org/download – Jonh Apr 20 '14 at 16:44

There's nothing Linux specific in these installation instructions as far as I can see. They should work the same in a windows command shell. Only make sure, that you've installed all the dependencies.

After you've installed all dependencies you should be able to use build.cmd on your windows system.

What exactly is not working on your system?

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.