Who's got a toolchain actually building executables that they can deploy to iOS devices?
So I notice iPwn's GHC controbutions, though their current state is slightly unclear, as is the current procedure (if any) for actually using them. I have been able to get jhc to compile an executable, but am at a bit of a loss as to what to do with it once it's built. (Perhaps I can build a static library and drop it into an XCode project?) I also note that section 4 at http://www.haskell.org/haskellwiki/IPhone, which purports to describe how to build for the iPhone using jhc, doesn't actually work with my install of XCode 3.2.4, as "arm-apple-darwin-gcc" exists nowhere on my system. I got a simulator build to work using the following settings: [iphoneSim] cc=/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 merge=le32 All corrections and advice gratefully received. --me
arm-apple-darwin-gcc sounds like a manually-installed cross-compiler from the official gcc sources, perhaps? Could you inject the built executable into an .app?
On Nov 5, 2010, at 10:59 AM, Elliott Hird wrote:
arm-apple-darwin-gcc sounds like a manually-installed cross-compiler from the official gcc sources, perhaps?
Perhaps. Apple's toolchain includes compilers with similar names in the version of XCode I have installed (I have the 4.x beta toolchain). If there were just a little more information about how (and whether) the example setup at the jhc wiki page was originally made to work, I could probably adjust things appropriately for my environment.
Could you inject the built executable into an .app?
Good question. Clearly, the cross-compiler setup is not sufficient by itself, since any actually working iOS app has to be codesigned (unless we assume jailborken devices, which, of course, I don't). --me
Hi Mikel,
My company, iPwn Studios, modified GHC 6.10.4 to produce iPhone output with
the help of Xcode. We're using it to write a game for the iPhone. The
ghc-iphone project is open source, and is located at
http://projects.haskell.org/ghc-iphone. I'd be happy to help you get up and
running with that if you'd like.
Ryan
On Fri, Nov 5, 2010 at 1:07 PM, mikel evins
On Nov 5, 2010, at 10:59 AM, Elliott Hird wrote:
arm-apple-darwin-gcc sounds like a manually-installed cross-compiler from the official gcc sources, perhaps?
Perhaps. Apple's toolchain includes compilers with similar names in the version of XCode I have installed (I have the 4.x beta toolchain). If there were just a little more information about how (and whether) the example setup at the jhc wiki page was originally made to work, I could probably adjust things appropriately for my environment.
Could you inject the built executable into an .app?
Good question. Clearly, the cross-compiler setup is not sufficient by itself, since any actually working iOS app has to be codesigned (unless we assume jailborken devices, which, of course, I don't).
--me
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
that would be great. i'm well versed in ios development (i have some games on the app store), and i've got a vm in development in GHC that i would like to deliver on ios as well as on other platforms. i'm very glad to hear that you guys are still actively developing your ios mods to ghc, and would be very grateful for any tips on getting my ghc code deployed on ios.
thanks very much for the response and the offer of help.
Sent from my iPad
On Nov 8, 2010, at 11:38 AM, Ryan Trinkle
Hi Mikel,
My company, iPwn Studios, modified GHC 6.10.4 to produce iPhone output with the help of Xcode. We're using it to write a game for the iPhone. The ghc-iphone project is open source, and is located at http://projects.haskell.org/ghc-iphone. I'd be happy to help you get up and running with that if you'd like.
Ryan
On Fri, Nov 5, 2010 at 1:07 PM, mikel evins
wrote: On Nov 5, 2010, at 10:59 AM, Elliott Hird wrote:
arm-apple-darwin-gcc sounds like a manually-installed cross-compiler from the official gcc sources, perhaps?
Perhaps. Apple's toolchain includes compilers with similar names in the version of XCode I have installed (I have the 4.x beta toolchain). If there were just a little more information about how (and whether) the example setup at the jhc wiki page was originally made to work, I could probably adjust things appropriately for my environment.
Could you inject the built executable into an .app?
Good question. Clearly, the cross-compiler setup is not sufficient by itself, since any actually working iOS app has to be codesigned (unless we assume jailborken devices, which, of course, I don't).
--me
_______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
Ryan, I'm attempting to use the binaries of your modified GHC with XCode 3.2.5. Having set up a Haskell target as your notes describe, with the built tool configured to be the build-iphone-haskell.sh supplied, I get an error from the tools complaining that no .cabal file exists. In point of fact, a suitable .cabal file does exist in the directory that contains the Haskell sources I want to build, so I'm guessing that I have one of the following things wrong: - the .cabal file is not where the script expects it to be - there should be some sort of coordination between the target name and the name of the .cabal file - the Haskell target should have the .cabal file or perhaps the Haskell sources added to it (this appears to impossible in the usual ways; the Haskell external target does not accept these files when I try to drop them on it ...or perhaps I've botched some other aspect of the install and setup. Do you have any suggestions as to what I ought to try next? --me
participants (3)
-
Elliott Hird -
mikel evins -
Ryan Trinkle