Native GCC on the N810

I started out trying to install the rtcomm update that gives all kinds of new protocol support to the built in messaging app. I was having install problems even with red pill mode on. Then when poking around in the app manager I saw an entry for gcc. gcc? Oh my dear, how pimp would that be? Hell yea:

Native GCC

There’s gcc, g++, and dev header installs for all kinds of stuff. Why was I not informed of this earlier?

13 Responses to “Native GCC on the N810”

  1. tz1 Says:

    I saw that too - it appears the entire toolchain is there. It is one of the reasons I got a spare, in this case the n800 on sale plus a 16Gb SD card.

    I do far too much on my n810 to be without one or the other for even a few hours.

    But it would help if there was a meta-package that would install *everything*, the toolchain, automake/autoconf, libs, headers, etc.

    I built GCC for my old Zaurus. For some programs, ./configure won’t work properly for cross compiling, and although it was slow, it was much faster than trying to get ./configure working.

  2. Mark Sherman Says:

    I have a N800. The way it comes is not to useful. I am looking for compilers, something that can run csh, a way to run tcl/tk.

    I am new to the N800, have programmed for many years on unix and now currently working on Window XP. Any ideas how I can develope on Windows and the transfer to N800, or is there a better way. I don’t have a Unix machine now and the N800 is to small to do developement on.

    Thanks for any help.
    Mark Sherman

  3. KH Says:

    I’m unable to find this, can you please describe a bit more detailed where you’d find GCC?

    Thanks in advance,
    K

  4. Chris Says:

    Which version of the gcc is it?

  5. Antony Dovgal Says:

    gcc (GCC) 3.4.4 (release) (CodeSourcery ARM 2005q3-2)

  6. Denis Says:

    I also can not find gcc :( I see only gcc-3.4-base from apt-cache search but this is other package).
    Can you say what repository list do you have?

  7. Chris (gleemy) Says:

    Thanks for the heads up. I didn’t know the toolchain was available - it’s great not having to use scratchbox.

    First thing I did was install gcc and the SDL-dev. Then wrote a simple SDL app that rendered to every pixel on the screen. Super easy.

    Must resist spending too much time porting old code to the N800

  8. Paul Says:

    Very interested in gcc on the N810 as I have used it for years on Solaris. Could you let me know in in which repository you found it.

  9. Denis Says:

    It looks like a joke :( Nobody replied anything about repository.

  10. miker Says:

    Hey Denis,

    Heres my repos, no idea which one provides, make me proud and do at least a little something yourself and figure it out.

    deb http://catalogue.tableteer.nokia.com/certified/ chinook user
    deb http://catalogue.tableteer.nokia.com/non-certified/ chinook user
    deb http://catalogue.tableteer.nokia.com/updates/chinook/ ./
    deb http://repository.maemo.org/extras/ chinook free non-free
    deb http://repository.maemo.org chinook free non-free
    deb http://repository.maemo.org/extras chinook free non-free
    deb http://www.cobb.uk.net/apt/ chinook user
    deb http://maemo-hackers.org/apt/ chinook main
    deb http://mg.pov.lt/770 chinook user other
    deb http://www.fbreader.org/maemo chinook user
    deb http://www.claws-mail.org/maemo chinook user
    deb http://repository.maemo.org/extras-devel/ chinook free non-free
    deb http://browser-extras.garage.maemo.org/browser-extras/ chinook browser-extras

  11. Kevin Says:

    This worked. Just ssh to root@localhost.

    Then apt-get install gcc

    No problems.

  12. AlexM Says:

    I’m intrigued, but very confused…

    Somehow I’ve managed to get GCC on there, but in attempting to compile a helloworld.cpp, I find I’m missing cc1plus.

    If I try hello.c instead, it skips looking for cc1plus, but then it turns out I’m missing things like sdtio.h and iostream. Is there anything else I can install, must configure, or should sprinkle with the ashes of burnt offerings?

    My goal is to port lightweight SDL stuff to N810, but as you can see, I’m pretty lost, and running out of things to sacrifice. Any tips would be much appreciated.

  13. geijer Says:

    you need to install some development packages in order to compile;
    in particular libc6-dev and the kernel headers.

    to port SDL stuff you will also need the sdl development packages,
    try : apt-get install libsdl1.2-dev

    once you have all the proper headers installed under /usr/include
    it is quite straighforward to port any SDL piece of code,

Leave a Reply