Active Topics

 


Reply
Thread Tools
anapospastos's Avatar
Posts: 552 | Thanked: 183 times | Joined on Oct 2009 @ Not decided
#1
I saw that for previous versions of maemo there is a C/C++ application. Can we have it for maemo 5? I am a student and it's very cool to write and run my exercises on n900
 

The Following 2 Users Say Thank You to anapospastos For This Useful Post:
hopbeat's Avatar
Posts: 516 | Thanked: 643 times | Joined on Oct 2009 @ Denmark/Poland
#2
Do you mean C/C++ compiler on Maemo?
__________________
Hi! I'm a Maemo Greeter!
Witaj na talk.maemo.org!

Useful links for newcomers:
Użyteczne linki:
Nowi użyktownicy mówią cześć | New members say hello , Tu zaczynają nowi użytkownicy | New users start here, Podforum społeczności | Community subforum, Wiki dla początkujących | Beginners' wiki page, Maemo5 101, Często zadawane pytania | Frequently Asked Questions (FAQ), Google

Jeżeli mogę w czymś pomóc, pytaj!
If I can help with anything else, just ask!

Bored? Follow me
 

The Following User Says Thank You to hopbeat For This Useful Post:
anapospastos's Avatar
Posts: 552 | Thanked: 183 times | Joined on Oct 2009 @ Not decided
#3
Originally Posted by hopbeat View Post
Do you mean C/C++ compiler on Maemo?
yeah write compile and run. I ve seen this but i dont think it wiil work on n900
 

The Following User Says Thank You to anapospastos For This Useful Post:
Posts: 631 | Thanked: 837 times | Joined on May 2007 @ Milton, Ontario, Canada
#4
Originally Posted by anapospastos View Post
yeah write compile and run. I ve seen this but i dont think it wiil work on n900
Isn't gcc/automake/etc already available in the SDK repository?...
 

The Following User Says Thank You to jolouis For This Useful Post:
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#5
Yes, these are in the SDK repository (see for example http://maemo.org/packages/view/gcc-4.2). Can the SDK repository be used on a real device, and if so, is it safe, or is it risky like enabling extras-devel?
 

The Following 3 Users Say Thank You to pelago For This Useful Post:
anapospastos's Avatar
Posts: 552 | Thanked: 183 times | Joined on Oct 2009 @ Not decided
#6
Originally Posted by pelago View Post
Yes, these are in the SDK repository (see for example http://maemo.org/packages/view/gcc-4.2). Can the SDK repository be used on a real device, and if so, is it safe, or is it risky like enabling extras-devel?
any reply on this???
 

The Following User Says Thank You to anapospastos For This Useful Post:
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#7
I've had the sdk repository enabled on my n800 for quite a while - I've had no problems. YMMV
 

The Following User Says Thank You to codeMonkey For This Useful Post:
pycage's Avatar
Posts: 3,404 | Thanked: 4,474 times | Joined on Oct 2005 @ Germany
#8
You can enable extras-devel or the SDK repo but you must not apt-get upgrade with these repos enabled. Just for installing gcc it should be safe.

Anyway, do this only if you know how to reflash a broken device.
__________________
Tidings - RSS and Podcast aggregator for Jolla - https://github.com/pycage/tidings
Cargo Dock - file/cloud manager for Jolla - https://github.com/pycage/cargodock
 

The Following 2 Users Say Thank You to pycage For This Useful Post:
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#9
yes, but on a default n900 its won't work without some cleaning (for the reason see optification)
follow pycages advice, do not do this if you don't know how to cure any problems.

that out of the way,

i generally add the repo
deb http://repository.maemo.org fremantle/sdk free non-free

then
apt-get update
apt-get install build-essential

then remove the repo again and apt-get update once again.

as I say, it will fail because its large, but its the full set of things required for on device compilation

The following extra packages will be installed:
binutils bzip2 cpio cpp cpp-4.2 dpkg-dev g++ g++-4.2 gcc gcc-4.2 gcc-4.2-base libc6 libc6-dev libgcc1 libgomp1 libstdc++6 libstdc++6-4.2-dev
libtimedate-perl linux-kernel-headers make patch perl perl-modules


note, this doesnt bring in autotools or dpkg
so no ./configure stage works, and no dpkg-buildpackage will run.
(normal make files and find an alternative for packaging)

if you don't need them and can work with makefiles its certainly usable and fast.
if you need -dev headers for libraries, expect even more space, I find nowadays I can get by mostly with libliqbase-dev

hth
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 

The Following 15 Users Say Thank You to lcuk For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#10
Also, the most important thing for a big build (at least on the n8x0's using Easy Debian) is to set your tmp dir to storage, not memory. For example:

mkdir /bigpartition/tmp
export TMPDIR=/bigpartition/tmp
fakeroot dpkg-buildpackage ...
__________________
N9: Go white or go home
 

The Following 2 Users Say Thank You to daperl For This Useful Post:
Reply

Tags
c compiler, c language, c programming, c++ compiler, c++ language, c++ programming, compile, compiler, development, maemo, on-device, on-device development, on-device programming, programming


 
Forum Jump


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