-
Notifications
You must be signed in to change notification settings - Fork 68
/
README.MacOS
28 lines (18 loc) · 1015 Bytes
/
README.MacOS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
p4vasp compillation in MacOS:
(Tested on Mac OS 10.13.4, all updates installed.)
0) You will need X11 and the command-line tools for Xcode installed.
For Xquratz, visit: https://www.xquartz.org/
For command-line tools: $ xcode-select --install
1) For FLTK installation, we use homebrew's fltk:
Install homebrew: $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install fltk: $ brew install fltk
2) Install other necessary library: $ brew install python@2 pip gcc gtk+ pygtk —with-libglade && pip install pyopengl numpy
3) Apply patch to the sourcefile: $ patch -p0 -i MacOS.patch
5) Copy the Makefile.MacOS to Makefile in the p4vasp root directory and in the src
directory:
$ cp Makefile.MacOS Makefile
$ cp odpdom/Makefile.MacOS odpdom/Makefile
$ cp src/Makefile.MacOS src/Makefile
6) Run make and install:
make local && make && make install
7) The executable should located at ~/p4vasp/bin