neurocyte / ghc-android

Build scripts for building ghc cross compilers targeting Android
182 stars 29 forks source link

Create a binary distribution #15

Closed neurocyte closed 5 months ago

neurocyte commented 11 years ago

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?

aXe1 commented 11 years ago

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

anthony-coble commented 11 years ago

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.

neurocyte commented 11 years ago

Which distros would be most useful?

aXe1 commented 11 years ago

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?

anthony-coble commented 11 years ago

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

atondwal commented 11 years ago

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.

neurocyte commented 11 years ago

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.

aXe1 commented 11 years ago

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.

atondwal commented 11 years ago

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

aXe1 commented 11 years ago

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

atondwal commented 11 years ago

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>'
------------------------------------------------------------------------
nerdRenegade commented 8 years ago

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