-
Notifications
You must be signed in to change notification settings - Fork 892
Fix Qt on macOS #293
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
Fix Qt on macOS #293
Conversation
The ways this works is that the opencv cmake file is patched to copy the Qt plugins to the Then
Finally, the |
Sorry for having kept you waiting. I think that the changes are ok. I just implemented a solution for persisting the build artifacts to Azure Storage. The changes are in the master branch. So if you merge those changes to this branch the artifacts should appear to Azure (I'm still waiting for Travis output for macOS builds). Some instructions for downloading them:
[
{
"Blob": "https://[secure].blob.core.windows.net/2fd09dc0c3872f496d4c294b20de7c35ef75c39b/opencv_python-4.2.0+2fd09dc-cp35-cp35m-manylinux1_x86_64.whl",
"Last Modified": "2020-03-21T15:39:55+00:00",
"Type": null,
"eTag": "\"0x8D7CDAE1AFDA647\""
}
]
I will monitor the storage usage. I'll keep the artifacts in Azure for now since the costs are negligible for this amount of data. |
Travis has had some issues with the builds today as well as with the Github integration (this is maybe related https://twitter.com/travisci/status/1241411541150433281), but it seems that the changes triggered a new build successfully (Github UI doesn't show the Travis link for some reason): https://travis-ci.org/github/skvark/opencv-python/builds/665299104 |
FYI, it looks like the build errored (doesn't look like it even started). Maybe try it again tomorrow. |
Yeah, I restarted it now. I'll try again tomorrow if it does not start. |
Some builds are working now, but there is a problem with the uploads https://travis-ci.org/github/skvark/opencv-python/jobs/665299116#L5553-L5562
|
Ah.. secure variables cannot be used in PRs due to security reasons. travis-ci/travis-ci#5579 I could just merge the changes to master and then you would be able to download and test the wheels. |
I'll go ahead and merge this since the dylib is copied successfully to the package and all we need to do is to confirm that it's being found by Qt. If there are issues, you can create a new PR to address them. |
I have no idea what's wrong with the Python 3.7 macOS environment (Cmake doesn't seem to be able find the Python libaries for some reason), but other macOS wheels should be available for testing. |
I tested the Python 3.6 version and was able to get a UI window, so it seems ok so far. |
On python 3.7, I found the following error message in the logs:
|
It looks like the 3.7.6 version comes from the multibuild submodule. |
Made a pull request for this https://github.com/matthew-brett/multibuild/pull/324 |
Nice find, that explains the issue. |
https://travis-ci.org/github/skvark/opencv-python/builds/666367918 Wheels for 3.7 should be available soon. |
This is an attempt to fix #290.
Unfortunately, I am not able to successfully build locally so I haven't been able to fully test it. I can build a wheel, but it crashes with a segmentation fault even without this change. Hopefully there is a way to get the wheel that is built from the CI here so we can actually test it.