maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   HOWTO: C/C++ compiling on the unit itself. (https://talk.maemo.org/showthread.php?t=6737)

gregrob 2009-01-21 14:58

Re: HOWTO: C/C++ compiling on the unit itself.
 
I did this today, and had to update all of the WGETs to reflect the latest OS. As well the install for G++ had to be done simultaneously with the libc++-dev. Here is what I did:

wget http://repository.maemo.org/pool/dia...sso8_armel.deb
wget http://repository.maemo.org/pool/dia...sso8_armel.deb
wget http://repository.maemo.org/pool/dia...sso8_armel.deb
wget http://repository.maemo.org/pool/dia...sso8_armel.deb
wget http://repository.maemo.org/pool/dia...sso8_armel.deb
wget http://repository.maemo.org/pool/dia...so10_armel.deb
wget http://repository.maemo.org/pool/dia...so10_armel.deb
wget http://repository.maemo.org/pool/mae...11-1_armel.deb
wget http://repository.maemo.org/pool/dia...sso1_armel.deb

dpkg -i binutils_2.16.91cs2005q3.2-5.osso1_armel.deb
dpkg -i linux-kernel-headers_2.6.16.osso11-1_armel.deb
dpkg -i libc6_2.5.0-1osso10_armel.deb
dpkg -i libc6-dev_2.5.0-1osso10_armel.deb
dpkg -i gcc-3.4_3.4.4cs2005q3.2-5.osso8_armel.deb
dpkg -i cpp-3.4_3.4.4cs2005q3.2-5.osso8_armel.deb
dpkg -i libstdc\+\+6_3.4.4cs2005q3.2-5.osso8_armel.deb
dpkg -i libstdc\+\+6-dev_3.4.4cs2005q3.2-5.osso8_armel.deb g++-3.4_3.4.4cs2005q3.2-5.osso8_armel.deb

apt-get -f install

apt-get install make

cd /usr/bin
ln -s g\+\+\-3.4 g\+\+

After this I also downloaded the source for grep-2.4 to replace the busybox grep. This helps compiling many other packages:
wget http://mirror.csclub.uwaterloo.ca/gn...rep-2.4.tar.gz
gunzip -dc grep-2.4.tar.gz | tar -xv
cd grep-2.4/
./configure
make
make install
rm /bin/grep
ln -s /usr/local/bin/grep /bin/grep

Nathan 2009-01-26 04:30

Re: HOWTO: C/C++ compiling on the unit itself.
 
Just one note; to get grep compiled I needed to use

./configure --host=arm-linux-gnueabi

It couldn't detect what platform it was on.
Also, you can also create links to egrep and fgrep as compiling this packages will give you all three egrep/fgrep/grep.

Nathan.
P.S. Is their some environmental variable I do need to set, so I do not have to use the --host, anyone know?

mrphamtruong-vietnam 2009-02-09 06:06

Re: HOWTO: C/C++ compiling on the unit itself.
 
please help me compiling this app:
http://code.google.com/p/scim-unikey/downloads/list
thanks!:)

nhanquy 2009-02-09 06:39

Re: HOWTO: C/C++ compiling on the unit itself.
 
Quote:

Originally Posted by mrphamtruong-vietnam (Post 263089)
please help me compiling this app:
http://code.google.com/p/scim-unikey/downloads/list
thanks!:)

It's not a simple task we have to port x86 to armel and that needs time and effort.

stacia 2009-02-17 00:29

Re: HOWTO: C/C++ compiling on the unit itself.
 
I'm getting this error :

http://www.internettablettalk.com/fo...ight=libc6-dev

Any ideas?

haokah 2009-02-21 16:07

Re: HOWTO: C/C++ compiling on the unit itself.
 
Looks like the lib6c version on the tablet isn't high enough for the program you want to use. You might want to try an older version of what you're wanting, as it probably has lower dependencies.

virusforu 2010-05-02 15:09

Re: HOWTO: C/C++ compiling on the unit itself.
 
where i can download gcc for C++,arm programming for my n900


All times are GMT. The time now is 20:13.

vBulletin® Version 3.8.8