[[vcae-lubuntu-18.04]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
vcae-lubuntu-18.04 [2019/03/28 08:13]
beckmanf vcom problem
vcae-lubuntu-18.04 [2019/03/28 20:46]
beckmanf [Run Modelsim] i386 libs
Line 109: Line 109:
 ==== Run Modelsim ==== ==== Run Modelsim ====
  
-=== Fix VCO script ===+=== Fix linux_rh60 vco script ​problem ​===
  
 When you run modelsim and see: When you run modelsim and see:
Line 116: Line 116:
 fritz@vcae:/​tmp$ vsim fritz@vcae:/​tmp$ vsim
 Error: cannot find "/​opt/​altera/​18.1/​modelsim_ase/​bin/​../​linux_rh60/​vsim"​ Error: cannot find "/​opt/​altera/​18.1/​modelsim_ase/​bin/​../​linux_rh60/​vsim"​
-fritz@vcae:/​tmp$ ​+fritz@vcae:/​tmp$
 </​code>​ </​code>​
  
-then, you have to fix the vco script+then, you have to fix the vco script. First change the permissions such that you can modify the script.
  
 +<​code>​
 +cd /​opt/​altera/​18.1/​modelsim_ase
 +chmod u+w vco
 +</​code>​
  
 +Open the vco with
 +
 +<​code>​
 +vi vco
 +</​code>​
 +
 +and find the following section
 +
 +<​code>​
 +      else
 +        case $utype in
 +          2.4.[7-9]*) ​      ​vco="​linux"​ ;;
 +          2.4.[1-9][0-9]*) ​ vco="​linux"​ ;;
 +          2.[5-9]*) ​        ​vco="​linux"​ ;;
 +          2.[1-9][0-9]*) ​   vco="​linux"​ ;;
 +          3.[0-9]*) ​            ​vco="​linux"​ ;;
 +          *)                vco="​linux_rh60"​ ;;
 +</​code>​
 +
 +And change the "​linux_rh60"​ entry to "​linux"​.
 +
 +=== Install i386 Libraries ===
 +
 +See: [[https://​www.intel.com/​content/​www/​us/​en/​programmable/​support/​support-resources/​knowledge-base/​tools/​2019/​why-does-my-quartus-prime-18-1-fail-to-run-on-ubuntu-18-04-lts-.html?​wapkw=why+does+my+quartus+prime+18.1+fail+to+run+on+ubuntu+18.04+lts%3f&​language=en_US|missing i386 libraries]] on the Intel site.
 +
 +<​code>​
 +sudo apt install libxext6:​i386 libxft2:​i386 libncurses5:​i386
 +</​code>​
 +
 +=== Fix the libfreetype problem ===
 +
 +If you see
 +
 +<​code>​
 +caeuser@ADLab-Tools-OS:​~$ vsim
 +Error in startup script:
 +Initialization problem, exiting.
 +
 +Initialization problem, exiting.
 +
 +    while executing
 +"​InitializeINIFile quietly"​
 +    invoked from within
 +"​ncFyP12 -+"
 +    (file "/​mtitcl/​vsim/​vsim"​ line 1)
 +** Fatal: Read failure in vlm process (0,0)
 +caeuser@ADLab-Tools-OS:​~$
 +</​code>​
 +
 +then you have to install an old version of libfreetype. Make sure that you have enable the deb-src packages in the /​etc/​apt/​sources.list file to make the build dependencies work.
 +
 +<​code>​
 +sudo apt-get install libc6-dev-i386
 +sudo apt-get build-dep -a i386 libfreetype6
 +wget https://​download.savannah.gnu.org/​releases/​freetype/​freetype-2.8.1.tar.gz
 +tar -xvzf freetype-2.8.1.tar.gz
 +cd freetype-2.8.1
 +./configure --build=i686-pc-linux-gnu --without-png "​CFLAGS=-m32"​ "​CXXFLAGS=-m32"​ "​LDFLAGS=-m32"​
 +make -j8
 +</​code>​
 +
 +Now copy the libfreetype library files to the modelsim directory
 +
 +<​code>​
 +mkdir /​opt/​altera/​18.1/​modelsim_ase/​lib32
 +cp objs/​.libs/​libfreetype.so* /​opt/​altera/​18.1/​modelsim_ase/​lib32/​
 +</​code>​
 +
 +Now you have to change modelsim vco file and find the location:
 +
 +<​code>​
 +dir=`dirname "​$arg0"​`
 +</​code>​
 +
 +After that line add
 +
 +<​code>​
 +export LD_LIBRARY_PATH=/​opt/​altera/​18.1/​modelsim_ase/​lib32
 +</​code>​
  
  
  • vcae-lubuntu-18.04.txt
  • Last modified: 2020/03/22 23:20
  • by beckmanf