Re: [Haskell-iPhone] trying to run the examples
On Mon, Dec 26, 2011 at 11:20 AM, Ton Biegstraaten < ton.biegstraaten@gmail.com> wrote:
Op 26 dec 2011, om 19:36 heeft David Pollak het volgende geschreven:
The following code compiles into a running iPad app (no rooting required):
https://github.com/visi-lang/visi/tree/323e70bb2ff0dd96cfa79262b29f978e63ccd...
I did my compilation work on Snow Leopard with xcode 3.2.5. The code runs well (no crashes or anything else).
Hope this helps.
Not yet :-) After installing this in xcode it needs parsec It needs parsec >= 3, so:
=1.8 but no suitable version is installed. iphone-simulator-cabal: Error: some packages failed to install:
iphone-simulator-cabal install parsec Resolving dependencies... iphone-simulator-cabal: The package requires Cabal library version -any && parsec-3.1.2 depends on text-0.11.1.12 which failed to install. text-0.11.1.12 failed during the configure step. The exception was: exit: ExitFailure 1
iphone-simulator-cabal --version cabal-install version 0.6.2 using version 1.6.0.3 of the Cabal library
I'm not sure if I can update the cabal library update gives:
iphone-simulator-cabal update Downloading the latest package list from hackage.haskell.org Note: there is a new version of cabal-install available. To upgrade, run: cabal install cabal-install
Hope you can help me further?
Dusting off my memory of the whole configuration fragility issue... I think I had to specify parsec 3.0.1 which was built against GHC 6.10. I don't remember the cabal syntax for specifying that exact version (perhaps someone else on the list can help with the right cabal command.)
thanks, Ton
On Fri, Dec 23, 2011 at 11:36 AM, Ton Biegstraaten < ton.biegstraaten@gmail.com> wrote:
Hi, I'm new to this. I 've snow leopard highest version with xcode 3.2.6 and so target 4.3.3. My iPhone is a (jailbroken) 5.01. I can run simple (hello world Objective C) examples on the iPhone (by `persuading' xcode to allow me :-)
Compiling haskelldraw is awfull, more than 1800 errors. GetInBehind runs on the simulator but gives about 40 errors for the device, missing header files etc. Reading the maillist gives some clues about versions and adjusting things, but they are to vague for me. I also read that the stuff works on xcode 3.2.5 with ios 4.2. I downloaded this version from a torrent and I wander if it is useful to replace the current 3.2.6 with this previous version for getting the examples working. I like haskell very much and it should be fun to use it in the phone. I hope someone can give me some clues about downgrading or changing the current setup.
regards, Ton _______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
Hi, ... install 'parsec < 3.1' installs parsec, but I get some errors: one about can't find source for Visi.Snark in haskell the second that ld can't find -lVisi, but that's maybe due to the previous error There is VisiPro in haskell ... and I changed the cabal file using VisiPro in stead of Visi for Snark Then it's missing Data.text. I found 0.11.08, but the next error says missing ... it's a member of the hidden package. Well that's too much for the moment, I've no idea what that means, I've to look in the docs probably Ton Op 26 dec 2011, om 20:26 heeft David Pollak het volgende geschreven:
On Mon, Dec 26, 2011 at 11:20 AM, Ton Biegstraaten
wrote: Op 26 dec 2011, om 19:36 heeft David Pollak het volgende geschreven:
The following code compiles into a running iPad app (no rooting required): https://github.com/visi-lang/visi/tree/323e70bb2ff0dd96cfa79262b29f978e63ccd...
I did my compilation work on Snow Leopard with xcode 3.2.5. The code runs well (no crashes or anything else).
Hope this helps. Not yet :-) After installing this in xcode it needs parsec It needs parsec >= 3, so:
=1.8 but no suitable version is installed. iphone-simulator-cabal: Error: some packages failed to install:
iphone-simulator-cabal install parsec Resolving dependencies... iphone-simulator-cabal: The package requires Cabal library version -any && parsec-3.1.2 depends on text-0.11.1.12 which failed to install. text-0.11.1.12 failed during the configure step. The exception was: exit: ExitFailure 1
iphone-simulator-cabal --version cabal-install version 0.6.2 using version 1.6.0.3 of the Cabal library
I'm not sure if I can update the cabal library update gives:
iphone-simulator-cabal update Downloading the latest package list from hackage.haskell.org Note: there is a new version of cabal-install available. To upgrade, run: cabal install cabal-install
Hope you can help me further?
Dusting off my memory of the whole configuration fragility issue...
I think I had to specify parsec 3.0.1 which was built against GHC 6.10. I don't remember the cabal syntax for specifying that exact version (perhaps someone else on the list can help with the right cabal command.)
thanks, Ton
On Fri, Dec 23, 2011 at 11:36 AM, Ton Biegstraaten
wrote: Hi, I'm new to this. I 've snow leopard highest version with xcode 3.2.6 and so target 4.3.3. My iPhone is a (jailbroken) 5.01. I can run simple (hello world Objective C) examples on the iPhone (by `persuading' xcode to allow me :-) Compiling haskelldraw is awfull, more than 1800 errors. GetInBehind runs on the simulator but gives about 40 errors for the device, missing header files etc. Reading the maillist gives some clues about versions and adjusting things, but they are to vague for me. I also read that the stuff works on xcode 3.2.5 with ios 4.2. I downloaded this version from a torrent and I wander if it is useful to replace the current 3.2.6 with this previous version for getting the examples working. I like haskell very much and it should be fun to use it in the phone. I hope someone can give me some clues about downgrading or changing the current setup.
regards, Ton _______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
Did you check out the qcon_demo tag? Master will not compile. I'm waiting for ghc-iPhone based on ghc 7 to loop back and get master compiling for iPad again.
On Dec 26, 2011, at 2:45 PM, Ton Biegstraaten
Hi,
... install 'parsec < 3.1' installs parsec, but I get some errors: one about can't find source for Visi.Snark in haskell the second that ld can't find -lVisi, but that's maybe due to the previous error
There is VisiPro in haskell ... and I changed the cabal file using VisiPro in stead of Visi for Snark
Then it's missing Data.text. I found 0.11.08, but the next error says missing ... it's a member of the hidden package. Well that's too much for the moment, I've no idea what that means, I've to look in the docs probably
Ton
Op 26 dec 2011, om 20:26 heeft David Pollak het volgende geschreven:
On Mon, Dec 26, 2011 at 11:20 AM, Ton Biegstraaten
wrote: Op 26 dec 2011, om 19:36 heeft David Pollak het volgende geschreven:
The following code compiles into a running iPad app (no rooting required): https://github.com/visi-lang/visi/tree/323e70bb2ff0dd96cfa79262b29f978e63ccd...
I did my compilation work on Snow Leopard with xcode 3.2.5. The code runs well (no crashes or anything else).
Hope this helps. Not yet :-) After installing this in xcode it needs parsec It needs parsec >= 3, so:
=1.8 but no suitable version is installed. iphone-simulator-cabal: Error: some packages failed to install:
iphone-simulator-cabal install parsec Resolving dependencies... iphone-simulator-cabal: The package requires Cabal library version -any && parsec-3.1.2 depends on text-0.11.1.12 which failed to install. text-0.11.1.12 failed during the configure step. The exception was: exit: ExitFailure 1
iphone-simulator-cabal --version cabal-install version 0.6.2 using version 1.6.0.3 of the Cabal library
I'm not sure if I can update the cabal library update gives:
iphone-simulator-cabal update Downloading the latest package list from hackage.haskell.org Note: there is a new version of cabal-install available. To upgrade, run: cabal install cabal-install
Hope you can help me further?
Dusting off my memory of the whole configuration fragility issue...
I think I had to specify parsec 3.0.1 which was built against GHC 6.10. I don't remember the cabal syntax for specifying that exact version (perhaps someone else on the list can help with the right cabal command.)
thanks, Ton
On Fri, Dec 23, 2011 at 11:36 AM, Ton Biegstraaten
wrote: Hi, I'm new to this. I 've snow leopard highest version with xcode 3.2.6 and so target 4.3.3. My iPhone is a (jailbroken) 5.01. I can run simple (hello world Objective C) examples on the iPhone (by `persuading' xcode to allow me :-) Compiling haskelldraw is awfull, more than 1800 errors. GetInBehind runs on the simulator but gives about 40 errors for the device, missing header files etc. Reading the maillist gives some clues about versions and adjusting things, but they are to vague for me. I also read that the stuff works on xcode 3.2.5 with ios 4.2. I downloaded this version from a torrent and I wander if it is useful to replace the current 3.2.6 with this previous version for getting the examples working. I like haskell very much and it should be fun to use it in the phone. I hope someone can give me some clues about downgrading or changing the current setup.
regards, Ton _______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
Hi, The issue about hidden packages can be solved by adding text to build depends in the cabal file. I added the latest version that could be compiled (0.11.0.8) but now this results. I think I agree with you to wait for GHC 7.x for the iPhone. build-iphone-haskell.sh running with ACTION= and PLATFORM_NAME=iphonesimulator Resolving dependencies... Configuring Visi-0.1... Warning: 'hs-source-dirs: ../core/src' is a relative path outside of the source tree. This will not work when generating a tarball with 'sdist'. Preprocessing executables for Visi-0.1... Building Visi-0.1... [1 of 8] Compiling Visi.Util ( ../core/src/Visi/Util.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Util.o ) [2 of 8] Compiling Visi.Expression ( ../core/src/Visi/Expression.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Expression.o ) [3 of 8] Compiling Visi.Typer ( ../core/src/Visi/Typer.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Typer.o ) [4 of 8] Compiling Visi.Parse ( ../core/src/Visi/Parse.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Parse.o ) [5 of 8] Compiling Visi.Executor ( ../core/src/Visi/Executor.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Executor.o ) [6 of 8] Compiling Visi.Runtime ( ../core/src/Visi/Runtime.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Runtime.o ) ../core/src/Visi/Runtime.hs:110:46: Couldn't match expected type `[Char]' against inferred type `Data.Text.Internal.Text' Expected type: [(String, t, Type)] Inferred type: [(Data.Text.Internal.Text, Expression, Type)] In the second argument of `map', namely `sinks' In the expression: map fromSink sinks Op 26 dec 2011, om 23:51 heeft David Pollak het volgende geschreven:
Did you check out the qcon_demo tag? Master will not compile. I'm waiting for ghc-iPhone based on ghc 7 to loop back and get master compiling for iPad again.
I didn't, but I don't know that I should? I read about visi as a new language for the iPad, well I haven't one, but still it looks nice and simple
On Dec 26, 2011, at 2:45 PM, Ton Biegstraaten
wrote: Hi,
... install 'parsec < 3.1' installs parsec, but I get some errors: one about can't find source for Visi.Snark in haskell the second that ld can't find -lVisi, but that's maybe due to the previous error
There is VisiPro in haskell ... and I changed the cabal file using VisiPro in stead of Visi for Snark
Then it's missing Data.text. I found 0.11.08, but the next error says missing ... it's a member of the hidden package. Well that's too much for the moment, I've no idea what that means, I've to look in the docs probably
Ton
Op 26 dec 2011, om 20:26 heeft David Pollak het volgende geschreven:
On Mon, Dec 26, 2011 at 11:20 AM, Ton Biegstraaten
wrote: Op 26 dec 2011, om 19:36 heeft David Pollak het volgende geschreven:
The following code compiles into a running iPad app (no rooting required): https://github.com/visi-lang/visi/tree/323e70bb2ff0dd96cfa79262b29f978e63ccd...
I did my compilation work on Snow Leopard with xcode 3.2.5. The code runs well (no crashes or anything else).
Hope this helps. Not yet :-) After installing this in xcode it needs parsec It needs parsec >= 3, so:
=1.8 but no suitable version is installed. iphone-simulator-cabal: Error: some packages failed to install:
iphone-simulator-cabal install parsec Resolving dependencies... iphone-simulator-cabal: The package requires Cabal library version -any && parsec-3.1.2 depends on text-0.11.1.12 which failed to install. text-0.11.1.12 failed during the configure step. The exception was: exit: ExitFailure 1
iphone-simulator-cabal --version cabal-install version 0.6.2 using version 1.6.0.3 of the Cabal library
I'm not sure if I can update the cabal library update gives:
iphone-simulator-cabal update Downloading the latest package list from hackage.haskell.org Note: there is a new version of cabal-install available. To upgrade, run: cabal install cabal-install
Hope you can help me further?
Dusting off my memory of the whole configuration fragility issue...
I think I had to specify parsec 3.0.1 which was built against GHC 6.10. I don't remember the cabal syntax for specifying that exact version (perhaps someone else on the list can help with the right cabal command.)
thanks, Ton
On Fri, Dec 23, 2011 at 11:36 AM, Ton Biegstraaten
wrote: Hi, I'm new to this. I 've snow leopard highest version with xcode 3.2.6 and so target 4.3.3. My iPhone is a (jailbroken) 5.01. I can run simple (hello world Objective C) examples on the iPhone (by `persuading' xcode to allow me :-) Compiling haskelldraw is awfull, more than 1800 errors. GetInBehind runs on the simulator but gives about 40 errors for the device, missing header files etc. Reading the maillist gives some clues about versions and adjusting things, but they are to vague for me. I also read that the stuff works on xcode 3.2.5 with ios 4.2. I downloaded this version from a torrent and I wander if it is useful to replace the current 3.2.6 with this previous version for getting the examples working. I like haskell very much and it should be fun to use it in the phone. I hope someone can give me some clues about downgrading or changing the current setup.
regards, Ton _______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
On Tue, Dec 27, 2011 at 5:56 AM, Ton Biegstraaten < ton.biegstraaten@gmail.com> wrote:
Hi, The issue about hidden packages can be solved by adding text to build depends in the cabal file. I added the latest version that could be compiled (0.11.0.8) but now this results. I think I agree with you to wait for GHC 7.x for the iPhone.
build-iphone-haskell.sh running with ACTION= and PLATFORM_NAME=iphonesimulator Resolving dependencies... Configuring Visi-0.1... Warning: 'hs-source-dirs: ../core/src' is a relative path outside of the source tree. This will not work when generating a tarball with 'sdist'. Preprocessing executables for Visi-0.1... Building Visi-0.1... [1 of 8] Compiling Visi.Util ( ../core/src/Visi/Util.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Util.o ) [2 of 8] Compiling Visi.Expression ( ../core/src/Visi/Expression.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Expression.o ) [3 of 8] Compiling Visi.Typer ( ../core/src/Visi/Typer.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Typer.o ) [4 of 8] Compiling Visi.Parse ( ../core/src/Visi/Parse.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Parse.o ) [5 of 8] Compiling Visi.Executor ( ../core/src/Visi/Executor.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Executor.o ) [6 of 8] Compiling Visi.Runtime ( ../core/src/Visi/Runtime.hs, /Users/ton/xcode/GHC-iPhone/visi/iOS/build/Debug-iphonesimulator/dist/build/Visi/Visi-tmp/Visi/Runtime.o )
../core/src/Visi/Runtime.hs:110:46: Couldn't match expected type `[Char]' against inferred type `Data.Text.Internal.Text' Expected type: [(String, t, Type)] Inferred type: [(Data.Text.Internal.Text, Expression, Type)] In the second argument of `map', namely `sinks' In the expression: map fromSink sinks
Op 26 dec 2011, om 23:51 heeft David Pollak het volgende geschreven:
Did you check out the qcon_demo tag? Master will not compile. I'm waiting for ghc-iPhone based on ghc 7 to loop back and get master compiling for iPad again.
I didn't, but I don't know that I should?
Yes. The qcon_demo tag is the demarcation of where the code properly compiled for the iPad. Then I went and did a bunch of stuff that requires GHC 7 and also splits the language out from the iPad part because Visi will run on OS X and in the cloud as well as on the iPad. You might want to check out https://github.com/dpp/LispHaskellIPad That compiles for the iPad at master. It might be an easier starting place for you.
I read about visi as a new language for the iPad, well I haven't one, but still it looks nice and simple
On Dec 26, 2011, at 2:45 PM, Ton Biegstraaten
wrote: Hi,
... install 'parsec < 3.1' installs parsec, but I get some errors: one about can't find source for Visi.Snark in haskell the second that ld can't find -lVisi, but that's maybe due to the previous error
There is VisiPro in haskell ... and I changed the cabal file using VisiPro in stead of Visi for Snark
Then it's missing Data.text. I found 0.11.08, but the next error says missing ... it's a member of the hidden package. Well that's too much for the moment, I've no idea what that means, I've to look in the docs probably
Ton
Op 26 dec 2011, om 20:26 heeft David Pollak het volgende geschreven:
On Mon, Dec 26, 2011 at 11:20 AM, Ton Biegstraaten < ton.biegstraaten@gmail.com> wrote:
Op 26 dec 2011, om 19:36 heeft David Pollak het volgende geschreven:
The following code compiles into a running iPad app (no rooting required):
https://github.com/visi-lang/visi/tree/323e70bb2ff0dd96cfa79262b29f978e63ccd...
I did my compilation work on Snow Leopard with xcode 3.2.5. The code runs well (no crashes or anything else).
Hope this helps.
Not yet :-) After installing this in xcode it needs parsec It needs parsec >= 3, so:
=1.8 but no suitable version is installed. iphone-simulator-cabal: Error: some packages failed to install:
iphone-simulator-cabal install parsec Resolving dependencies... iphone-simulator-cabal: The package requires Cabal library version -any && parsec-3.1.2 depends on text-0.11.1.12 which failed to install. text-0.11.1.12 failed during the configure step. The exception was: exit: ExitFailure 1
iphone-simulator-cabal --version cabal-install version 0.6.2 using version 1.6.0.3 of the Cabal library
I'm not sure if I can update the cabal library update gives:
iphone-simulator-cabal update Downloading the latest package list from hackage.haskell.org Note: there is a new version of cabal-install available. To upgrade, run: cabal install cabal-install
Hope you can help me further?
Dusting off my memory of the whole configuration fragility issue...
I think I had to specify parsec 3.0.1 which was built against GHC 6.10. I don't remember the cabal syntax for specifying that exact version (perhaps someone else on the list can help with the right cabal command.)
thanks, Ton
On Fri, Dec 23, 2011 at 11:36 AM, Ton Biegstraaten < ton.biegstraaten@gmail.com> wrote:
Hi, I'm new to this. I 've snow leopard highest version with xcode 3.2.6 and so target 4.3.3. My iPhone is a (jailbroken) 5.01. I can run simple (hello world Objective C) examples on the iPhone (by `persuading' xcode to allow me :-)
Compiling haskelldraw is awfull, more than 1800 errors. GetInBehind runs on the simulator but gives about 40 errors for the device, missing header files etc. Reading the maillist gives some clues about versions and adjusting things, but they are to vague for me. I also read that the stuff works on xcode 3.2.5 with ios 4.2. I downloaded this version from a torrent and I wander if it is useful to replace the current 3.2.6 with this previous version for getting the examples working. I like haskell very much and it should be fun to use it in the phone. I hope someone can give me some clues about downgrading or changing the current setup.
regards, Ton _______________________________________________ iPhone mailing list iPhone@haskell.org http://www.haskell.org/mailman/listinfo/iphone
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
Op 28 dec 2011, om 00:17 heeft David Pollak het volgende geschreven:
Yes. The qcon_demo tag is the demarcation of where the code properly compiled for the iPad.
Then I went and did a bunch of stuff that requires GHC 7 and also splits the language out from the iPad part because Visi will run on OS X and in the cloud as well as on the iPad.
You might want to check out https://github.com/dpp/LispHaskellIPad
That compiles for the iPad at master. It might be an easier starting place for you.
It compiled for the simulator and I could define a var, so it works :-) For a device I get the next result: Build Lisp of project Lisp with configuration Debug Ld build/Debug-iphoneos/Lisp.app/Lisp normal armv7 cd /Users/ton/xcode/GHC-iPhone/LispHaskellIPad setenv IPHONEOS_DEPLOYMENT_TARGET 4.2 setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk -L/Users/ton/xcode/GHC-iPhone/LispHaskellIPad/build/Debug-iphoneos -L/Users/ton/xcode/GHC-iPhone/LispHaskellIPad/build/Debug-iphonesimulator/dist/build/Lisp -F/Users/ton/xcode/GHC-iPhone/LispHaskellIPad/build/Debug-iphoneos -filelist /Users/ton/xcode/GHC-iPhone/LispHaskellIPad/build/Lisp.build/Debug-iphoneos/Lisp.build/Objects-normal/armv7/Lisp.LinkFileList -miphoneos-version-min=4.2 -framework Foundation -framework UIKit -framework CoreGraphics -lLisp -o /Users/ton/xcode/GHC-iPhone/LispHaskellIPad/build/Debug-iphoneos/Lisp.app/Lisp ld: warning: in /Users/ton/xcode/GHC-iPhone/LispHaskellIPad/build/Debug-iphonesimulator/dist/build/Lisp/libLisp.a, file was built for unsupported file format which is not the architecture being linked (armv7) Undefined symbols: "_Haskell_main", referenced from: _main in main.o "_releaseMe", referenced from: -[PerformOMatic reallyDoIt:] in PerformOMatic.o ld: symbol(s) not found collect2: ld returned 1 exit status I played with the target being ipad or iphone and the architectures arm6, standard (both) and arm7, but he result is more or less the same, also after a clean all targets. Any idea? Ton
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
Yes. The qcon_demo tag is the demarcation of where the code properly compiled for the iPad.
Then I went and did a bunch of stuff that requires GHC 7 and also splits the language out from the iPad part because Visi will run on OS X and in the cloud as well as on the iPad.
You might want to check out https://github.com/dpp/LispHaskellIPad
I wonder if the app is specific iPad. I like to make an iPhone app, the screen is of course too small, but as a test it might be fine. I don't have access to an iPad. Ton
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
These are two examples of running iPad apps. iPhone and iPad apps do not differ in terms of any generated machine code, but only in some xcode stuff. The GHC-iPhone PDF document has a walk-through of creating a new xcode project that includes the GHC-iPhone code. Please walk through those steps (I walked through them for both the Lisp thing and the Visi thing), but with a base iPhone xcode template rather than a base iPad xcode template and you'll get a running project. On Wed, Dec 28, 2011 at 6:35 AM, Ton Biegstraaten < ton.biegstraaten@gmail.com> wrote:
Yes. The qcon_demo tag is the demarcation of where the code properly compiled for the iPad.
Then I went and did a bunch of stuff that requires GHC 7 and also splits the language out from the iPad part because Visi will run on OS X and in the cloud as well as on the iPad.
You might want to check out https://github.com/dpp/LispHaskellIPad
I wonder if the app is specific iPad. I like to make an iPhone app, the screen is of course too small, but as a test it might be fine. I don't have access to an iPad.
Ton
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
Op 28 dec 2011, om 16:04 heeft David Pollak het volgende geschreven:
These are two examples of running iPad apps. iPhone and iPad apps do not differ in terms of any generated machine code, but only in some xcode stuff. There is a SplitViewController that is only available on the iPad, so a direct port is not possible. I need to become more clever than I am at the moment
The GHC-iPhone PDF document has a walk-through of creating a new xcode project that includes the GHC-iPhone code. Please walk through those steps (I walked through them for both the Lisp thing and the Visi thing), but with a base iPhone xcode template rather than a base iPad xcode template and you'll get a running project. Yes, it took some time, other things on my mind. I made a simple Hello Fibonacci app. I only had problems with the Haskell binary stuff. You need to have a cabal and Main.hs file before you can compile and the given env variable is wrong. It should be: $CONFIGURATION_BUILD_DIR/dist/build/<project> Then I can compile for all targets. After a lot of strange errors I noticed that Haskell main is not the starting point but you have to adjust main.m to get things working. From your examples I saw you use the ViewController in Haskell. I omitted that. I made a C interface and that was sufficient for this simple case. It touches the interesting point of what you do in Haskell and what in Objective C. I saw there is a FFI in development for Obj C. That should make things easier I hope. If `the other things are off my mind' I'll try to add the scheme interpreter and then find some task I can't live without running it in Haskell in my iPhone
thanks, Ton
On Wed, Dec 28, 2011 at 6:35 AM, Ton Biegstraaten
wrote: Yes. The qcon_demo tag is the demarcation of where the code properly compiled for the iPad.
Then I went and did a bunch of stuff that requires GHC 7 and also splits the language out from the iPad part because Visi will run on OS X and in the cloud as well as on the iPad.
You might want to check out https://github.com/dpp/LispHaskellIPad
I wonder if the app is specific iPad. I like to make an iPhone app, the screen is of course too small, but as a test it might be fine. I don't have access to an iPad.
Ton
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
-- Visi.Pro, Cloud Computing for the Rest of Us http://visi.pro Lift, the simply functional web framework http://liftweb.net Follow me: http://twitter.com/dpp Blog: http://goodstuff.im
participants (2)
-
David Pollak -
Ton Biegstraaten