ghc-android
ghc-android copied to clipboard
Create a binary distribution
Building the full cross compiler with template-haskell support takes quite a while because it is in effect a stage 3 compiler. I think a binary distribution would really help lower the barrier to entry for Haskell based Android development.
Would anyone else use a binary distribution?
I would like to have precompiled binary as well. P.s. Thanks for a big work!
After a couple of days spending my free time trying to get this to build, I have to say a precompiled binary would be much appreciated.
Which distros would be most useful?
AFAIK most popular distros are based on Ubuntu/Debian and CentOS/RedHat. I'm using Debian currently and Windows 7. How easy is it to compile under not *nix platform? Is it even possible to compile under Windows?
I tend to use use ubuntu, as do most people I know.
I use arch, I think neurocyte uses arch, writing a PKGBUILD is straightforward, and the package started as scripts for arch, so let's start with arch.
Yes, I use Arch, but I also have Ubuntu, Debian and SUSE chroots. I will probably start with an Arch package and then look at Ubuntu and Debian.
The tricky question though is how to integrate with the NDK. I don’t think I can redistribute the NDK’s compiler in a bindary package. So it will have to have some sort if install process. I’ll have to think about it some more.
IMHO it will be ok to warn user that he needs to install NDK manually, because it isn't available as a package. AFAIK Debian packages have a special list for that - mandatory steps, that package system couldn't make itself. Maybe Arch has something similar.
The NDK binaries are all covered by [L]GPL, so we should be fine...
Then it's strange that repacked NDK/SDK is not popular at all, even for major distros..
Strange indeed.
------------------------------------------------------------------------
The content of the Android NDK is covered by various open-source licenses.
See the copyright disclaimers in each respective file for details.
Note that the public Android NDK release packages also contain prebuilt binaries
for the compiler, linker, archiver, etc... The source code for the toolchain is
available at android.googlesource.com (you can use the script under
build/tools/download-toolchain-sources.sh to download it automatically).
The prebuilt binaries are covered by either the GNU General Public License (GPL),
or the GNU Lesser General Public License (LGPL). For details, see the files
COPYING and COPYING.LIB under 'build/prebuilt/<system>/<toolchain>'
------------------------------------------------------------------------
Any progress on this? Im trying to buld under gnuroot on android... Eventually we should see the Haskell platform targeting android, but maybe we will have to write it...