Differences
This shows you the differences between two versions of the page.
Both sides previous 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 17:06] beckmanf [Run Modelsim] |
||
---|---|---|---|
Line 148: | Line 148: | ||
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> | <code> | ||
- | dir=`dirname "$arg0"` | + | sudo apt install libc6:i386 libncurses5:i386 libxtst6:i386 libxft2:i386 libc6:i386 libncurses5:i386 libstdc++6:i386 libc6-dev-i386 libxft2 lib32z1 lib32ncurses5 libqt5xml5 liblzma-dev |
+ | |||
+ | |||
+ | libc6:i386, libncurses5:i386, libxtst6:i386, libxft2:i386, libc6:i386, libncurses5:i386, libstdc++6:i386, libc6-dev-i386, libxft2, lib32z1, lib32ncurses5, lib32bz2-1.0, libpng12, libqt5xml5, liblzma-dev | ||
</code> | </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> | ||