ghc-android icon indicating copy to clipboard operation
ghc-android copied to clipboard

Create a binary distribution

Open neurocyte opened this issue 11 years ago • 12 comments

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?

neurocyte avatar May 15 '13 18:05 neurocyte

I would like to have precompiled binary as well. P.s. Thanks for a big work!

aXe1 avatar May 24 '13 02:05 aXe1

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.

anthony-coble avatar May 24 '13 05:05 anthony-coble

Which distros would be most useful?

neurocyte avatar May 24 '13 13:05 neurocyte

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?

aXe1 avatar May 24 '13 14:05 aXe1

I tend to use use ubuntu, as do most people I know.

anthony-coble avatar May 25 '13 16:05 anthony-coble

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.

atondwal avatar May 25 '13 16:05 atondwal

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.

neurocyte avatar May 27 '13 09:05 neurocyte

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.

aXe1 avatar May 28 '13 11:05 aXe1

The NDK binaries are all covered by [L]GPL, so we should be fine...

atondwal avatar May 28 '13 11:05 atondwal

Then it's strange that repacked NDK/SDK is not popular at all, even for major distros..

aXe1 avatar May 28 '13 11:05 aXe1

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>'
------------------------------------------------------------------------

atondwal avatar May 28 '13 12:05 atondwal

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...

nerdRenegade avatar Jul 29 '15 10:07 nerdRenegade