19.10.2021 – Embedded/FPGA/Run_Modelsim_integrated_in_Lattice_Radiant_on_Linux.md

Run Modelsim integrated in Lattice Radiant on Linux

This fixes one issue causing Modelsim not starting from within Lattice Radiant, at least for versions 2.0 - 3.0, and most likely Lattice Diamond. The Modelsim binaries are linked against 32-bit libraries which aren’t usually installed on a recent system.

To see if that is the cause

1
2
$ file ~/lscc/radiant/3.0/modeltech/linuxloem/vish
vish: ELF 32-bit LSB executable, Intel 80386, ...

If this returns ...ELF 32-bit... then check which libraries are missing

1
2
3
4
$ ldd ~/lscc/radiant/3.0/modeltech/linuxloem/vish | grep not\ found
        libXft.so.2 => not found
        libXrender.so.1 => not found
        libfontconfig.so.1 => not found

Add package sources for i386 packages

1
2
$ sudo dpkg --add-architecture i386
$ sudo apt update

Install required libraries

1
$ sudo apt install --no-install-recommends libxft2:i386 libxrender1:i386 libfontconfig1:i386

Adding no-install-recommends helps keeping installed libs to a minimum.