Skip to content

Instantly share code, notes, and snippets.

@Chengcheng-Xiao
Last active February 1, 2023 08:21
Show Gist options
  • Save Chengcheng-Xiao/48852288b707d19ffcf7e2a8e0403fb1 to your computer and use it in GitHub Desktop.
Save Chengcheng-Xiao/48852288b707d19ffcf7e2a8e0403fb1 to your computer and use it in GitHub Desktop.
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

for big sur, gcc10 needs to be manually compiled:

sudo port -v -s install gcc10

Get v_sim:

https://l_sim.gitlab.io/v_sim/download/v_sim-3.7.2.tar.bz2

note: if you use development version, modify autogen.sh, change libtoolize to glibtoolize and run:

./autogen.sh

Configure it:

./configure --with-openbabel --with-xsf  --with-cube -x-includes=/opt/local/include --x-libraries=/opt/local/lib --prefix=/Users/XiaoChengcheng/Applications/v_sim

note: I'm using macports' Xorg so I need to specify x-includes and x-lib directories.

Make and install it:

make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment