[[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
Last revision Both sides next revision
vcae-lubuntu-18.04 [2019/03/28 08:13]
beckmanf vcom problem
vcae-lubuntu-18.04 [2020/03/22 22:07]
beckmanf added matlab modules
Line 1: Line 1:
-===== Install Quartus 18.1 on Lubuntu 18.04 LTS =====+===== Install Quartus 18.1 and Matlab ​===== 
 + 
 +This description assumes that version 13.0sp1 is already installed on Lubuntu 18.04. The Quartus 18.1 version is used only by the Master Course.
  
 ==== Download ==== ==== Download ====
  
-Download [[https://​www.hs-augsburg.de/​~beckmanf/​restricted/​Quartus-lite-18.1.0.625-linux.tar|Quartus-lite-18.1.0.625-linux.tar]] from [[http://​fpgasoftware.intel.com/?​edition=lite|Intel]]+Download [[https://​www.hs-augsburg.de/​~beckmanf/​restricted/​Quartus-lite-18.1.0.625-linux.tar|Quartus-lite-18.1.0.625-linux.tar]] from [[http://​fpgasoftware.intel.com/?​edition=lite|Intel]]. You can download with 
 + 
 +<​code>​ 
 +cd 
 +cd cae 
 +wget --user=YOURUSERNAME --ask-password ​ https://​www.hs-augsburg.de/​~beckmanf/​restricted/​Quartus-lite-18.1.0.625-linux.tar 
 +</​code>​
  
 ==== Install ==== ==== Install ====
  
-Make sure that you install the software at "/​opt/​altera/​18.1"​. Create the altera directory and change the owner to your username. Replace "​fritz:​fritz"​ with your username and group.+Check that you have 
  
-<​code>​ +  * [[http://www.hs-augsburg.de/​homes/beckmanf/dokuwiki/doku.php?​id=ubuntu_virtual_cae_system#​missing_libpng12|Installed the missing libpng12]]
-sudo mkdir /opt/altera +
-sudo chown fritz:​fritz ​/opt/altera +
-</code>+
  
-When you run the installation,​ you can deselect all FPGA device families, except Cyclone V.+Make sure that you install the software at "/​opt/​altera/​18.1"​. ​When you run the installation,​ you can deselect all FPGA device families, except Cyclone V.
  
 <​code>​ <​code>​
-mkdir /tmp/qi 
-cd /tmp/qi 
-cp <​TheQuartusTarFile>​ . 
 tar -xvf Quartus-lite-18.1.0.625-linux.tar tar -xvf Quartus-lite-18.1.0.625-linux.tar
 ./setup.sh ./setup.sh
 </​code>​ </​code>​
  
-==== Setting PATH Variable ====+Check that you have 
 +  * [[http://​www.hs-augsburg.de/​homes/​beckmanf/​dokuwiki/​doku.php?​id=ubuntu_virtual_cae_system#​fix_the_libfreetype_problem|Compiled the libfreetype library]]
  
-In order to be able to start the binaries from the commandline,​ the path for the binaries has to be in the PATH environment variableFor that you have to modify the .profile file in your home directory. Append the following snippet to the .profile file:+and copy the library ​to the 18.directory
  
-.profile+<​code>​ 
 +mkdir /​opt/​altera/​18.1/​modelsim_ase/​lib32 
 +cp ~/​cae/​freetype-2.8.1/​objs/​.libs/​libfreetype.so* /​opt/​altera/​18.1/​modelsim_ase/​lib32/​ 
 +</​code>​
  
-<code bash> +Change ​/​opt/​altera/​18.1/​modelsim_ase/vco  file and find the location: 
-# Include the ALTERA fpga software + 
-PATH="​$PATH:​/​opt/​altera/​18.1/​quartus/bin" +<​code>​ 
-# Include ​the ALTERA Modelsim VHDL simulator +dir=`dirname ​"$arg0"`
-PATH="$PATH:/​opt/​altera/​18.1/​modelsim_ase/​bin"+
 </​code>​ </​code>​
  
-To see the changes in the PATH variable, you have to logout and login again. ​After that you can already start modelsim and quartus (see below). To check the setting of the PATH variable do:+After that line add
  
-<​code ​bash+<​code>​ 
-fritz@vcae:​~$ echo $PATH +export LD_LIBRARY_PATH=/​opt/​altera/​18.1/​modelsim_ase/​lib32
-/​usr/​local/​sbin:/​usr/​local/​bin:/​usr/​sbin:/​usr/​bin:/​sbin:/​bin:/​usr/​games:/​opt/​altera/​18.1/​quartus/​bin:​/​opt/​altera/​18.1/​modelsim_ase/​bin +
-fritz@vcae:​~$+
 </​code>​ </​code>​
  
-You can see that the altera directories are now part of the PATH variable.+and [[http://​www.hs-augsburg.de/​homes/​beckmanf/​dokuwiki/​doku.php?​id=ubuntu_virtual_cae_system#​fix_linux_rh60_vco_script_problem|Fix linux rh60 problem]] in that file.
  
-==== Run Quartus and install remaining libraries ​====+==== Create a version switcher for the PATH variable ​====
  
-=== Missing libpng12 ===+You can set the PATH variable as in the 13.0sp1 installation in .profile. If you install two versions, then you can append the following to .bashrc
  
 <​code>​ <​code>​
-fritz@vcae:​~$ quartus +alias v13="​ln -rsvfT /​opt/​altera/​13.0sp1 /​opt/​altera/​version"​ 
-quartus: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory +alias v18="​ln -rsvfT /​opt/​altera/​18.1 /​opt/​altera/​version"​
-fritz@vcae:​~$ ​+
 </​code>​ </​code>​
  
-The following check shows that libpng16 is installed but quartus needs libpng12. +You need to open a new bash to make the changes activeThen you can switch between the versions by running v18 or v13
-<​code>​ +
-fritz@vcae:​~$ dpkg -l | grep png +
-ii  libpng16-16:​amd64 ​                    1.6.34-1ubuntu0.18.04.1 ​            ​amd64 ​       PNG library - runtime (version 1.6) +
-fritz@vcae:​~$ +
-</​code>​+
  
-So download, compile and copy the libpng12 library to the quartus install directory+===== Matlab =====
  
-<​code>​ +==== License and Activation ====
-sudo apt install build-essential +
-wget https://​www.hs-augsburg.de/​homes/​beckmanf/​public/​libpng-1.2.59.tar.gz +
-tar -xvzf libpng-1.2.59.tar.gz +
-cd libpng-1.2.59 +
-./​configure +
-make +
-cp .libs/​libpng12.so* /​opt/​altera/​18.1/​quartus/​linux64 +
-</​code>​+
  
-=== Wrong libc ===+Students of Hochschule Augsburg can have a [[https://​www.hs-augsburg.de/​Rechenzentrum/​Matlab-TAH-Lizenz.html|license]] but they need to [[https://​de.mathworks.com|Create a student account at Mathworks]]. You must use your hs-augsburg.de email address.
  
-When you try to run quartus and see this+==== Download ====
  
-<​code>​ +Download Matlab version R2018b from https://de.mathworks.com/downloads/web_downloads/
-fritz@vcae:/tmp$ quartus +
-/opt/​altera/​18.1/​quartus/​linux64/​libstdc++.so.6: version `CXXABI_1.3.9'​ not found (required by /usr/lib/x86_64-linux-gnu/​libproxy.so.1) +
-Failed to load module: /​usr/​lib/​x86_64-linux-gnu/​gio/​modules/​libgiolibproxy.so+
  
-(quartus:​47747):​ Gtk-WARNING **: 18:​17:​46.016:​ Error loading theme icon '​dialog-warning'​ for stock: Unable to load image-loading module: /​usr/​lib/​x86_64-linux-gnu/​gdk-pixbuf-2.0/​2.10.0/​loaders/​libpixbufloader-svg.so:​ /​opt/​altera/​18.1/​quartus/​linux64/​libstdc++.so.6:​ version `CXXABI_1.3.8'​ not found (required by /​usr/​lib/​x86_64-linux-gnu/​libicuuc.so.60) +==== Install ====
-</​code>​ +
- +
-then, you can do the following+
  
 <​code>​ <​code>​
-cd /opt/altera/18.1/​quartus/​linux64 +cd 
-fritz@vcae:/opt/altera/​18.1/​quartus/​linux64$ mv ./​libstdc++.so.6 libstdc++.so.6.orig_dist +cd cae 
-fritz@vcae:/opt/altera/18.1/quartus/​linux64$ ln -s /​usr/​lib/​x86_64-linux-gnu/​libstdc++.so.6 . +mkdir matlab 
 +mv ../Downloads/matlab_R2018b_glnxa64.zip matlab 
 +cd matlab 
 +unzip matlab_R2018b_glnxa64.zip 
 +sudo mkdir /opt/matlab 
 +sudo chown caeuser:caeuser ​/opt/matlab 
 +./install
 </​code>​ </​code>​
  
-=== Run Quartus === +During the installation process you have to login to Mathworks and activate the license. Choose as installation directory:
- +
-Run Quartus with+
  
 <​code>​ <​code>​
-quartus ​+/​opt/​matlab/​R2018b
 </​code>​ </​code>​
  
-and click the "Run the Quartus Prime software"​ button+Select ​the following matlab toolboxes
  
-==== Run Modelsim ====+  * MATLAB 9.5 
 +  * Simulink 9.2 
 +  * DSP System Toolbox 
 +  * Filter Design HDL Coder 
 +  * Fixed-Point Designer 
 +  * HDL Coder 
 +  * MATLAB Coder 
 +  * Signal Processing Toolbox
  
-=== Fix VCO script ​===+=== PATH ===
  
-When you run modelsim and see: 
- 
-<​code>​ 
-fritz@vcae:/​tmp$ vsim 
-Error: cannot find "/​opt/​altera/​18.1/​modelsim_ase/​bin/​../​linux_rh60/​vsim"​ 
-fritz@vcae:/​tmp$ ​ 
-</​code>​ 
  
-then, you have to fix the vco script 
  
  
  
  
  • vcae-lubuntu-18.04.txt
  • Last modified: 2020/03/22 23:20
  • by beckmanf