Skip to content

Instantly share code, notes, and snippets.

@Chengcheng-Xiao
Last active December 25, 2024 12:24
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

Tested on MacOS Sequoia 15.2 (24C101) on 25/Dec/2024.

Use macports to install:

sudo port install gcc14
sudo port select --set gcc mp-gcc14
sudo port install intltool
sudo port install pkgconfig
sudo port install xorg
sudo port install gtk2 +x11
sudo port install libGLU

Get v_sim:

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

Modify autogen.sh, change libtoolize to glibtoolize, then run:

./autogen.sh

Configure it:

./configure --with-openbabel --with-xsf  --with-cube -x-includes=/opt/local/include --x-libraries=/opt/local/lib --prefix=/PATH/TO/v_sim

Note

We use Macports' Xorg so x-includes and x-lib directories need to be specified.

Make and install V_sim:

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