Linux安装vivado方法


76585 - Vivado 2020.x - couldn't load file "librdi_commontasks.so": libtinfo.so.5: cannot open shared object file: No such file or directoryUbuntu 20.04 users can also install the libtinfo.so.5 library directly:

sudo apt-get install libtinfo5
//---------------------------------------------------------------------
1.Vivado install
    解压:sudo tar xvzf "你的下载文件路径+文件名.tar.gz"
    //cd进入你解压后的文件夹,在该文件夹执行下列安装(最简单的是在该文件夹下打开终端),也可使用绝对路径
    安装:sudo ./xsetup.
./ 表示运行某个文件,回车后会要求你输入密码,就是开机密码,不会显示,输入后直接回车,然后就会看到vivado安装界面,和win下一样。直接./ xsetup也能启动安装界面,但就无法安装在opt下面。
2.Vivado Start
1].在终端中,打开.bashrc文件,(安装gedit :sudo apt install gedit)

sudo gedit .bashrc          注意,是gedit  空格.bashrc

[2].在该文件末端,添加:
source /opt/Xilinx/Vivado/2018.2/settings64.sh               2018.2根据版本不同,路径也会不同,可能是2018.3....
source /tools/Xilinx/Vivado/2022.1/settings64.sh         2022.1

source ~/.bashrc
[3].关闭终端,并在你想创建vivado工程的目录下,右键打开终端,然后执行:
vivado

即可启动vivado

3.装JTAG驱动

进入到vivado的driver安装目录下,文件->其他位置->计算机->opt->xilinx->vivado->2018.2->data/xicom/cable_drivers/lin64/install_script/install_drivers/   右键打开终端输入  sudo ./install_drivers   回车,输入密码,ok。
4.SDK配置

launch sdk后,ctrl + b 发现 Error: Program "make" not found in PATH。

去xilinx官网搜索一波,发现了这个,https://forums.xilinx.com/t5/Embedded-Development-Tools/Program-quot-make-quot-not-found-in-PATH-compile-issue/m-p/790428#M42809

总结说来,

[1].sudo apt-get install make
[2].sudo apt-get install build-essential
[3].sudo apt-get install lib32stdc++6

5.uninstall
sudo ./xsetup -help
sudo ./xsetup -b Uninstall

6.vscode setting
code [file name] +[line number]

7.安装字体
sudo apt-get install ttf-mscorefonts-installer
终端右键点击 配置文件首选项 选择自定义字体。
VSCODE字体配置:
{
    "editor.detectIndentation": false,
    "editor.mouseWheelZoom": true,
    "editor.tabCompletion": "on",
    "editor.fontFamily": "monospace, 'Droid Sans Mono', 'Courier 10 Pitch', 'monospace', 'Droid Sans Fallback'",
    "files.autoGuessEncoding": true,
    "editor.fontSize": 20,
    "workbench.activityBar.visible": false
}

8.安装GCC解决仿真报错
RROR: [XSIM 43-3388] /usr/bin/gcc not found, please install GCC for your Linux distribution.

a.Start by updating the packages list:

sudo apt update

b.Install the build-essential package by typing:

sudo apt install build-essential

The command installs a bunch of new packages including gcc, g++ and make.

c.You may also want to install the manual pages about using GNU/Linux for development:

sudo apt-get install manpages-dev

To validate that the GCC compiler is successfully installed, use the gcc --version command which prints the GCC version:

gcc --version

The default version of GCC available in the Ubuntu 18.04 repositories is 7.4.0:

9. 一个更加方便优美的软件启动方法

Vivado的程序默认安装在在/tools/Xilinx/Vivado/2021.2/bin/vivado,但是每次打开vivado都需要cd半天十分麻烦,所以我们可以直接source一下它:

source /tools/Xilinx/Vivado/2021.2/.settings64-Vivado.sh
这里的source类似于Windows中的加入环境变量,只有环境变量中的命令才能在终端中使用。同样的,我们可以把其他软件一并source了,按顺序执行以下命令:

cd                     #切换到用户目录下
sudo gedit .bashrc    #终端在每次启动时会加载配置文件中的内容
source ~/.bashrc     #使修改立刻生效
在.bashrc末尾追加如下内容:

source /tools/Xilinx/Model_Composer/2021.2/settings64.sh
source /tools/Xilinx/Vitis/2021.2/settings64.sh
source /tools/Xilinx/Vitis_HLS/2021.2/settings64.sh
source /tools/Xilinx/Vivado/2021.2/settings64.sh
//----复制初始配置文件到script目录
sudo cp -i Vivado_init.tcl /tools/Xilinx/Vivado/2022.1/scripts/

10.install weixin
sudo apt-get install -f -y ./ukylin-wine_70.6.3.25_amd64.deb
sudo apt-get install -f -y ./ukylin-wechat_3.0.0_amd64.deb

你可能感兴趣的:(fpga)