Precompiled package #1

Closed
aXe1 opened this Issue May 27, 2013 · 5 comments

Projects

None yet

3 participants

@aXe1
aXe1 commented May 27, 2013

Could you publish a precompiled APK to play with? I failed building ghc-android yet and just want to examine resulting package. Also, what is the minimum Android version required?
If it's possible, please, publish version targeting Android 2.2.
Thank you.

@neurocyte
Owner

I’m not sure there is any point in that. It’s a pretty trivial example. Just one Java class file and a Haskell shared object file. I would rather spend some time getting pre-built cross-compilers built.

@neurocyte neurocyte closed this May 27, 2013
@aXe1
aXe1 commented May 28, 2013

Just now compiling Haskell shared object is tricky.. I just want to have understanding how fat APK will be with all Haskell staff packed inside. Also it is interesting, if there would be sensible performance penalty, but for that Hello World isn't enough of course. For comparison - AFAIK Mono for Android is a similar thing and it adds ~3 Mb of libs and doesn't give sensible performance penalty.
Can you comment on Haskell for Android?

@neurocyte
Owner

The apk for android-haskell-activity is around 3Mb. I haven’t looked at reducing it yet. It may be possible though. I doubt a full haskell application would be much bigger. Most of the size is the base libraries and the RTS, which is huge compared to any actual application.

@gliptak
gliptak commented Jun 22, 2013

Neurocyte, how is libhaskell.so generated? From https://github.com/neurocyte/ghc-android? Thanks

@neurocyte
Owner

Yes. libhaskell.so is built by arm-linux-androideabi-cabal and/or i686-linux-android-cabal. See custom_rules.xml. These are wrapper scripts around cabal for calling the cross-compiler correctly. They are installed by the cross-compiler build script in ghc-android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment