-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Guide] Installation on MacOS Monterey or Ventura, and Macs with Apple Silicon #30
Comments
Hello, first, I would like to express my appreciation for your efforts. However, while following your steps, I've encountered some minor errors and their solutions, which I'll share below. I am using MacBook Pro with M1 processor. Despite strictly adhering to your instructions, I've encountered numerous errors when executing the "make local" and "make" commands, specifically at step 5 of @Chengcheng-Xiao's instructions in the provided link. Could you possibly assist me in resolving these issues? Could I request your email address for more direct and swift communication? Once we've solved the problem, we can update the necessary instructions here for the benefit of others. In step 2 on your instructions, When I run In step 3 on your instructions, When I run I'm also attaching a few screenshots from the long series of errors I've had in the make local & make command. |
Hi @aliefekislak thanks for raising your concerns. I could see you might be getting quite a fews things wrong here.
Also I didn't see any apparent error from the screenshot you enclosed. Please give it another try and let me know if things work. Regards, |
Hi @DanielYang59 Thank you for your warnings. Firstly, I changed my default shell from zsh to bash as you said. Secondly, homebrew seems to be working fine (I don't know if there's anything extra that needs to be done) I've attached a screenshot of the reinstall. Moreover, I couldn't figure out why $P4VASP doesn't recognize it, I have to specify the ext path manually for continue installation of p4vasp. I couldn't any other solutions yet. I am attaching all my upload steps as 5 screenshots except "Replace #include <GL/glu.h> with #include <OpenGL/glu.h>" (i did it successfully). Do you have any suggestions how to solve this problem? Best regards, Ali Efe Kışlak |
Hi @aliefekislak thanks for your response. Sorry the "$P4VASP" might be misleading as I intend to use it as a variable so that readers could replace it with the real path in their system. "$P4VASP" would not be set unless you manually set it. I have changed the expression. Can I confirm if you copied the Makefile ( I do notice there are errors related to FLTK but it should pass without any problem as the lib should be copied directly from the homebrew installation. Also I just tried to recreate the process from a clean p4vasp download and everything seems to be working at least on my side. |
Hi all,
Here is a guide to get p4vasp to Run on MacOS Monterey or Ventura, and I have tested and could confirm it works on my MacBook Pro with M1 Pro chip.
Install dependencies and apply vasp544 patch following guide from @Chengcheng-Xiao here.
Install FLTK with homebrew with
brew install fltk
. Usebrew info fltk
to query the path to FLTK installation path, in my case it's/opt/homebrew/Cellar/fltk/1.3.8_1
.Copy everything from FLTK installation path to
ext
directory under p4vasp withcp -r /opt/homebrew/Cellar/fltk/1.3.8_1/* P4VASP/ext
whereP4VASP
is the path to downloaded p4vasp package.Replace
#include <GL/glu.h>
with#include <OpenGL/glu.h>
for ALL source code including those undersrc/include/p4vasp
(there should be a total of 12 replacement to make). In my case I just use VS Code to do a global search undersrc
and replace all.Your compilation should be able to finish without issue here. However you might also need to install XQuartz for X11 support, otherwise you might get
GtkWarning: could not open display error
. Please also restart your Mac after installing XQuartz.The text was updated successfully, but these errors were encountered: