View Single Post
Posts: 12 | Thanked: 21 times | Joined on Aug 2010 @ Alger
#12
Hello
I actualy compile every program on device. It's very easy .

add testing, devel, sdk and tools to your sources
Code:
echo "deb http://repository.maemo.org/extras-testing fremantle free non-free">>/etc/apt/sources.list
echo "deb http://repository.maemo.org/extras-devel fremantle free non-free">>/etc/apt/sources.list
echo "deb http://repository.maemo.org fremantle/sdk free non-free">>/etc/apt/sources.list
echo "deb http://repository.maemo.org fremantle/tools free non-free">>/etc/apt/sources.list
Edit : You need to add nokia-binaries repository too. I don't want to show an easy copy and paste here as I had to register and you probably need to. If you don't know how to or don't want to add it, just remove the packages on the list that are making error.

now install gcc, g++ and some useful development libraries
Code:
apt-get update
apt-get install dpkg-dev make gcc g++ libsdl1.2-dev libgles1-sgx-img-dev libgles2-sgx-img-dev libsdl-gles1.2-dev libwxgtk2.8-dev
now you should be able to compile your first c program
Code:
echo "#include <stdio.h>">main.c
echo "int main(int argc,char *argv[]){printf(\"hello world\");return 0;}">>main.c
gcc -o hello main.c
./hello
edit and extend main.c

Last edited by brahim98; 2011-11-19 at 21:00.
 

The Following 6 Users Say Thank You to brahim98 For This Useful Post: