aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shah <davey1576@gmail.com>2019-04-02 12:41:25 +0100
committerGitHub <noreply@github.com>2019-04-02 12:41:25 +0100
commit2e246c196895a3bb211278d9405e8ea7e886eaa9 (patch)
tree48dd2dae41b7fd81a53e7260d2b16162bd770de7
parentd27ec2cd1554d9f8a3e6e5b81b9bb12cf7aab13b (diff)
parent638f84a622df15eb0ef9b3fa5b64d040196ed308 (diff)
downloadnextpnr-2e246c196895a3bb211278d9405e8ea7e886eaa9.tar.gz
nextpnr-2e246c196895a3bb211278d9405e8ea7e886eaa9.tar.bz2
nextpnr-2e246c196895a3bb211278d9405e8ea7e886eaa9.zip
Merge pull request #260 from xobs/windows-eigen-docs
README: update windows build instructions for eigen, python
-rw-r--r--README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index 0417e6f7..a9eaf393 100644
--- a/README.md
+++ b/README.md
@@ -39,8 +39,9 @@ of the selected architecture:
- Eigen3 (`libeigen3-dev` for Ubuntu) is required to build the analytic placer
- Latest git Yosys is required to synthesise the demo design
- For building on Windows with MSVC, usage of vcpkg is advised for dependency installation.
- - For 32 bit builds: `vcpkg install boost-filesystem boost-program-options boost-thread boost-python qt5-base`
- - For 64 bit builds: `vcpkg install boost-filesystem:x64-windows boost-program-options:x64-windows boost-thread:x64-windows boost-python:x64-windows qt5-base:x64-windows`
+ - For 32 bit builds: `vcpkg install boost-filesystem boost-program-options boost-thread boost-python qt5-base eigen3`
+ - For 64 bit builds: `vcpkg install boost-filesystem:x64-windows boost-program-options:x64-windows boost-thread:x64-windows boost-python:x64-windows qt5-base:x64-windows eigen3:x64-windows`
+ - A copy of Python that matches the version in vcpkg (currently Python 3.6.4). You can download the [Embeddable Zip File](https://www.python.org/downloads/release/python-364/) and extract it. You may need to extract `python36.zip` within the embeddable zip file to a new directory called "Lib".
- For building on macOS, brew utility is needed.
- Install all needed packages `brew install cmake python boost boost-python3 qt5`
- Do not forget to add qt5 in path as well `echo 'export PATH="/usr/local/opt/qt/bin:$PATH"' >> ~/.bash_profile`
@@ -61,6 +62,13 @@ make -j$(nproc)
sudo make install
```
+On Windows, you may specify paths explicitly:
+
+```
+cmake -DARCH=ice40 -DICEBOX_ROOT=C:/ProgramData/icestorm/share/icebox -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows -G "Visual Studio 15 2017 Win64" -DPYTHON_EXECUTABLE=C:/Python364/python.exe -DPYTHON_LIBRARY=C:/vcpkg/packages/python3_x64-windows/lib/python36.lib -DPYTHON_INCLUDE_DIR=C:/vcpkg/packages/python3_x64-windows/include/python3.6
+cmake --build . --config Release
+```
+
A simple example that runs on the iCEstick dev board can be found in `ice40/blinky.*`.
Usage example: