Reply
Thread Tools
Posts: 161 | Thanked: 85 times | Joined on Feb 2010
#1
Hi guys, I've an application in C that I would like to port on my n900. can anyone help me?
I suppose I just have to compile it with "armel" target, but is not trivial. I've searched the forums but the source I've has not the makefiles. I'm kind of lost...

Last edited by erniadeldesktop; 2010-06-28 at 15:53.
 
Posts: 38 | Thanked: 18 times | Joined on Apr 2010
#2
Copy your source files on the n900, install gcc (many ways... for me installing g++ from the sdk repos) then link, build and compile straight from the n900 xterm!
 

The Following User Says Thank You to deed For This Useful Post:
Posts: 222 | Thanked: 205 times | Joined on Jul 2009 @ Finland
#3
Originally Posted by erniadeldesktop View Post
Hi guys, I've an application in C that I would like to port on my n900. can anyone help me?
I suppose I just have to compile it with "armel" target, but is not trivial. I've searched the forums but the source I've has not the makefiles. I'm kind of lost...
Try Nokia Qt SDK. You can use it to build command line programs as well. Just create a new project and add your source files there.
__________________
'QtDone'. Getting things done (GTD) was never this cheap!

'QmlReddit' reads Reddit!
 

The Following User Says Thank You to vivainio For This Useful Post:
Posts: 161 | Thanked: 85 times | Joined on Feb 2010
#4
@deed: I was trying but i can't find it in the repositories, and i don't know the sdk one. could you give me the apt sources.list line?
@vivainio: just installed, I will try asap... but for what I see is c++ instead of c... and of course i get tons of errors.. I'm missing some option to compile c?

Last edited by erniadeldesktop; 2010-06-28 at 05:46.
 
jaeezzy's Avatar
Posts: 664 | Thanked: 160 times | Joined on Jul 2008 @ Australia
#5
Originally Posted by erniadeldesktop View Post
@deed: I was trying but i can't find it in the repositories, and i don't know the sdk one. could you give me the apt sources.list line?
deb http://repository.maemo.org/ fremantle/sdk free non-free
deb http://repository.maemo.org/ fremantle/tools free non-free
 

The Following User Says Thank You to jaeezzy For This Useful Post:
Posts: 161 | Thanked: 85 times | Joined on Feb 2010
#6
Originally Posted by jaeezzy View Post
deb http://repository.maemo.org/ fremantle/sdk free non-free
deb http://repository.maemo.org/ fremantle/tools free non-free
404 not found...

edit: lol ... I wrote frEEmantle

Last edited by erniadeldesktop; 2010-06-28 at 06:29.
 
Posts: 222 | Thanked: 205 times | Joined on Jul 2009 @ Finland
#7
Originally Posted by erniadeldesktop View Post
@vivainio: just installed, I will try asap... but for what I see is c++ instead of c... and of course i get tons of errors.. I'm missing some option to compile c?
C++ compilers can compile almost all C code with no problems, or with little modifications.
__________________
'QtDone'. Getting things done (GTD) was never this cheap!

'QmlReddit' reads Reddit!
 
pelago's Avatar
Posts: 2,121 | Thanked: 1,540 times | Joined on Mar 2008 @ Oxford, UK
#8
See the following thread for some things to be aware of when using the SDK repo on the device itself: http://talk.maemo.org/showthread.php?t=34412
 

The Following 2 Users Say Thank You to pelago For This Useful Post:
Posts: 161 | Thanked: 85 times | Joined on Feb 2010
#9
ok.. i've managed to install build-essentials, and compiled. but now i've some weird issue for running the file: no way to run it. sh, bash myprog, even ./myprog fails. and the weirdest part is that chmod +x or chmod 777, even sudo chmod 777 doesnt work. (as well as chown) ... this is gross... I've also tried from the laptop via mass-storage...
Is driving me nuts...
 
Posts: 222 | Thanked: 205 times | Joined on Jul 2009 @ Finland
#10
Originally Posted by erniadeldesktop View Post
even ./myprog fails. and the weirdest part is that chmod +x or chmod 777, even sudo chmod 777 doesnt work. (as well as chown) ... this is gross... I've also tried from the laptop via mass-storage...
Is driving me nuts...
Check your directory. Under ~/MyDocs, you can't +x a file, but in ~/ you can.

Still, this messing about is insane when you could just use Nokia Qt SDK.
__________________
'QtDone'. Getting things done (GTD) was never this cheap!

'QmlReddit' reads Reddit!
 

The Following User Says Thank You to vivainio For This Useful Post:
Reply

Thread Tools

 
Forum Jump


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