-
Notifications
You must be signed in to change notification settings - Fork 953
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
Add support for macOS build #7
Comments
@stonedreamforest That's why I created an issue |
I've successfully built
I had to install a few packages, use homebrew's bison, fix a few compilation issues & add build script support.
flex and bison are keg only, so add their paths to PATH:
For the build script changes... there are so many submodules, I don't know where to start filing pull requests, so attached is a recursive diff of my source tree. Reproduced below:
Now I just need to figure out how to use it... |
@mabrowning but why?.. there's #17, everything was done already :} |
Pulled down the code a week ago when first announced, started porting to macOS, came back a week later and didn't check if anyone else had done the work. Finished up and posted my results..... oops! |
I have merged all PRs related to macOS build in all our repositories. Let me know if I missed anything. Also, I added disclaimer that we do not officially support macOS, because we have no way to check whether macOS build is passing or not. We will change that as soon as we will get some macOS machine. Thank you all for assistance. |
At least one fix seems to be missing: Scanning dependencies of target unpackertool |
Try now (master at 5832921). I noticed that the linker flag is actually called |
Yes, it now compiles without any local changes. Great job! |
Just out of curiousity - how did you avoid that the original Apple flexversion got picked up? My build was failing until I renamed the original Apple files. |
I just pointed my $PATH at them in the she'll I was building in. `brew
install flex` mentions that option.
Alternatively, `brew link flex` will symlink into /usr/local/bin to
override everywhere.
…On Dec 31, 2017 8:34 AM, "newkit" ***@***.***> wrote:
Just out of curiousity - how did you avoid that the original Apple
flexversion got picked up? My build was failing until I renamed the
original Apple files.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAMqRMIog3YuHhPGy_LMa_1WN4lQsF8Sks5tF5togaJpZM4Q_4LJ>
.
|
Okay, thanks for clarification. Method 1 was what I was doing but apperently that was not enough or maybe the order (appending at the end / inserting at beginnung of |
@newkit Reading the README might be useful. # Apple ships old Flex & Bison, so Homebrew versions should be used.
export CMAKE_INCLUDE_PATH="/usr/local/opt/flex/include"
export CMAKE_LIBRARY_PATH="/usr/local/opt/flex/lib;/usr/local/opt/bison/lib"
export PATH="/usr/local/opt/flex/bin:/usr/local/opt/bison/bin:$PATH" |
I know this sounds like I am unable to do proper RTFM'ing. But I just double checked. I had set everything up as described in the README and ran into the issue due to the old flex version picked up by yaramod. |
No description provided.
The text was updated successfully, but these errors were encountered: