Skip to content

Instantly share code, notes, and snippets.

View Chengcheng-Xiao's full-sized avatar
🪃

Chengcheng Xiao Chengcheng-Xiao

🪃
View GitHub Profile
@Chengcheng-Xiao
Chengcheng-Xiao / v_sim_macports.md
Last active February 1, 2023 08:21
Compile v_sim with macports

Use macports to install:

sudo port install gtk2 +x11

(NOTE) we are going to need mp-gcc for this:

sudo port install mp-gcc10
sudo port select --set gcc mp-gcc10
sudo port install intltool
sudo port install pkgconfig
@Chengcheng-Xiao
Chengcheng-Xiao / p4v_macports.md
Last active December 30, 2020 10:16
p4vasp compile with macports

Use macports to install:

sudo port install python27
sudo port install py27-pip
sudo port install py27-gobject
sudo port install gettext
sudo port install py-pygtk +x11

(NOTE) we don't need mp-gcc for this:

@Chengcheng-Xiao
Chengcheng-Xiao / Docker_p4v.md
Last active July 28, 2021 07:24
Use Docker to run p4vasp

Using Docker to run p4vasp on Mac

Docker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers.

Basically, Docker container is a slim version of a virtual machine. With docker, we can run application that can not usually run on Mac.

Since compiling p4vasp on Mac has gradually became a pain in the a** and apple has decided to go ARM. I decided that using docker container is probably easier to both run and manage it.