diff options
author | David Shah <davey1576@gmail.com> | 2019-04-02 12:41:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-02 12:41:25 +0100 |
commit | 2e246c196895a3bb211278d9405e8ea7e886eaa9 (patch) | |
tree | 48dd2dae41b7fd81a53e7260d2b16162bd770de7 /README.md | |
parent | d27ec2cd1554d9f8a3e6e5b81b9bb12cf7aab13b (diff) | |
parent | 638f84a622df15eb0ef9b3fa5b64d040196ed308 (diff) | |
download | nextpnr-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
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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: |