Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    Porting compilers and interpreters to Maemo 5

    Reply
    antoarts | # 1 | 2011-03-13, 10:52 | Report

    For developers, the N900 is probably the greatest device, or at least so it is for me. I mean, what other device has a terminal window, Vim, a Python interpreter and the ability to chroot into Debian?

    While learning a new programming language, I have often been very happy to be able to try things out directly on my phone; when I don't have another computer available. There are still a lack of ports of some compilers and/or interpreters. The ones I am myself interested in include:
    • GCC (for C)
    • (MIT/GNU) Scheme
    • (GNU) Forth
    • Scala
    I would like to know what the interest for different compilers and interpreters are. Are anyone interested in porting some of these? I could probably try to port some myself as well.

    My questions are:
    • Are you interested in the ones listed above, and/or some others (which?)?
    • Are you willing to port some of them?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    Zas | # 2 | 2011-03-13, 11:07 | Report

    You can install gcc, g++, make etc. with apt-get.
    I sometimes code some c or c++ on the device so I install everything I need for that with "apt-get install minutils gcc g++ make build-essentials" aswell as sdl devel libs. Before compiling I just have to make sure I have enough space in temp "export TMPDIR=/home/user/MyDocs/tmp".

    I think there is a way to chroot into a development image, but I'm not sure plus with this I can get to coding fast and simple.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    antoarts | # 3 | 2011-03-13, 11:20 | Report

    Originally Posted by Zas View Post
    You can install gcc, g++, make etc. with apt-get.
    I sometimes code some c or c++ on the device so I install everything I need for that with "apt-get install minutils gcc g++ make build-essentials" aswell as sdl devel libs. Before compiling I just have to make sure I have enough space in temp "export TMPDIR=/home/user/MyDocs/tmp".

    I think there is a way to chroot into a development image, but I'm not sure plus with this I can get to coding fast and simple.
    I tried sudo apt-get install gcc, with updated repositories and extras-devel enabled, but it couldn't find the package. Which repository is it located in?

    Edit | Forward | Quote | Quick Reply | Thanks

     
    JadeH | # 4 | 2011-03-19, 20:58 | Report

    Maemo 5 does have a GCC package (and other related developpment packages like make), it's in the sdk repository

    Originally Posted by
    deb http://repository.maemo.org fremantle/sdk free non-free
    add this to sources.list or the Application Manager

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to JadeH For This Useful Post:
    Mentalist Traceur

     
    Mentalist Traceur | # 5 | 2011-03-19, 21:15 | Report

    There's also an SDK Tools repository,which you get to by replacing "sdk" in the above line with "tools", if I recall correctly.

    You can easily just install this stuff with apt-get, the problem is none of it is optified so it eats a healthy chunk of rootfs space. When I installed gcc and the like (before my last reflash, haven't gotten around to it since), I manually optified all the libs/binaries, but yeah. That part's a PITA.

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout