-
Notifications
You must be signed in to change notification settings - Fork 283
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
Build breaks in video.swift #855
Comments
@jjedele Do you know the Xcode version you are using? Maybe it is the version mismatch as the |
@yongtang 10.3. I will update it and see write here if it works helps. |
@jjedele My Xcode is 11.3.1, let me know if upgrade works. Otherwise I can try to see if I can update the code to support both Xcode 10 and Xcode 11. |
@yongtang I updated Xcode and now it builds, but when I'm trying to load the library I get following error:
Seems I have to update something else. Hope it's not the whole OS. Looking into it. |
Xcode now also 11.3.1, OSX 10.14.6. |
@jjedele It looks like it is due to the Swift 5 Runtime? Though I am not so sure. In old versions of macOS the Runtime needs to be installed separately, but 10.14.6 could be new enough already. |
@yongtang Haven't been able to figure this out yet unfortunately. Apparently Swift 5 is in XCode 11.3 which I have installed. Is there an way to deactivate compiling the Swift parts selectively? |
@jjedele It may not be straightforward though you could:
After that you can selectively build .so only:
|
@yongtang Thx, that kind of worked. Unfortunately I'm now back to (like before the Kafka update)
I'm getting the feeling that something's messed up with my environment, it somehow also says the library is built for OSX 10.15 despite I'm on 10.14. |
Ah, I think you may need to pass
to bazel, so:
We actually passes those two options in our CI: So it was not getting noticed. Probably should pass those two options in .bazelrc (created from https://github.com/tensorflow/io/blob/master/tools/build/configure.py#L104-L106 ), so that it is not needed to pass that two long options in command line. |
@jjedele The issue should have been fixed by #953. All usage of 10.15 APIs in swift have been removed. You still need to pass `--copt="-mmacosx-version-min=10.13" and --linkopt="-mmacosx-verson-min=10.13" to bazel build, then build will be successful. I will close this issue for now, but feel free to re-open if the issue persists. |
When trying to build the current master, it fails for me in
video.swift
with following error:I did expunge and rebuild 2 times, but it didn't help. Also when I look at the CMSampleBuffer API Docs, there is only a
sampleCount
and nonumSamples
attribute in there.Any ideas what the problem could be?
The text was updated successfully, but these errors were encountered: