Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    cpp compiler on n900

    Reply
    dingo | # 1 | 2010-08-14, 18:28 | Report

    Hi,
    I am a python developer and I want to start developing some cpp programs so I'm looking for a cpp compiler or an IDE that runs on the n900 itself. However there isn't any cpp compiler in the maemo repositorys (I tried searching for gcc...).
    So if someone know a cpp or an IDE compiler that can run on the n900 (maemo or easy debian) please tell me.

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by dingo; 2010-08-14 at 18:42.

     
    tpaixao | # 2 | 2010-08-14, 19:05 | Report

    Originally Posted by dingo View Post
    Hi,
    I am a python developer and I want to start developing some cpp programs so I'm looking for a cpp compiler or an IDE that runs on the n900 itself. However there isn't any cpp compiler in the maemo repositorys (I tried searching for gcc...).
    So if someone know a cpp or an IDE compiler that can run on the n900 (maemo or easy debian) please tell me.
    The problem is that the root partition on the N900 is too small for all the development tools needed. You'd have to do something like this, which is really not for the faint of heart. Why don't you install Nokia's SDK on your computer, and start out using MADDE? it works really well.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    daperl | # 3 | 2010-08-14, 19:53 | Report

    I build, not just compile, Maemo 5 and debian packages on my device all the time.

    If you think you're up to it, and you want a full SDK on your device, do the following:

    WARNING: This is an advanced topic. Use at your own risk.

    Code:
    apt-get install easy-chroot lzma
    wget http://qole.org/files/maemo-sdk-v1_2.img.ext2.lzma
    Click on the link in my sig and substitute:

    Code:
    lzma -d maemo-sdk-v1_2.img.ext2.lzma
    for the line:

    Code:
    7z e maemo-sdk-v1_2.img.ext2.lzma
    If you're having problems, read and reread the thread from my sig link.

    Good luck!

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 3 Users Say Thank You to daperl For This Useful Post:
    dingo, gionni88, nicolai

     
    dingo | # 4 | 2010-08-14, 20:05 | Report

    daperl: I tried and it works. Tanks!
    btw, can gcc compile c++ in addition to c?

    edit: figured, with g++

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by dingo; 2010-08-14 at 20:24.

     
    daperl | # 5 | 2010-08-14, 20:20 | Report

    Originally Posted by dingo View Post
    daperl: I tried and it works. Tanks!
    btw, can gcc compile c++ in addition to c?
    g++ is the name of the c++ compiler.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to daperl For This Useful Post:
    dingo

     
    wicket | # 6 | 2010-08-17, 12:33 | Report

    Hi,

    I've recently been experimenting with building under Easy Debian. It's great because if I'm missing a dependent development library I can easily run "apt-get install" to install them. The binaries appear to run perfectly under native Maemo providing I also copy across any dependent libraries identified by ldd.

    Ultimately I may have a go at packaging something up to go into Extra-devel. Can someone tell me if I am missing anything significant by not using the Maemo SDK? Would I be better off to install it?

    wicket

    Edit | Forward | Quote | Quick Reply | Thanks

     
    clasificado | # 7 | 2010-08-18, 04:12 | Report

    not really, if you know what you are doing

    at last, if you need to compile something really big like the kernel, or mono-project, you will need your desktop pc, so then you may need all that

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to clasificado For This Useful Post:
    wicket

     
    timoph | # 8 | 2010-08-18, 04:27 | Report

    I played around with an idea of turning the device into a build server some time ago

    Basically I just removed everything I didn't need, enabled SDK repos in the device and installed what I needed. Easy and it works. Problems are rootfs space and speed. I compiled git in the device just to try that it's possible but didn't do much else with the setup. It's a pretty useless setup anyway

    Edit | Forward | Quote | Quick Reply | Thanks

     
vBulletin® Version 3.8.8
Normal Logout