Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How I worked it out in macOS Monterey (12.0.1) #5

Open
amadeusjustinn opened this issue Nov 3, 2021 · 0 comments
Open

How I worked it out in macOS Monterey (12.0.1) #5

amadeusjustinn opened this issue Nov 3, 2021 · 0 comments

Comments

@amadeusjustinn
Copy link

amadeusjustinn commented Nov 3, 2021

Just leaving this for anyone who might have experienced the same issues I did.

Assuming you have downloaded Docker, be it through their website or using brew install --cask docker, download XQuartz using https://www.xquartz.org/. After opening the disk image and running XQuartz.pkg, you need to log out and log back in for the DISPLAY_ENV variable to correctly set. Then add export PATH="/usr/X11R6/bin:$PATH" to .zshrc or .bashrc (whichever command line shell you use) and run source .zshrc or source .bashrc. Enable the "Allow connections from network clients" setting in Preferences > Security, then restart XQuartz for the setting to be saved. Run xhost +localhost.

Clone this repository into a folder of your choice (I'll call it folder X); this is where the other downloaded files shall be.

I personally needed Quartus 18.1 and used a MAX 10 FPGA, so I downloaded Quartus, ModelSim and the MAX 10 FPGA device support from https://fpgasoftware.intel.com/18.1/?edition=lite&platform=linux under the Individual Files tab. Put all three files in folder X.

For the FreeType file, I went to https://download.savannah.gnu.org/releases/freetype/ and downloaded the latest version, which was freetype-2.10.0.tar.bz2 at the time of me writing this. Put this in folder X too.

Since the versions I had are different from the versions in the instructions, make sure to change all the versions in the Dockerfile. For example, I changed every 20.1 to 18.1, every freetype-2.4.12 to freetype-2.10.0, and so on. Also, I changed every instance of the name of the device from cyclonelp to max10.

When I ran docker build -t quartus . for the first time, I got error 137. From this article, I opened Docker, went to Preferences > Resources > Advanced, and increased Memory from 2.00 GB to 4.00 GB. I don't think you need to do this if you don't get that error.

Once that is complete, I created a folder named Shared in folder X and added this folder in Docker > Preferences > Resources > File Sharing (to add a folder, click the little blue + button near the bottom). Then, run docker run --rm -d -e DISPLAY=host.docker.internal:0 --net=host --volume=$HOME/quartus/config:/root --volume=/shared/folder:/macOS quartus but replace /shared/folder with the directory shown by Docker after adding the shared folder. Quartus should open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant