Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| vcae-lubuntu-18.04 [2019/03/28 20:53] – [Run Modelsim] i386 libs beckmanf | vcae-lubuntu-18.04 [2020/03/22 23:20] (current) – CXXABI_1.3.9 problem beckmanf | ||
|---|---|---|---|
| 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:// | + | Download [[https:// |
| + | |||
| + | < | ||
| + | cd | ||
| + | cd cae | ||
| + | wget --user=YOURUSERNAME --ask-password | ||
| + | </ | ||
| ==== Install ==== | ==== Install ==== | ||
| - | Make sure that you install the software at "/ | + | Check that you have |
| - | < | + | * [[http://www.hs-augsburg.de/ |
| - | sudo mkdir /opt/altera | + | |
| - | sudo chown fritz: | + | |
| - | </code> | + | |
| - | When you run the installation, | + | Make sure that you install the software at "/ |
| < | < | ||
| - | mkdir /tmp/qi | ||
| - | cd /tmp/qi | ||
| - | cp < | ||
| tar -xvf Quartus-lite-18.1.0.625-linux.tar | tar -xvf Quartus-lite-18.1.0.625-linux.tar | ||
| ./setup.sh | ./setup.sh | ||
| </ | </ | ||
| - | ==== Setting PATH Variable ==== | + | Check that you have |
| + | * [[http:// | ||
| - | In order to be able to start the binaries from the commandline, | + | and copy the library |
| - | .profile | + | < |
| - | + | mkdir / | |
| - | < | + | cp ~/ |
| - | # Include the ALTERA fpga software | + | |
| - | PATH=" | + | |
| - | # Include the ALTERA Modelsim VHDL simulator | + | |
| - | PATH=" | + | |
| </ | </ | ||
| - | To see the changes in the PATH variable, you have to logout and login again. After that you can already start modelsim | + | Change / |
| - | < | + | < |
| - | fritz@vcae: | + | dir=`dirname "$arg0"` |
| - | / | + | |
| - | fritz@vcae: | + | |
| </ | </ | ||
| - | You can see that the altera directories are now part of the PATH variable. | + | After that line add |
| - | + | ||
| - | ==== Run Quartus and install remaining libraries ==== | + | |
| - | + | ||
| - | === Missing libpng12 === | + | |
| < | < | ||
| - | fritz@vcae: | + | export LD_LIBRARY_PATH=/ |
| - | quartus: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory | + | |
| - | fritz@vcae: | + | |
| </ | </ | ||
| - | The following check shows that libpng16 is installed but quartus needs libpng12. | + | and [[http://www.hs-augsburg.de/ |
| - | < | + | |
| - | fritz@vcae:~$ dpkg -l | grep png | + | |
| - | ii libpng16-16: | + | |
| - | fritz@vcae: | + | |
| - | </ | + | |
| - | So download, compile and copy the libpng12 library to the quartus install directory | + | === libstdc++ CXXABI_1.3.9 problem === |
| - | < | + | The following problem |
| - | sudo apt install build-essential | + | |
| - | wget https:// | + | |
| - | tar -xvzf libpng-1.2.59.tar.gz | + | |
| - | cd libpng-1.2.59 | + | |
| - | ./ | + | |
| - | make | + | |
| - | cp .libs/ | + | |
| - | </ | + | |
| - | + | ||
| - | === Wrong libc === | + | |
| - | + | ||
| - | When you try to run quartus and see this | + | |
| < | < | ||
| - | fritz@vcae:/ | + | / |
| - | / | + | |
| Failed to load module: / | Failed to load module: / | ||
| - | |||
| - | (quartus: | ||
| </ | </ | ||
| - | then, you can do the following | + | is due to different libstdc++ versions which have different ABI versions. If you delete |
| < | < | ||
| - | cd / | + | rm / |
| - | fritz@vcae:/ | + | |
| - | fritz@vcae:/ | + | |
| </ | </ | ||
| - | === Run Quartus === | + | then quartus will find the default libstdc++ in / |
| - | Run Quartus with | + | ==== Create a version switcher for the PATH variable ==== |
| - | < | + | 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 |
| - | quartus | + | |
| - | </ | + | |
| - | + | ||
| - | and click the " | + | |
| - | + | ||
| - | ==== Run Modelsim ==== | + | |
| - | + | ||
| - | === Fix linux_rh60 vco script problem === | + | |
| - | + | ||
| - | When you run modelsim and see: | + | |
| < | < | ||
| - | fritz@vcae:/tmp$ vsim | + | alias v13=" |
| - | Error: cannot find "/ | + | alias v18="ln -rsvfT |
| - | fritz@vcae:/ | + | |
| </ | </ | ||
| - | then, you have to fix the vco script. First change the permissions such that you can modify | + | You need to open a new bash to make the changes active. Then you can switch between |
| - | < | + | ===== Matlab ===== |
| - | cd / | + | |
| - | chmod u+w vco | + | |
| - | </ | + | |
| - | Open the vco with | + | ==== License and Activation ==== |
| - | < | + | Students of Hochschule Augsburg can have a [[https:// |
| - | vi vco | + | |
| - | </code> | + | |
| - | and find the following section | + | ==== Download ==== |
| - | < | + | Download Matlab version R2018b from https://de.mathworks.com/ |
| - | else | + | |
| - | case $utype in | + | |
| - | 2.4.[7-9]*) | + | |
| - | 2.4.[1-9][0-9]*) | + | |
| - | 2.[5-9]*) | + | |
| - | 2.[1-9][0-9]*) | + | |
| - | 3.[0-9]*) | + | |
| - | *) vco=" | + | |
| - | </code> | + | |
| - | And change the " | + | ==== Install |
| - | + | ||
| - | === Install i386 Libraries | + | |
| - | + | ||
| - | See: [[https:// | + | |
| < | < | ||
| - | sudo apt install | + | cd |
| + | cd cae | ||
| + | mkdir matlab | ||
| + | mv ../ | ||
| + | cd matlab | ||
| + | unzip matlab_R2018b_glnxa64.zip | ||
| + | sudo mkdir / | ||
| + | sudo chown caeuser: | ||
| + | ./install | ||
| </ | </ | ||
| - | === Fix the libfreetype problem === | + | During |
| - | + | ||
| - | If you see | + | |
| < | < | ||
| - | caeuser@ADLab-Tools-OS: | + | /opt/matlab/R2018b |
| - | Error in startup script: | + | |
| - | Initialization problem, exiting. | + | |
| - | + | ||
| - | Initialization problem, exiting. | + | |
| - | + | ||
| - | while executing | + | |
| - | " | + | |
| - | invoked from within | + | |
| - | " | + | |
| - | (file "/mtitcl/vsim/vsim" line 1) | + | |
| - | ** Fatal: Read failure in vlm process (0,0) | + | |
| - | caeuser@ADLab-Tools-OS: | + | |
| </ | </ | ||
| - | then you have to install an old version of libfreetype. Make sure that you have enable | + | Select |
| - | < | + | * MATLAB 9.5 |
| - | sudo apt-get install libc6-dev-i386 | + | * Simulink 9.2 |
| - | sudo apt-get build-dep -a i386 libfreetype6 | + | * DSP System Toolbox |
| - | wget https:// | + | * Filter Design HDL Coder |
| - | tar -xvzf freetype-2.8.1.tar.gz | + | * Fixed-Point Designer |
| - | cd freetype-2.8.1 | + | * HDL Coder |
| - | ./ | + | * MATLAB Coder |
| - | make -j8 | + | * Signal Processing Toolbox |
| - | </ | + | |
| - | Now copy the libfreetype library files to the modelsim directory | + | === PATH === |
| - | < | ||
| - | mkdir / | ||
| - | cp objs/ | ||
| - | </ | ||
| - | Now you have to change modelsim vco file and find the location: | ||
| - | < | ||
| - | dir=`dirname " | ||
| - | </ | ||
| - | After that line add | ||
| - | |||
| - | < | ||
| - | export LD_LIBRARY_PATH=/ | ||
| - | </ | ||