-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use Homebrew's std_cmake_args #6
Conversation
Ohhhh so that's the solution, thanks! ❤️ And I can tell you why the problem happens -- I did a full investigation not so long ago: https://doc.magnum.graphics/magnum/platforms-macos.html#platforms-macos-troubleshooting-build-mysteriously-fails Hum and I see some new issues related to SPIRV-Tools, gotta investigate (if you know what changed in that package, please share!). |
I'm not sure what the difference is, I'm on Mojave same as the circle image and it is working fine for me from a fresh reinstall of spirv-tools and magnum-plugins. But, when I look at the cmake code it installs, nothing actually does I do notice that the |
Also there is a note at the top of the install step re: unshallowing the homebrew clones, don't know if that means it's getting a different version of the formula than I have |
Now I remember -- that's it. I was aware of this change and just put it aside "for now". Seems like that commit got released, so I have to account for that in my Find module.
Yes, good point -- is there a way to make homebrew use a certain branch of the tap? (I assumed there was no way and so I usually "tested" by pushing straight to master.) |
I think (think) you could replace checkout:
path: /usr/local/Homebrew/Taps/mosra/homebrew-magnum Which will use circle's logic to get the right code and put it where homebrew is looking. |
Yes, but I'm afraid this kind of a hack might hide issues that would happen only with Or I guess I could |
Ok, the spirv-tools issue got I restarted the PR build, but got greeted by
so I suppose that's another fresh exciting breakage in a 3rd party dependency. Investigating... |
Bullet package breakage fix submitted as Homebrew/homebrew-core#68634, with additional work done in mosra/magnum-integration@c9f9a0d & mosra/magnum-integration@8585e34 to turn linker errors into something more meaningful. Waiting until the package update happens, then will finally merge this. |
Seems like it did the job, I don't need any workarounds to build magnum-plugins anymore. Magic. In 4020b83 I made the change to check out a branch as you suggested and it works well. Thanks for that as well :) |
Story of my life |
Among several things, this explicitly passes the correct Xcode sysroot to cmake and on to clang. Without it, can spuriously get failure to find system symbols similar to these issues: https://stackoverflow.com/questions/58628377/catalina-c-using-cmath-headers-yield-error-no-member-named-signbit-in-th
I don't know the rhyme or reason to why it works sometimes (e.g. magnum from this repo worked for me, but magnum-plugins didn't).