aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorSean Cross <sean@xobs.io>2019-04-02 15:25:00 +0800
committerSean Cross <sean@xobs.io>2019-04-02 15:25:00 +0800
commit638f84a622df15eb0ef9b3fa5b64d040196ed308 (patch)
tree48dd2dae41b7fd81a53e7260d2b16162bd770de7 /README.md
parentd27ec2cd1554d9f8a3e6e5b81b9bb12cf7aab13b (diff)
downloadnextpnr-638f84a622df15eb0ef9b3fa5b64d040196ed308.tar.gz
nextpnr-638f84a622df15eb0ef9b3fa5b64d040196ed308.tar.bz2
nextpnr-638f84a622df15eb0ef9b3fa5b64d040196ed308.zip
README: update windows build instructions for eigen, python
The recent addition of "eigen3" to nextpnr necessitates the addition of "eigen" to the list of vcpkg packages to be installed on Windows. Add the 32- and 64-bit versions of eigen to the command issued to install various dependencies. Also document one possible build command, and note about unpacking python36.zip. Signed-off-by: Sean Cross <sean@xobs.io>
Diffstat (limited to 'README.md')
-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: