-
Notifications
You must be signed in to change notification settings - Fork 118
Add build instructions for MacOS #538
Comments
Already got it building without your instructions! And it's the UMAPINFO branch! |
Which I wasn't able to compile before, fixed my build setup a bit. Functional build with tiny edit to DUMBPlayer.c |
What was that necessary edit to |
|
I see, current GIT has |
And then a working build came out! export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH:+${CPLUS_INCLUDE_PATH}:}/opt/homebrew/include"
export LIBRARY_PATH="${LIBRARY_PATH:+${LIBRARY_PATH}:}/opt/homebrew/lib" Added to fix building basically anything. |
@Pedro-Beirao, in my opinion, it's necessary to modify the command that you recommend to use to compress, because: 1) the -j option is incompatible with:
Because junks the directory names, inclusive @executable_path/libs (-j wouldn't affect if the -p flag will not be used by ylibbundler), to conserve the directories names is necesary the -r flag. And, 2) also, if don't use It's better to use this (and, in my opinion, point working directory as target):
Another aspect to modify is the name of the "libmad" library to "mad" in this line:
Homebrew uses the "mad" formula name for the decoder, and the use of alternative formulae names, like "libmad", may cause errors when call |
Why you need to links the opt/homebrew/* path if brew automatically links the formulae files in /usr/local/include and /usr/local/lib? The only exceptions by default to this automatically linking are the keg only formulae. Also, in my opinion it is not recommended to modify the .zshrc file to solve eventual compilation problems, when they can be configured in external files that are sourced by zsh when required. I'm make it present, because I think it is a unoptimal option to be recommended in an eventual instructions file (or wiki article) about how to compile on macOS. |
I saw that you made a PR for dsda-doom to fix this there, but since this PR was never merged, I didnt change it here. I'll do that later today. Thanks! |
You gotta understand. I don't recommend doing what I did, it's just what got the project building for me. |
It's just me wanting to document MY process, which doesn't mean THE best process. Since it's MY process. You are allowed to have whatever opinion you want, but just remember. I added those lines because it got the project building, which doesn't mean that it's the best choice to do so. |
Edited the wiki on my fork with your suggestions. Thanks again! |
Github doesnt support PRs for the wiki, so I guess this is the best way to do it.
Link to the wiki page I created: https://github.com/Pedro-Beirao/prboom-plus/wiki/Building-PrBoom-Plus-on-MacOS
The text was updated successfully, but these errors were encountered: