Skip to content

Instantly share code, notes, and snippets.

@esynr3z
Last active April 29, 2023 09:01
Show Gist options
  • Save esynr3z/e25c12cd3fdf82e98da281e1f5831d87 to your computer and use it in GitHub Desktop.
Save esynr3z/e25c12cd3fdf82e98da281e1f5831d87 to your computer and use it in GitHub Desktop.
How to install Quartus Prime Lite 19.1 and ModelSim 10.5b on Fedora 29

Quartus Prime Lite 19.1 on Fedora 29 - installation guide

  1. Install Quartus and ModelSim - get the Combined Files tar archive from here

  2. Add Quartus bin dir to PATH, e.g. /space/eda/intelFPGA_lite/19.1/quartus/bin

  3. Add ModelSim bin dir to PATH, e.g. /space/eda/intelFPGA_lite/19.1/modelsim_ase/linuxaloem

  4. Install 32-bit ncurses for ModelSim

    dnf install ncurses-compat-libs.i686
    
  5. Create dir for 32-bit libs

    mkdir /space/eda/intelFPGA_lite/19.1/lib32
    
  6. ModelSim needs old libFreeType

    1. Install dependecies

      dnf install glibc-devel.i686 glibc-devel libstdc++-devel.i686
      
    2. Download and compile lib

      wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.12.tar.bz2
      tar xf freetype-2.4.12.tar.bz2
      cd freetype-2.4.12
      ./configure --host=i686-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
      make -j8
      
    3. Copy libs to Quartus dir

      cp ./objs/.libs/libfreetype.so /space/eda/intelFPGA_lite/19.1/lib32
      cp ./objs/.libs/libfreetype.so.6 /space/eda/intelFPGA_lite/19.1/lib32
      cp ./objs/.libs/libfreetype.so.6.10.1 /space/eda/intelFPGA_lite/19.1/lib32/libfreetype.so.6.10.2
      
  7. Old libFreeType depends on old libFontConfig. Extract needed file from CentOS7 rpm.

    mkdir fontconfig-2.13.0-4.3.el7
    cd fontconfig-2.13.0-4.3.el7
    wget https://rpmfind.net/linux/centos/7.7.1908/os/x86_64/Packages/fontconfig-2.13.0-4.3.el7.i686.rpm
    rpm2cpio fontconfig-2.13.0-4.3.el7.i686.rpm | cpio -idmv
    cp ./usr/lib/libfontconfig.so.1 /space/eda/intelFPGA_lite/19.1/lib32
    
  8. Fix the ModelSim script /space/eda/intelFPGA_lite/19.1/modelsim_ase/vco

    1. Add path to dir with 32-bit libs

      add after line
      
      dir=`dirname "$arg0"`
      
      line
      
      export LD_LIBRARY_PATH=${dir}/../lib32
      
    2. Fix path

      find line
      
      *)                vco="linux_rh60" ;;
      
      replace with
      
      *)                vco="linux" ;;
      
      
  9. Add to ~/.bashrc

    alias vsim="LD_LIBRARY_PATH=\"$LD_LIBRARY_PATH:/space/eda/intelFPGA_lite/19.1/lib32\" vsim"
    
  10. Fix Quartus to be able to run ModelSim from GUI

    1. Open

      /space/eda/intelFPGA_lite/19.1/quartus/adm/qenv.sh
      
    2. Add to the top

      export LD_LIBRARY_PATH=/space/eda/intelFPGA_lite/19.1/lib32:$LD_LIBRARY_PATH
      
@de1ukc
Copy link

de1ukc commented Mar 20, 2022

A typical installation of something on Linux.
After all, you can't just take it and install it. That would be corny and stupid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment