Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
vcae-lubuntu-18.04 [2019/03/28 16:34] beckmanf added modelsim linux_rh60 problem |
vcae-lubuntu-18.04 [2019/03/28 20:46] beckmanf [Run Modelsim] i386 libs |
||
---|---|---|---|
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> | ||
Line 126: | Line 126: | ||
</code> | </code> | ||
- | Open the vco with | + | Open the vco with |
<code> | <code> | ||
Line 143: | Line 143: | ||
3.[0-9]*) vco="linux" ;; | 3.[0-9]*) vco="linux" ;; | ||
*) vco="linux_rh60" ;; | *) vco="linux_rh60" ;; | ||
- | |||
</code> | </code> | ||
And change the "linux_rh60" entry to "linux". | And change the "linux_rh60" entry to "linux". | ||
- | === Fix the === | + | === 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> | <code> | ||
dir=`dirname "$arg0"` | dir=`dirname "$arg0"` | ||
</code> | </code> | ||
+ | After that line add | ||
+ | <code> | ||
+ | export LD_LIBRARY_PATH=/opt/altera/18.1/modelsim_ase/lib32 | ||
+ | </code> | ||