cygwin编译verilator_Windows 安装 verilator

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/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值