Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
yeah so i found this
http://web.me.com/smaurice/AppleCod...penGL_ES_05_-_Texture_Mapping_Our_Square.html

started following that from chapter 1 and got to this one here
where it says to add the coregraphics framework i get 1 compile error when i'm compiling for iphone 2.2.1 and 122 errors when compiling for iphone 3.0

if i delete the framework from the project then i still get the 122 compile errors for iphone 3.0

for 2.2.1 it tells me it can't link to coregraphics framework and that i should use the umbrella applicationservices framework, which comes out red when i try add that and it complains saying it doesn't exist

for 3.0 it tells me all these syntax errors inside the frameworks taht were there before even though it was working happily with them

so... how is one meant to use textures in the app when the program permanently doesn't want to compile?
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
You probably added the coregraphics.framework incorrectly. Select the framework in your project and open a Get Info window. The Path Type should say 'relative to current SDK.' If it doesn't, make it so.
 

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
i did what you said, but it was already on 'relative to current SDK'
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
What are some of the errors?

OK, I downloaded the source project from that web page and it builds with no problem for me. Did you also do that?

What version of MacOS are you using? What is the Base SDK set for your project?
 

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
to name a few...
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/WebServicesCore.framework/Headers/WSMethodInvocation.h:759: error: expected declaration specifiers or '...' before 'CFXMLTreeRef'

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIColor.h:17: error: expected ')' before 'CGFloat'

/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIGeometry.h:22: error: 'UIEdgeInsets' has no member named 'left'
they all follow things such as
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/WebServicesCore.framework/Headers/WebServicesCore.h:15,
and
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIInterface.h:10,
all complaining about stuff it finds in the frameworks it had no problem with to start with...

if that makes sense..
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
Something is messed up with your project (yes that's the technical term for it :)

You can start over.

You can get the project from the web page and open it and yours and compare the project settings line by line to see what the difference is. Probably you are either linking against a library that has a hard-coded path so it's from the wrong SDK or the project settings have a hard-coded path for header search paths. Look at that setting.

I assume that the AppleCoder-OpenGLES-00 project from the web site works OK for you.
 

Chirone

macrumors 6502
Original poster
Mar 2, 2009
279
0
NZ
yeah, it did work (the project from the site)

and something was screwed up
in the build part of my project's info the Framework Search Paths was filled in with two things, but the one from the examples weren't, so i deleted whatever was there and it worked...

it must have filled itself in when i added the coregraphics framework

thanks PhoneyDeveloper :)
 

PhoneyDeveloper

macrumors 68040
Sep 2, 2008
3,114
93
Yeah, I think that Xcode adds some things to header search paths or framework search paths when you add a framework, sometimes, and sometimes it's the wrong thing.

Maybe if you add a framework that is outside the current SDK it adds the framework search path to find that framework. But it's almost always a mistake to add a framework that's outside the current SDK.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.