Ticket #9653 (new Patch - Bug Fix)
Opened 2 years ago
Last modified 2 years ago
[PATCH] MacOSX fixes for cross compilation
| Reported by: | Lawrence Rust <lvr@…> | Owned by: | nigel |
|---|---|---|---|
| Priority: | minor | Milestone: | unknown |
| Component: | Ports - OSX | Version: | Master Head |
| Severity: | medium | Keywords: | mythbuild cross compile 10.4 |
| Cc: | Ticket locked: | no |
Description
This set of patches enables mythbuild.sh to cross compile mythtv and mythplugins to older versions of the MacOSX SDK i.e. 10.3 (ppc) and 10.4 (universal) on both Linux and MacOSX.
ffmpeg.diff
- #define _BSD_SOURCE instead of _XOPEN_SOURCE to enable unistd.h to include definitions of struct rusage.ru_maxrss which were detected by configure and added to config.h
libmythtv.diff
- Conditionally import QuartzCore? when detected by configure.
- Add support for big-endian Apple systems to bswap.h
libmytui.diff
- Remove some unuserd CoreGraphics? imports
- Fix some opengl types
- Add a simple cast in util-osx-cocoa.mm
mythmusic:
- Convert std::vector to QVector, which is functionally identical, to work around missing vector::data() function in 10.3 & 10.4 STL headers.
Attachments
Change History
comment:1 Changed 2 years ago by markk
libmythtv diff applied to master in dd6e0efc485e83a7b578 and fixes/0.24 in e28fe982692d5578a047
comment:2 Changed 2 years ago by markk
libmythui diff applied to master in 7c60905a99248c19fd12 and fixes/0.24 in f525415a9bf32c6c1be8
comment:3 Changed 2 years ago by markk
mythmusic changes applied to master in 3860dd2b6022b1bb4198 and fixes/0.24 in df16df93d3bff56405c7
comment:4 Changed 2 years ago by markk
The ffmpeg change is now the only outstanding patch in this ticket. Not my area of expertise so I'll leave it to others to decide if it is appropriate.
