Active Topics

 


Reply
Thread Tools
Posts: 5,335 | Thanked: 8,187 times | Joined on Mar 2007 @ Pennsylvania, USA
#51
The thread "developing apps directly on the n900 with c" with three posts has been merged into this thread.
 

The Following User Says Thank You to sjgadsby For This Useful Post:
Posts: 126 | Thanked: 327 times | Joined on Nov 2009 @ Finland
#52
Originally Posted by alex94 View Post
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
sudo gainroot
chmod 777 test
./test

EDIT: chmod only needs to be done once.
 

The Following User Says Thank You to Lehto For This Useful Post:
Posts: 521 | Thanked: 296 times | Joined on Sep 2009
#53
How safe is this considered to be. Any issues with
- disk space with future firmwares
- overwriting any existing libraries thus causing incompatibilies/stability. I'm assuming its not just the gcc binary that gets downloaded, but a bunch of dependencies too
 
Posts: 13 | Thanked: 0 times | Joined on Feb 2010
#54
I got still the error permission denied :/
chmod seams to be corrupt.
 
Posts: 30 | Thanked: 16 times | Joined on Jan 2010 @ Berlin
#55
Originally Posted by alex94 View Post
I got still the error permission denied :/
chmod seams to be corrupt.
I assume you are working somewhere below the MyDocs directory. Go into /home/user and create there a new folder if you wish. The MyDocs folder is a vfat partition and does not allow executables. chmod will fail there because it's not a linux partition.
 

The Following 3 Users Say Thank You to endboss For This Useful Post:
Posts: 521 | Thanked: 296 times | Joined on Sep 2009
#56
to have only gcc, I edited sources.list and did apt-get install gcc

but it can't find stdio.h and I also get a link error of crt1.o no such file.

What other dependencies are needed? how much more is this going to bloat to?
 
Posts: 755 | Thanked: 406 times | Joined on Feb 2008 @ UK
#57
Originally Posted by bugelrex View Post
to have only gcc, I edited sources.list and did apt-get install gcc

but it can't find stdio.h and I also get a link error of crt1.o no such file.

What other dependencies are needed? how much more is this going to bloat to?
If you want a full development environment, probably quite a bit.

I run an SDK in a chroot. Qole is hosting an image here.
You can install the easy-chroot scripts and run it without having to worry about bloating your rootfs or installing things on the device that might cause problems with busybox.
 

The Following 2 Users Say Thank You to codeMonkey For This Useful Post:
DaveR53's Avatar
Posts: 41 | Thanked: 15 times | Joined on Oct 2009 @ UK
#58
This is awesome, just got it set up on my n900. Good work chaps/chapettes! Just compiled my own small game directly on the phone.
 
Posts: 5 | Thanked: 0 times | Joined on Dec 2009
#59
Originally Posted by codeMonkey View Post
I run an SDK in a chroot. Qole is hosting an image here.
You can install the easy-chroot scripts and run it without having to worry about bloating your rootfs or installing things on the device that might cause problems with busybox.
A few questions. Assume I have an empty MicroSDHC card, should I prepare it with ext3 as told earlier in this thread and then somehow mount the above ext2 image on it or? Could you give some short guidelines how you mount the image on the card so that the development can be made there and which easy-chroot scripts you then run to use it?

Thanks for any help!
 
DaveR53's Avatar
Posts: 41 | Thanked: 15 times | Joined on Oct 2009 @ UK
#60
I just followed this... http://talk.maemo.org/showpost.php?p...5&postcount=19 works a treat
 

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

Tags
c compiler, c language, c programming, c++ compiler, c++ language, c++ programming, compile, compiler, development, maemo, on-device, on-device development, on-device programming, programming


 
Forum Jump


All times are GMT. The time now is 23:11.