-
-
Save pi0/c3080aaf19952c5c4a5d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#TODO : install setup.run to /opt ... | |
ALTERA_PATH=/opt/altera/*/ | |
#32bit_deps | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update | |
sudo apt-get install gcc-multilib g++-multilib \ | |
lib32z1 lib32stdc++6 lib32gcc1 \ | |
expat:i386 fontconfig:i386 libfreetype6:i386 libexpat1:i386 libc6:i386 libgtk-3-0:i386 \ | |
libcanberra0:i386 libpng12-0:i386 libice6:i386 libsm6:i386 libncurses5:i386 zlib1g:i386 \ | |
libx11-6:i386 libxau6:i386 libxdmcp6:i386 libxext6:i386 libxft2:i386 libxrender1:i386 \ | |
libxt6:i386 libxtst6:i386 | |
# custom_libfreetype | |
cd /tmp | |
wget http://download.savannah.gnu.org/releases/freetype/freetype-2.4.12.tar.bz2 | |
tar -xjvf freetype-2.4.12.tar.bz2 | |
cd freetype-2.4.12 | |
./configure --build=i686-pc-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32" | |
make -j8 | |
mkdir $(ALTERA_PATH)/modelsim_ase/lib32 | |
sudo cp objs/.libs/libfreetype.so* $(ALTERA_PATH)/modelsim_ase/lib32 | |
# install_shorcuts | |
sudo sh -c 'echo /opt/altera/*/modelsim_ase/linux/vsim > /usr/local/bin/vsim' | |
sudo ln -s /opt/altera/*/modelsim_ase/tcl/bitmaps/modelsim3.gif /usr/share/icons/modelsim.gif | |
sudo chmod +x /usr/local/bin/vsim | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Name=vsim | |
Comment=Modelsim | |
Exec=xterm -iconic -geometry 0x0 -b 0 -class widget vsim | |
Icon=/usr/share/icons/modelsim.gif | |
Terminal=false | |
Type=Application | |
Encoding=UTF-8 | |
Categories=Development | |
Path= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment