windows bubun(cygwin)
下載verilator
tar xvzf verilator*.t*gz
cd verilator*
./configure
報錯
./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
重新./configure 沒有報錯
繼續 make
make install
安裝成功
注:
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/
詳細內容見stackoverflow
github
