[Stk] building libstk on OSX as Intel or Universal
sinclair at music.mcgill.ca
Sat Mar 29 09:48:16 PDT 2008
Jerzy Gangi wrote:
> Thanks for your note Steve. I think you're saying to run:
> 1) in the stk root directory:
> $ CFLAGS="-march=i386" ./configure;
> 2) in the src directory run make (can't run make in the stk root directory)
> Is this correct? I think I must be wrong because eXCODE still says the
> binary libstk.a is "not of the required architecture"
That's right, the configure script is in the root directory, but for
some reason only produces a Makefile in the src directory. Otherwise it
should hopefully work the way I stated.
When trying to debug building problems, make sure you look at the output!
The make program outputs the commands before it runs them.
Does the output show that gcc is being executed with the -march=i386 flag?
Also, make sure you "make clean" first if you've built before.
You might also have to explicitly set the LITTLE_ENDIAN flag (or
whatever it is called), since if you're building for i386 on PPC it
might detect this wrong (and vice versa).
More information about the Stk