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. |
Re: gcc compiler on N9?
apt-get install build-essential
|
Re: gcc compiler on N9?
"E: Couldn't find package build-essential"
|
Re: gcc compiler on N9?
gives me several dependency errors. should I try to install those on my own one by one?
|
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. |
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 |
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 :) |
Re: gcc compiler on N9?
Quote:
|
Re: gcc compiler on N9?
well, here you go:
Code:
The following packages have unmet dependencies: Code:
The following packages have unmet dependencies: EDIT: On the other hand I might just build a deb file from the source. Any qick link to how this is done best? |
Re: gcc compiler on N9?
It *might* be worth it to use a chroot to ensure dependencies don't get bungled up.
|
Re: gcc compiler on N9?
I succeded with that and build-essention is up and running. Anyway when I try to compile using make, is get
Code:
|
Re: gcc compiler on N9?
My guess would be Aegis... did you try running make as root?
|
Re: gcc compiler on N9?
yes, I logged in as root (via ssh).
|
Re: gcc compiler on N9?
Shouldn't have to log in as root. In fact, if you uncompressed an archive as user and try to make as root, it will return permission denied since the directory is owned by user.
|
Re: gcc compiler on N9?
With PR1.2 of Nokia N9 :
- gcc/g++ were removed; - I can't reinstall then by using "apt-get install build-essential" ou "apt-get install gcc g++", etc. There are dependencies problems between Harmattan SDK beta 3 and MeeGo 1.2 Harmattan PR1.2. I think we need to wait the release of Harmattan SDK beta 4 repository... |
Re: gcc compiler on N9?
Quote:
|
Re: gcc compiler on N9?
Quote:
|
Re: gcc compiler on N9?
Quote:
Even with the stable Harmattan SDK (released today or yesterday), in : http://harmattan-dev.nokia.com/pool/harmattan/ the dependencies problem remains to install gcc/g++ to Nokia N9 with PR1.2 (on PR1.1 it was trivial, just "apt-get install build-essential"). So, I have downloaded some .debs from the Harmattan SDK : - binutils - libc6-dev - libc-dev-bin - linux-kernel-headers - libgmp3c2 - libmpfr1ldbl - cpp-4.4 - gcc-4.4-base - gcc-4.4-locales - gcc-4.4 - fixincludes - libgcc1 - libgomp1 - libstdc++6 - libstdc++6-4.4-dev - g++-4.4 - cpp - gcc - g++ - make and installed them (in the order above) with "dpkg -i" as root. Worse, two of them, "libc6-dev" and "libstdc++6-4.4-dev" needs "dpkg -i --force-all" to install. The Harmattan SDK gcc-4.4 folder also has debs for docs, gfortran, etc, which can be installed. Important : the Harmattan SDK should not be enabled, i.e., the "/etc/apt/sources.list" file should be removed, then "# apt-get update" so we can use "dpkg -i" without aegis errors. Last hint : to run ".o" object files compiled by gcc/g++, use inception & opensh. |
Re: gcc compiler on N9?
hello
i did that but i can't execute make ? sh: make: not found apt-get install binutils dpkg -i --force-all libc6-dev_2.10-0maemo18.1\+0m6_armel.deb dpkg -i libc-dev-bin_2.10-0maemo18.1\+0m6_armel.deb dpkg -i linux-kernel-headers_2.6.32-20112910\+0m6_armel.deb dpkg -i libmpfr1ldbl_2.4.1-0maemo4+0m6_armel.deb dpkg -i fixincludes_4.4.1-0maemo14\+0m6_armel.deb dpkg -i cpp-4.4_4.4.1-0maemo14\+0m6_armel.deb dpkg -i gcc-4.4-base_4.4.1-0maemo14\+0m6_armel.deb dpkg -i gcc-4.4-locales_4.4.1-0maemo14\+0m6_all.deb dpkg -i libgomp1_4.4.1-0maemo14\+0m6_armel.deb dpkg -i gcc-4.4_4.4.1-0maemo14+0m6_armel.deb dpkg -i libstdc\+\+6_4.4.1-0maemo14\+0m6_armel.deb dpkg -i g++-4.4_4.4.1-0maemo14\+0m6_armel.deb dpkg -i --force-all libstdc++6-4.4-dev_4.4.1-0maemo14\+0m6_armel.deb |
Re: gcc compiler on N9?
Quote:
How to find it : enable Harmattan SDK, then "apt-cache show libmpfr1ldbl", the result has the line : Filename: pool/harmattan/free/m/mpfr/libmpfr1ldbl_2.4.1-0maemo4+0m6_armel.deb So, go to the Harmattan SDK repository site. |
Re: gcc compiler on N9?
Quote:
apt-get install binutils dpkg -i --force-all libc6-dev_2.10-0maemo18.1\+0m6_armel.deb dpkg -i libc-dev-bin_2.10-0maemo18.1\+0m6_armel.deb dpkg -i linux-kernel-headers_2.6.32-20112910\+0m6_armel.deb dpkg -i libmpfr1ldbl_2.4.1-0maemo4+0m6_armel.deb dpkg -i fixincludes_4.4.1-0maemo14\+0m6_armel.deb dpkg -i cpp-4.4_4.4.1-0maemo14\+0m6_armel.deb dpkg -i gcc-4.4-base_4.4.1-0maemo14\+0m6_armel.deb dpkg -i gcc-4.4-locales_4.4.1-0maemo14\+0m6_all.deb dpkg -i libgomp1_4.4.1-0maemo14\+0m6_armel.deb dpkg -i gcc-4.4_4.4.1-0maemo14+0m6_armel.deb dpkg -i libstdc\+\+6_4.4.1-0maemo14\+0m6_armel.deb dpkg -i g++-4.4_4.4.1-0maemo14\+0m6_armel.deb dpkg -i --force-all libstdc++6-4.4-dev_4.4.1-0maemo14\+0m6_armel.deb |
Re: gcc compiler on N9?
Quote:
|
Re: gcc compiler on N9?
Quote:
and the solution was : ln -s /usr/bin/gcc-4.4 /usr/bin/gcc Code:
~/compile/lame-3.99 $ ./configure |
Re: gcc compiler on N9?
Do you know, how can i make deb after the compilation ?
|
Re: gcc compiler on N9?
Quote:
|
Re: gcc compiler on N9?
Quote:
|
Re: gcc compiler on N9?
am having an issue in that the i've incepted properly, make works fine, but ./configure doesn't and provides an permission denied have i missed something?
|
Re: gcc compiler on N9?
Quote:
|
Re: gcc compiler on N9?
seems i didn't own the file so it was causing an error
|
Re: gcc compiler on N9?
I got gcc to work -- at least for small programs.
The /tmp on the device is too small though for anything of size. The normal way to address this to set the environment variable TMPDIR to point to a larger directory. But this doesn't work. Has anybody else seen this problem? thanks Alan |
Re: gcc compiler on N9?
hello i have the same problem did you find a solution ?
|
Re: gcc compiler on N9?
Quote:
|
Re: gcc compiler on N9?
i use a slackbuild script with this line
CWD=$(pwd) TMP=${TMP:-/root/tmp/mypacket} PKG=$TMP/package-mpd OUTPUT=${OUTPUT:-/root/tmp} my problem now is this one checking for GLIB... configure: error: GLib 2.12 is required |
Re: gcc compiler on N9?
Quote:
I was trying to run the above commands, couldn't succeed as I am getting the following error for # apt-get update Code:
# apt-get update |
Re: gcc compiler on N9?
Quote:
But to get gcc/g++ on (Harmattan) device : - until PR1.1 (for Nokia N9) trivial, just "# apt-get install build-essential"; - the post #18 doesn't work anymore for PR1.3 ! It was ok for PR1.2; - now on PR1.3, I've only succeeded by chrooting a Harmattan SDK image... I'll give more details on how-to-do it easily later today. |
Re: gcc compiler on N9?
Quote:
Quote:
|
Re: gcc compiler on N9?
Quote:
About my comment "I'll give more details on how-to-do it easily later today" : - I am late because very busy with packaging and documenting Easy Debian Harmattan; - a simple solution to have gcc/g++ on N9/N950 is chrooting a Maemo or Harmattan SDK image, by using Easy Chroot for Harmattan. I will post a topic about this solution, citing ready-to-use images. |
Re: gcc compiler on N9?
Quote:
|
Re: gcc compiler on N9?
As promised, new topic about "Compiling & packaging on MeeGo Harmattan device", listing many ways to compile (with gcc/g++, etc) & package softwares on MeeGo Harmattan devices.
|
All times are GMT. The time now is 05:14. |
vBulletin® Version 3.8.8