Open patilarpith opened 9 years ago
Same issue in 10.11, of course. In addition, all the HIServices functions this uses, like GetProcessForPID
, GetNextProcess
, GetProcessPID
, and CopyProcessName
, plus CFPropertyListCreateXMLData
are now marked deprecated too.
For CGDisplayBaseAddress
, it appears that Apple is trying to deprecate access to the raw framebuffer of a display. There's no direct replacement, but one could probably be hacked together.
For CGDisplayBitsPerPixel
, CGDisplayBitsPerSample
, and CGDisplaySamplesPerPixel
, Apple documentation recommends CGDisplayModeCopyPixelEncoding
instead, which returns a CFString, but even that is deprecated in 10.11.
For CGDisplayBytesPerRow
, Apple recommends using CGDisplayCreateImage() on the displayID, and then getting the bytes per row of that.
The symbols are still there (for now), so you can just declare them yourself in procfs_displays.h
. But that's not remotely supported.
But it gets even better if you're upgrading to 64-bit, because the Sequence Grabber and the entire QuickTime framework is gone, which means sequencegrab doesn't build. It might be possible to replace the Sequence Grabber usage with AVFoundation
. Apple also mentions IOVideoDevice
in the context of kernel programming which is intended to replace SG. I just stubbed them out; who knows what will happen if they're called.
And about half the vm_* routines and types have been renamed to machvm*.
And the Makefile is deathly old. I fixed all this and got it to build on 10.11 x86_64. I'll probably push the result to https://github.com/alexchandel/procfs once I clean it up.
I fork-extracted procfs to https://github.com/alexchandel/procfs and updated the build to 10.11, x86_64
SDK: MacOSX10.10.sdk Xcode: 6.1.1
Here is the build error from
make
commandLooks like some of the display related identifier were not found. Is there a way to build procfs headless?