Windows 安装 verilator

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 bisonshell

从新./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

相关文章
相关标签/搜索