windows bubun(cygwin)python
下載verilatorgit
tar xvzf verilator*.t*gz cd verilator* ./configure
報錯github
./configure /cygdrive/e/download/verilator-4.016 configuring for Verilator 4.016 2019-06-16 checking whether to use hardcoded paths... yes checking whether to show and stop on compilation warnings... no checking whether to run long tests... no checking whether allow pre-C++11... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for a BSD-compatible install... /usr/bin/install -c compiler is g++ --version = g++ (GCC) 7.4.0 checking that C++ compiler can compile simple program... no configure: error: a working C++ compiler is required
須要先安裝g++ pact update gcc-core gcc-g++
pact install flex bison
shell
從新./configure
沒有報錯 繼續 make
make install
安裝成功windows
注: babun 經過 pact update python/perl 後有時候會致使python perl不可用, 先要關閉babun 找到目錄C:\Users\youname.babun 雙擊執行update.bat, 若是執行速度較慢 能夠將set MIRROR=http://mirrors.kernel.org/sourceware/cygwin
修改成國內鏡像 set MIRROR=http://mirrors.kernel.org/sourceware/cygwin
set MIRROR=https://mirrors.tuna.tsinghua.edu.cn/cygwin/
flex
詳細內容見stackoverflow githubui