|
Page 5 of 9 |
|
Prev |
3 4 5
6 7
|
Next
| Last
Re: C/C++ program for n900
Quote:
|
Re: C/C++ program for n900
Quote:
Maybe choose a Class 6 from this page. I recently purchased this one. Then: Turn off Insert microSD card in n900 Turn on And as root in an xterminal, type the following: WARNING: Same as above sfdisk /dev/mmcblk1 << EOS ,100,b*** ,3900,L ,,L EOS # be patient and wait for the prompt to come back mkfs.vfat /dev/mmcblk1p1 mkfs.ext3 /dev/mmcblk1p2 mkfs.ext3 /dev/mmcblk1p3 mkdir -p /mnt/mmc12 mount -t ext3 -o noatime,data=writeback /dev/mmcblk1p2 /mnt/mmc12 mount / /floppy cp -a /floppy /mnt/mmc12/.chroot # Be even more patient The next step would be either the big post above (with a tiny list of other things) or a debian installer to be named later :eek:. Quote:
apt-get install build essential Then you should be able to: gcc mybiitchinapp.c -o mybiitchinapp ***This has a side effect (possibly bad) of letting certain programs think this vfat area is an archive space. I left it in because I think it makes booting from an SD card less painful (if one were to decide to go that route), but don't quote me on that. |
Re: C/C++ program for n900
Ok, I managed to have a nice SDK partition, here some hints:
* mmcblk1p1 (or another sd partition) formatted and mounted on /sdk * extract maemo-sdk-rootstrap_5.0_armel.tgz to /sdk * create dev and mount it from real dev with mount -o bind * mount /sdk/dev/pts, /sdk/proc and /sdk/sys properly (not sure about the last two, the first is necessary to avoid apt-get errors) * add to /etc/apt/sources.list the line: Code:
deb http://repository.maemo.org/ fremantle/xxxxx nokia-binariesThat's all, I just checked out a my qt4 project and compiled with: * chroot /sdk * apt-get update * apt-get install libqt4-dev * cd blah * qmake * make Please test and elaborate the above instruction, and provide further hints to have all automounted and working at device boot :) Regards Niko |
Re: C/C++ program for n900
Quote:
I would be very grateful if you could kindly elaborate each step and kinda make it step by step guide for biginners/average users. I have managed to install build-essential and gtk+ on the device itself and looking to finally get the maemo sdk and figured out, from what I saw here, is quite a bit of work for average user like me. Also agreed that its good to have it separately from the OS. Thank you. P.S However isn't it possible to just install the packages required to compile hildon applications. thanks |
developing apps directly on the n900 with c
hello everyone,
is there a way i can compile and and develop directly on the n900? ive tried to apt-get install gcc g++ but it tells me there is no installable candidate.. can anyone point me in the right direction? |
Re: developing apps directly on the n900 with c
I don't believe that a compiler has been ported yet
|
Re: developing apps directly on the n900 with c
See this thread which seems to have covered the same question.
|
Re: C/C++ program for n900
Quote:
I tried this but it doesn't work: $ sudo gainroot $ apt-get install gcc Thanks |
Re: C/C++ program for n900
Quote:
Edit /etc/apt/sources.list and add the following line to it: deb http://repository.maemo.org fremantle/sdk free non-free The fastest way to accomplish this is like this: echo "deb http://repository.maemo.org fremantle/sdk free non-free" >> /etc/apt/sources.list Afterwards type apt-get update. Now the installation should work. |
Re: C/C++ program for n900
Thanks enboss gcc is now on my machine.
I can compile C files, but how can i execute them? I tried: $ sudo gainroot $ ./test Error is: Permission denied So i tried: $ sudo ./test but this doesn't work too :( |
| All times are GMT. The time now is 08:42. |
Page 5 of 9 |
|
Prev |
3 4 5
6 7
|
Next
| Last
vBulletin® Version 3.8.8