Install Vivado and Quartus Prime on Apple Silicon II - Install Quartus Prime
Install Quartus Prime
This blog provides steps in installing Quartus 25.1 Lite Edition, including Questa Intel FPGA Starter simulation.
Prerequisite
- Installed Ubuntu 22.04 in Virtual Machine (Parallels Desktop or UTM) with TSO enabled
- Configured Rosetta 2 for Linux
See details in this blog.
Install Dependencies
Update sources:
sudo apt updateInstall dependencies for Quartus:
sudo apt install libbz2-1.0:amd64 libglib2.0-0:amd64 libnsl-dev:amd64 libfontconfig:amd64 libx11-xcb1:amd64 libxext6:amd64 libsm6:amd64 libdbus-1-3:amd64 libxft2:amd64 libxtst6:amd64 libxi6:amd64 libgtk2.0-0:amd64 libcrypt1:amd64 libgtk-3-0:amd64 libusb-1.0-0:amd64Install dependencies to enable simulation calls from Quartus:
sudo apt install tk:amd64 tcl:amd64 tk8.6:amd64 tcl8.6:amd64 libtk8.6:amd64 libtcl8.6:amd64 libx11-6:amd64 libxft2:amd64 libxss1:amd64 libxext6:amd64 libxrender1:amd64 libxrandr2:amd64 libxi6:amd64 libxtst6:amd64Install Quartus Prime
Install using online installer
You can download online installer from Altera. Your downloaded file may be named as qinst-lite-linux-25.1std-1129.run. Then change the file permission for the .run file by running the command:
sudo chmod +x *.runYou should patch the installer by removing the detection of your computer’s architecture. First, extract the run file.
./qinst-lite-linux-25.1std-1129.run --noexec --target ./qinstcd qinstThen patch the file quartus/adm/qenv.sh by
sudo sed -i '/# We don'\''t support processors without SSE 4.2 extensions (e.g. CPUs older than Intel Nehalem)./i\if test `uname -m` = "aarch64" ; then\ export QUARTUS_BIT_TYPE=64\fi' ./quartus/adm/qenv.shand
sudo sed -i '/# We don'\''t support processors without SSE 4.2 extensions (e.g. CPUs older than Intel Nehalem)./,/##### Determine what bitness executables we should use/ { /^[^#]/ s/^/# /}' ./quartus/adm/qenv.shThen run
sudo ./qinst.shto start installation with GUI. You are recommended to install the software in /opt/altera_lite/25.1std. You should tick Install USB Blaster drivers.
Install using offline installer
You can download the offline installer from Altera as well, under Individual Files tab. You should download the Complete Download. Your downloaded file may be named as Quartus-lite-25.1std.0.1129-linux.tar.
Unzip the .tar file and cd into unzipped folder. Run the following commend to install without GUI
sudo ./setup.sh --mode unattended --accept_eula 1 --installdir /opt/altera_lite/25.1std --disable-components arria,arria10,arriav,arriavgz,cyclone10lp,stratixiv,stratixv,quartus_update,riscfree,questa_fse,questa_fe --create_desktop_shortcuts 1Note: There are issues with GUI installation for offline installer.
Patch Quartus Prime
You should patch qenv.sh in folder of quartus and qprogrammer by executing the following commend:
sudo sed -i '/# We don'\''t support processors without SSE extensions (e.g. Pentium II and older CPUs)./i\if test `uname -m` = "aarch64" ; then\ export QUARTUS_BIT_TYPE=64\fi' /opt/altera_lite/25.1std/quartus/adm/qenv.shsudo sed -i '/# We don'\''t support processors without SSE extensions (e.g. Pentium II and older CPUs)./,/##### Determine what bitness executables we should use/ { /^[^#]/ s/^/# /}' /opt/altera_lite/25.1std/quartus/adm/qenv.shsudo sed -i '/# We don'\''t support processors without SSE extensions (e.g. Pentium II and older CPUs)./i\if test `uname -m` = "aarch64" ; then\ export QUARTUS_BIT_TYPE=64\fi' /opt/altera_lite/25.1std/qprogrammer/adm/qenv.shsudo sed -i '/# We don'\''t support processors without SSE extensions (e.g. Pentium II and older CPUs)./,/##### Determine what bitness executables we should use/ { /^[^#]/ s/^/# /}' /opt/altera_lite/25.1std/qprogrammer/adm/qenv.shYou should also patch libccl_sqlite3.so. First you should get into the folder by
cd /opt/altera_lite/25.1std/quartus/linux64and back up original file
sudo mv libccl_sqlite3.so libccl_sqlite3.so.backthen download the patched file by
sudo wget https://github.com/federunco/federunco/raw/refs/heads/main/libccl_sqlite3.soand change the permissions
sudo chmod 755 libccl_sqlite3.soRepeat steps above in the folder /opt/altera_lite/25.1std/qprogrammer/linux64
Patch Questa
First go to the folder by
cd /opt/altera_lite/25.1std/questa_fseand create a link by
sudo ln -s linux_x86_64 linux_aarch64Set up Environment Variables
You should acquire no-cost licence for Questa add environment variables to /etc/profile.d/quartus.sh and add the following content into the file.
export QROOT="/opt/altera_lite/25.1std"export QUARTUS_ROOTDIR="$QROOT/quartus"export QSYS_ROOTDIR="$QUARTUS_ROOTDIR/sopc_builder/bin"export PATH="$PATH:$QUARTUS_ROOTDIR/bin:$QUARTUS_ROOTDIR/linux64:$QSYS_ROOTDIR:$QROOT/questa_fse/bin"export SALT_LICENSE_SERVER=<path/to/your/license/file>Creat Desktop Icon
Write the following content into /usr/share/applications/quartus.desktop with sudo privileges.
[Desktop Entry]Type=ApplicationVersion=25.1Name=Quartus 25.1 Lite EditionComment=Quartus 25.1Icon=/opt/altera_lite/25.1std/quartus/adm/quartusii.pngExec=/opt/altera_lite/25.1std/quartus/bin/quartus --64bitTerminal=falsePath=/opt/altera_lite/25.1stdNow, you can start Quartus in your application menu.
References
- Runco, F. (2025, December 29). Running Quartus + Questa on Apple Silicon. GitHubGist. https://gist.github.com/federunco/f2bde2e25342c6284b68ce4ecf305e5d
- Davey, P. (2024, March 17). Quartus 21 for Ubuntu 22.04. GitHub. https://github.com/UniversityOfPlymouth-Electronics/Quartus21_Ubuntu