Freddy Hernandez
06/09/2024, 3:35 PMreivan
06/09/2024, 5:18 PM#Firstly, check whether the gdsfactory package is already there
python3 -m pip show gdsfactory
#Now, manually installed the package
python3 -m pip install -v gdsfactory==7.7.0
Freddy Hernandez
06/09/2024, 5:38 PMreivan
06/09/2024, 5:50 PMexit
and enter. Now, type in docker rm -f glayoutcontainer
.
Now, if you're working with wsl2 and windows 11 (as in my case), you'd want to install vcxsrv (xserver) to ease the use of GUI later:
• Go to vcxsrv and click the download link (the latest version)
• Go through the installation steps on this tutorial. Prior to setting the display environment, make sure that you also have set the firewall setting for vcxsrv as explained on the tutorial.
• Now, get back to ubuntu terminal. Type in vim ~/.bashrc
to open the rc file. Press I
to enter the insert mode. Go down to the bottom of the file and insert these lines:
export DISPLAY=$(ip route|awk '/^default/{print $3}'):0.0
export LIBGL_ALWAYS_INDIRECT=1
and then press Esc
to exit from the insert mode. Next,
type :wq to exit and save the changes. After that run source ~/.bashrc
.
• Now, open another ubuntu terminal and type in the following command:
docker run --rm -it -v /tmp/.X11-unix:/tmp/.X11-unix -v /mnt/wslg:/mnt/wslg -v $(pwd):$(pwd) -w $(pwd) -e DISPLAY -e WAYLAND_DISPLAY -e XDG_RUNTIME_DIR -e PULSE_SERVER --name glayoutcontainer openfasoc:glayout
By now, you should've entered a new container as indicated by root@containerID
.
• Now, you can go to the location where you store the OpenFASOC directory. The remaining steps are shown in the docs. I'll put it here for convenience:
# assuming you are in the OpenFASOC directory
cd openfasoc/generators/glayout
python3 test_glayout.py
Freddy Hernandez
06/09/2024, 5:57 PMFreddy Hernandez
06/09/2024, 6:00 PMFreddy Hernandez
06/09/2024, 6:00 PMreivan
06/09/2024, 6:01 PMFreddy Hernandez
06/09/2024, 6:02 PMreivan
06/09/2024, 6:04 PMsudo service docker start
?Freddy Hernandez
06/09/2024, 6:04 PMreivan
06/09/2024, 6:07 PMdocker ps -a
to see the list of containersreivan
06/09/2024, 6:08 PMFreddy Hernandez
06/09/2024, 6:08 PMFreddy Hernandez
06/09/2024, 6:09 PMreivan
06/09/2024, 6:10 PMFreddy Hernandez
06/09/2024, 6:10 PMreivan
06/09/2024, 6:11 PMreivan
06/09/2024, 6:11 PMFreddy Hernandez
06/09/2024, 6:11 PMFreddy Hernandez
06/09/2024, 7:40 PMShubham Kumar
06/11/2024, 4:16 PMreivan
06/11/2024, 4:43 PM