Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Here's something odd...
I didnt install the cross architecture stuff for xcode, and I can't make a release build... Quote:
Anyway, I'm re-downloading xcode now to try and install the cross arch stuff, I just thought it was interesting is all. |
|
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Hmm... well after I installed the stuff for universal binaries, I can make a release build for 10.4 (Universal).
But what I can't do and what's sort of important to me is make a build for 10.3.9 I get a very similar error saying "arch doesnt match cpu flag etc. " Has anyone else had similar problems ? This is xcode 2.2 by the way. EDIT: Removed "cross platform", my bad. Last edited by AsLan^ : 2005-12-26 at 22:51. |
quote |
Member
|
I don't understand why you need to create a cross-platform build for 10.3.9. All Intel Macs should be running 10.4 or higher. I'm not even sure if 10.3.9 will run on x86.
|
quote |
‽
|
Quote:
|
|
quote |
Senior Member
Join Date: Nov 2004
|
Yep, PPC only for pre-10.4
|
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Sorry guys perhaps its a little misleading...
I didnt want to make universal binaries, but it wouldn't compile for 10.4 (with only ppc arch selected) until after i installed the universal binaries. It still doesn't work when I try and compile for 10.3.9 (selecting the 10.3.9 sdk and selecting ppc arch without intel) it still give me the same error that I was getting before. Looking back at my first post I can see I posted the wrong error message, but I assure you I got something very similar to that when trying to compile for 10.4 without the universal sdk installed. |
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
In a nutshell... I cant compile for 10.3.9 and thats what I wanted to do
|
quote |
A for effort.
Join Date: Nov 2004
Location: New Jersey
|
Quote:
Could you put 2 binaries in the MacOS folder and have a script pick which one is the right one? |
|
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Quote:
|
|
quote |
A for effort.
Join Date: Nov 2004
Location: New Jersey
|
Oh. never mind me then.
|
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Alright, it sort of works now...
I had check "Continue buliding after errors" in preferences. After that I was able to compile for Panther (with aforementioned errors) and then run it on Panther too |
quote |
Veteran Member
|
Quote:
|
|
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Quote:
|
|
quote |
Member
|
A couple of questions:
Did you install the 10.3 sdk when you installed the developer tools? Under the "Get Info" for your project did you select the 10.3 SDK for your project? "Slow vehicle speeds with frequent stops would signal traffic congestion, for instance." uh... it could also signal that my Mom is at the wheel... |
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
Quote:
Funnily enough, xcode has started playing up again when trying to cross compile the same project again. This time the binary generated wouldnt run at all, saying something like "OSX cannot open this application because it may be damaged or corrupted." I know it can work because there is a binary version of the app which I can run on my ibooks desktop right now ! I think it's a genuine bug, perhaps Apple didn't think anyone wouldn't install the Universal Binaries option and that somehow broke it. It looks like that -i386 flag is hardwired into a gcc setting somewhere. |
|
quote |
Not a tame lion...
Join Date: May 2004
Location: Narnia
|
For anyone that's interested or may be encountering the same problem.
After working once it continued to play up, so I re-installed xcode... but that didn't work either. Then I discovered you can leave the SDK set to 10.4 and just set the Deployment Target (in the Build tab of Project Info) to 10.3. This compiles cleanly without errors, and creates a binary that will run on 10.3 (providing you havnt used any 10.4 features of course). I double checked it this time too (with two different projects) before posting |
quote |
Posting Rules | Navigation |
|
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Locating Errors in Xcode 2.2 | kartel9 | Programmer's Nook | 4 | 2005-11-26 18:25 |
Xcode importing.. Good references.. | scratt | Programmer's Nook | 0 | 2005-11-18 03:07 |
Creating a standalone exacutable with Xcode.. | scratt | Programmer's Nook | 1 | 2005-11-15 22:17 |
Xcode - No such file or directory problem... | scratt | Programmer's Nook | 14 | 2005-11-10 23:41 |
XCode linking problems | faramirtook | Genius Bar | 5 | 2005-10-09 17:42 |