maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   gcc compiler on N9? (https://talk.maemo.org/showthread.php?t=82148)

mariusmssj 2012-02-06 22:53

gcc compiler on N9?
 
Hey guys,
i wanted to know if it's possible to get the gcc compiler? I got some c code i would like to try out. And for it to work i need a gcc compiler.

TheStatsMan 2012-02-07 02:14

Re: gcc compiler on N9?
 
apt-get install build-essential

mariusmssj 2012-02-07 08:08

Re: gcc compiler on N9?
 
"E: Couldn't find package build-essential"

derliebewolf 2012-02-07 10:51

Re: gcc compiler on N9?
 
gives me several dependency errors. should I try to install those on my own one by one?

TheStatsMan 2012-02-07 13:12

Re: gcc compiler on N9?
 
That is how I installed it on mine I thought. It still certainly comes up when I search for it using apt-cache. Try adding the extra repositories using n9 tweak perhaps then
apt-get update
Then try to install again.

rcolistete 2012-02-07 14:26

Re: gcc compiler on N9?
 
Now I am not with my N9 to test.

But i think gcc needs the Harmattan-dev Nokia repository, so install :
http://harmattan-dev.nokia.com/pool/harmattan-beta3/free/h/harmattan-repository/harmattan-repository_0.4+0m6_all.deb
to enable this repository (if not enable before).

Then, as root (after 'devel-su' and 'rootme' as password) :
# apt-get update
# apt-get build-essential

derliebewolf 2012-02-07 14:30

Re: gcc compiler on N9?
 
thanks. I think that repo is allready enabled on my device.

The dependency error I was talking of basically says "Package xyz is needed but should not be installed". I gues I try to install all those packages manually via ssh later today and see what's happening :)

rcolistete 2012-02-07 16:07

Re: gcc compiler on N9?
 
Quote:

Originally Posted by derliebewolf (Post 1161697)
thanks. I think that repo is allready enabled on my device.

The dependency error I was talking of basically says "Package xyz is needed but should not be installed". I gues I try to install all those packages manually via ssh later today and see what's happening :)

Could you copy & paste the message ?

derliebewolf 2012-02-07 21:21

Re: gcc compiler on N9?
 
well, here you go:

Code:

The following packages have unmet dependencies:
build-essential: Depends: libc6-dev but it is not going to be installed or libc-dev
Depends: g++ (>= 3:3.3) but it is not going to be installed
Depends: dpkg-dev (>= 1.4.1.19) but it is not going to be installed
E: Broken packages

If go on in the process and try to apt-get install libc6-dev a similar message appears:

Code:

The following packages have unmet dependencies:
libc6-dev: Depends: libc6 (= 2.5.0-1osso10) but 2.10-0maemo18.1+0m6 is to be installed
E: Broken packages

I think I could go on for a little while now...

EDIT: On the other hand I might just build a deb file from the source. Any qick link to how this is done best?

hawaii 2012-02-08 16:00

Re: gcc compiler on N9?
 
It *might* be worth it to use a chroot to ensure dependencies don't get bungled up.


All times are GMT. The time now is 12:29.

vBulletin® Version 3.8.8