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
Link errors when trying to build tests or examples on MacOS X #25
Comments
i am also having this error |
same here. |
I've had success building the examples after fiddling with a few cmake and pkg-config parameters on OSX. Using homebrew installed
Setting those two are somewhat brittle since they're linking to a specific version of Qt, sadly there are many conflicts between versions 4 and 5 so brew doesn't link it by default. |
@jxs @evanmeng You're also on OSX, I guess? @tpickett66 Quoting my pkg-config manpage,
So If I understood Homebrew/legacy-homebrew#12571 right, this is a more robust way of determining the installed formula's directory than using
So, for qmlrs, what you need would be something like:
@tpickett66 Could you please test & investigate this? If something like this works reliably and robust, we should at least add it to the documentation as homebrew build instructions. |
@florianjacob, the paths you've suggested are already included on the search paths for pkg-config. The trouble here is that homebrew doesn't link the qt5 package due to the conflicts. I'll poke at it a bit more to see if I can find something more stable. |
I've found a stable solution and am adding it to |
Since QT5 and QT4 supply many of the same libs and QT4 is much more widely used (according to the Formula's keg_only declaration) homebrew doesn't link QT5 by default. To work around this we need to nudge pkg-config and cmake in the right direction for them to find QT5. Fixes cyndis#25
Followup on #14:
This is on MacOS X 10.10.
So far so good. Let's try tests:
The text was updated successfully, but these errors were encountered: