Re: iOS cross compiling support

2011-01-28 Thread Ryan Schmidt
On Jan 28, 2011, at 17:08, James Gregurich wrote: > That would certainly work for MacOSX. What if the host isn't an apple OS? > There is certainly support for freebsd in darwin ports. I would assume it is > meant to be generic. DarwinPorts changed its name to MacPorts years ago to emphasize t

Re: iOS cross compiling support

2011-01-28 Thread James Gregurich
That would certainly work for MacOSX. What if the host isn't an apple OS? There is certainly support for freebsd in darwin ports. I would assume it is meant to be generic. for the record, the precise definition of my terms are host = system with dev tools that builds the product target =

Re: iOS cross compiling support

2011-01-28 Thread Ryan Schmidt
On Jan 28, 2011, at 13:24, James Gregurich wrote: > Is it consistent with the design of macports for me to invoke its included > config.guess script to get the triplet for the host? If so, what would be the > proper means of invoking it. in the tcl scripts? I would assume that the config.guess

Re: iOS cross compiling support

2011-01-28 Thread Scott Webster
Probably this subject would be better dealt with on macports-dev? Or at least in addition to here... Sorry, I have no other helpful comments! Scott On Fri, Jan 28, 2011 at 11:24 AM, James Gregurich wrote: > > ok. so what is the guidance on this point? I need to move ahead. > > Is it consistent

Re: iOS cross compiling support

2011-01-28 Thread James Gregurich
ok. so what is the guidance on this point? I need to move ahead. Is it consistent with the design of macports for me to invoke its included config.guess script to get the triplet for the host? If so, what would be the proper means of invoking it. in the tcl scripts? On Jan 26, 2011, at 8:22 P

Re: iOS cross compiling support

2011-01-26 Thread James Gregurich
archs = armv6 & armv7. triplet to compile icu for iOS: arm-apple-darwin. I'm not sure how cross-compiling works in the general case, but the way Apple has it set up for their stuff, you use the compiler from the sdk. I think the default for iOS is currently llvm-gcc. However, it wouldn't be

Re: iOS cross compiling support

2011-01-26 Thread Rainer Müller
On 2011-01-26 22:11 , James Gregurich wrote: > just a thought Is there a way to deduce the information for the triplet > by invoking the target's compiler without having to actually run code on the > target device? I don't have the iPhone SDK installed, but as far as I know the compiler woul

Re: iOS cross compiling support

2011-01-26 Thread James Gregurich
yes. I am after the triplet for the host system. I don't see a way to automatically obtain the triplet for an arbitrary target. I have added options to the config file which I can use (in addition to configure.build_arch) to derive the appropriate triplets for an iOS device and the iOS simulator

Re: iOS cross compiling support

2011-01-26 Thread Rainer Müller
On 2011-01-26 00:24 , James Gregurich wrote: > howdy! > > I note that there is a config.guess at: > > var/macports/sources/rsync.macports.org/release/base/config.guess > > Is that file part of the macports software stack that I can call from > portconfigure.tcl? If so, what is the proper way to

Re: iOS cross compiling support

2011-01-25 Thread James Gregurich
howdy! I note that there is a config.guess at: var/macports/sources/rsync.macports.org/release/base/config.guess Is that file part of the macports software stack that I can call from portconfigure.tcl? If so, what is the proper way to invoke that script to get the triplet for the host system?

Re: iOS cross compiling support

2011-01-25 Thread Rainer Müller
On 2011-01-25 22:58 , James Gregurich wrote: > There is one more issue I want to address before I submit. > > To configure icu for iOS, you have to have --host=arm-apple-darwin as one of > the options. I'd like to automatically and generically create the label to > pass to --host. However, I'm

Re: iOS cross compiling support

2011-01-25 Thread James Gregurich
I've since found out it is called a "canonical system type." Its documented here: http://www.gnu.org/software/autoconf/manual/autoconf.html The string is generated by config.guess. I now know what it is and I'm deciding what to do with it. thanks, James On Jan 25, 2011, at 2:42 PM, Bradle

Re: iOS cross compiling support

2011-01-25 Thread Bradley Giesbrecht
On Jan 25, 2011, at 1:58 PM, James Gregurich wrote: There is one more issue I want to address before I submit. To configure icu for iOS, you have to have --host=arm-apple-darwin as one of the options. I'd like to automatically and generically create the label to pass to --host. However, I

Re: iOS cross compiling support

2011-01-25 Thread James Gregurich
There is one more issue I want to address before I submit. To configure icu for iOS, you have to have --host=arm-apple-darwin as one of the options. I'd like to automatically and generically create the label to pass to --host. However, I'm having a hard time finding documentation on how these

Re: iOS cross compiling support

2011-01-24 Thread Landon J Fuller
On Jan 24, 2011, at 9:37 PM, James Gregurich wrote: > hi. > > I've done the proof-of-concept work on extending macports to handle > cross-compiling so that it can be used to maintain 3rd party libs for iOS > development. I have successfully built ICU against the iPhone sdk and have it > runni

iOS cross compiling support

2011-01-24 Thread James Gregurich
hi. I've done the proof-of-concept work on extending macports to handle cross-compiling so that it can be used to maintain 3rd party libs for iOS development. I have successfully built ICU against the iPhone sdk and have it running in the debugger on an iPad. I'd like to turn this work over t