Building for M1
esphynox opened this issue · 9 comments
Maybe we should fire GitHub issue firstly to the author: https://github.com/strukturag/libde265/issues
Next, for workaroung, maybe we can now modify that file or provide a overlay, using CocoaPods
or SwiftPM
to do this...
Put the same header file and move the header search path (-I
) beyond the original one, to make other files compiled with load this mock file firstly.
Wait, did this file get loaded in on macOS only ? Maybe we can get a better workaround.
Yes, this issue occurs only when building for macOS.
Oh, I noticed someone opened issue in libde265
- strukturag/libde265#308
I think I found way to build correct fat framework without modifying libde265
itself. Will add PR soon.
Hi there. I currently came up with two working ideas.
- Remove all
sse
files from building. Its kinda easy and requires a little modification of.xcodeproj
file, but I'm not sure how it will affect performance on x86 processors. - Have separate targets for x86 and Arm processor. This approach will require more work, since we will need to build those two libraries separately and merge them via some script that will perform
lipo
operation.
Maybe you can clarify for me what will exactly happen if I will remove sse.h
includes from x86 library?
Created PR, @dreampiggy
Hi.
Recently I'm busying in daily work and may have no enough time for open-source project. I'll have a check for small changes PR soon.
For large refactory or features, please try to summerize the idea and core changes, and I may check back in weekend.
Actually... The raw Xcodeproj for Carthage may not get long time maintained...Beucase the reason for this repo was for CocoaPods && SwiftPM. Carthage is deprecated..
Anyway, I'll release a new path version firstly.