|
|
#1 |
|
-arch
How do i choose the architecture I compile an app for? e.g. ppc, ppc64, i386, i386_64
|
|
|
|
0
|
|
|
#2 |
|
In XCode, I assume, right? Under Project Target Settings.
|
|
|
|
0
|
|
|
#3 |
|
Command line tool
|
|
|
|
0
|
|
|
#4 |
|
|
0
|
|
|
#5 |
|
Explain
|
|
|
|
0
|
|
|
#6 |
|
Hmmm it's a bit difficult to say without knowing exactly what you are doing.
it might pay to do some background reading on gcc, option flags, makefiles, etc. but essentially -arch is an option for gcc, which is what compiles your source code. You need to add -arch (and your chosen architecture) to the relevant gcc calls. Without knowing your setup this is probably in the configure file or possibly directly in the makefile (although I'm guessing the way you have things setup configure is building your makefile). Anyway, I'd suggest doing background reading on whatever your workflow is so that you understand each step of what is happening :-) Cheers ---------- Starting with something like this could be useful :-) http://www.eupcs.org/wiki/Introduction_To_Makefiles |
|
|
|
0
|
|
|
#7 | |
|
clarification
Quote:
A am compiling an app from source code on my macbook pro 2011. I first type ./configure then I type make. |
||
|
|
0
|
|
|
#8 | |
|
Quote:
I really, really recommend reading up on makefiles etc. so you understand what's going on :-) Good luck! |
||
|
|
1
|
|
|
#9 |
|
Usually you'd say something like
Code:
./configure --help Code:
./configure --with-cflags="-march=i386" |
|
|
|
0
|
|
|
#10 |
|
One way to do it is with
Code:
./configure --with-cflags="-arch i386" --with-ldflags="-arch i386" Code:
CC="gcc -arch i386" ./configure |
|
|
|
0
|
![]() |
|
| Tags |
| app, architecture, compile, intel, ppc |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 10:35 PM.








Linear Mode
