Notices


Reply
Thread Tools
Posts: 3,230 | Thanked: 4,116 times | Joined on May 2011 @ Poland
#1
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
__________________
If you want to support my work, you can donate by PayPal or Flattr

Current project:
Porting SailfishOS onto OnePlus 3

Projects no longer actively developed: here

Last edited by marmistrz; 2015-10-19 at 17:55.
 

The Following 9 Users Say Thank You to marmistrz For This Useful Post:
Posts: 3,230 | Thanked: 4,116 times | Joined on May 2011 @ Poland
#2
I finally uploaded the sources: https://github.com/marmistrz/ocaml-fremantle
__________________
If you want to support my work, you can donate by PayPal or Flattr

Current project:
Porting SailfishOS onto OnePlus 3

Projects no longer actively developed: here
 

The Following 6 Users Say Thank You to marmistrz For This Useful Post:
Reply

Tags
maemo 5, ocaml

Thread Tools

 
Forum Jump


All times are GMT. The time now is 17:04.