maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] OCaml for N900 (https://talk.maemo.org/showthread.php?t=96055)

marmistrz 2015-10-15 15:41

[Announce] OCaml for N900
 
I have OCaml as our my language during this term's course, so how could I have not tried running it on my N900.

What works:
  • OCaml itself
  • rlwrap
What I plan to add
  • libounit-ocaml-dev
  • ocamlfind
Known bugs:
  • you need fix the permission for executables. I'm not eager of 2 hours of rebuilding, so I don't know when I'll fix it.
  • unless we have a dedicated, optified development set for N900, we'll have to use a chroot jail.
What will never work:
  • this will never hit extras-devel (unless I'll be able to use Qemu 0.13 from Hathor in the autobuilder, which I really doubt)


Quick instructions:

1. Set up a development chroot. Use an image from here http://talk.maemo.org/showthread.php?t=86158
I suggest you unpack it. I'll assume that the root of the sdk image is now at /home/sdk

2. Prepare the SDK. (you may have to setup your own resolv.conf - I don't know whether it's needed or not, I did it anyway)
Code:

sudo chroot /home/sdk
mkdir /dev # needed for networking
exit
sudo closechroot /home/sdk

3. Add extras-devel, nokia-binaries, and the following repo to your chrooted sources.list

Code:

deb http://maemo.openrepos.net/marmistrz personal main
4. Install it

Code:

sudo chroot /home/sdk
apt-get update
apt-get install ocaml
chmod +x /usr/bin/ocaml* # see known bugs

5. Run it
Code:

sudo chroot none /home/sdk ocaml

marmistrz 2017-06-28 20:37

Re: [Announce] OCaml for N900
 
I finally uploaded the sources: https://github.com/marmistrz/ocaml-fremantle


All times are GMT. The time now is 22:33.

vBulletin® Version 3.8.8