Skip to content
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

Builing fails #316

Open
entropid opened this issue Sep 18, 2011 · 3 comments
Open

Builing fails #316

entropid opened this issue Sep 18, 2011 · 3 comments

Comments

@entropid
Copy link

When I run the run command, this is the output

MacBook-Pro:MobileNotifier me$ export GO_EASY_ON_ME=1
MacBook-Pro:MobileNotifier me$ export SDKVERSION=4.3
MacBook-Pro:MobileNotifier me$ esport THEOS=/opt/theos
MacBook-Pro:MobileNotifier me$ make
In file included from /opt/theos/include/IOSurface/IOSurface.h:20,
                 from /opt/theos/include/QuartzCore/QuartzCore-Structs.h:11,
                 from /opt/theos/include/QuartzCore/CAValueFunction.h:9,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/CoreAnimation.h:28,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h:9,
                 from /opt/theos/include/UIKit/UIKit-Structs.h:15,
                 from /opt/theos/include/UIKit/UIActionSheet.h:6,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIAlert.h:8,
                 from /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h:12,
                 from /opt/theos/Prefix.pch:4,
                 from <command-line>:0:
/opt/theos/include/IOSurface/IOSurfaceAPI.h:251: error: ‘xpc_object_t’ does not name a type
/opt/theos/include/IOSurface/IOSurfaceAPI.h:255: error: ‘xpc_object_t’ was not declared in this scope
Tweak.xm: In function ‘void -[PHACInterface setDoubleHighStatusBar:](PHACInterface*, objc_selector*, BOOL)’:
Tweak.xm:251: warning: no ‘+sharedDataManager’ method found
Tweak.xm:251: warning: (Messages without a matching method signature
Tweak.xm:251: warning: will be assumed to return ‘id’ and accept
Tweak.xm:251: warning: ‘...’ as arguments.)
Tweak.xm:258: warning: no ‘-toggleSimulatesInCallStatusBar’ method found
make[2]: *** [obj/Tweak.xm.o] Error 1
make[1]: *** [internal-library-all_] Error 2
make: *** [MobileNotifier.all.tweak.variables] Error 2

I've obviously checked that I followed all the instructions in the right way and set the variables (SKDVERSION = 4.3, GO_EASY_ON_ME = 1 and THEOS folder).

@mikahjc
Copy link

mikahjc commented Oct 28, 2011

I had this same problem. I'm running OS X Lion, and I think Apple may have made some changes in IOSurfaceAPI.h in Lion. What I did was download an old version of Xcode that had the Snow Leopard SDK and extracted the header from there. No more 'xpc_object_t' errors.

@entropid
Copy link
Author

entropid commented Nov 3, 2011

Thank you for the advice. :)

@mqiezi
Copy link

mqiezi commented May 16, 2012

/* This call lets you get an xpc_object_t that holds a reference to the IOSurface.
Note: Any live XPC objects created from an IOSurfaceRef implicity increase the IOSurface's global use
count by one until the object is destroyed. */
// xpc_object_t IOSurfaceCreateXPCObject(IOSurfaceRef aSurface)
// IOSFC_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_NA);

/* This call lets you take an xpc_object_t created via IOSurfaceCreatePort() and recreate an IOSurfaceRef from it. */
// IOSurfaceRef IOSurfaceLookupFromXPCObject(xpc_object_t xobj)
// IOSFC_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_NA);

I'm running OS X Lion,and I copy /System/Library/Frameworks/IOSurface.framework/Headers/IOSurfaceAPI.h to $THEOS/include/IOSurface/ . I get it worked when I commit above lines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants