maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   newbie:how to compile app for n900? (https://talk.maemo.org/showthread.php?t=72313)

droll 2011-04-19 08:20

newbie:how to compile app for n900?
 
hi folks. i'm trying to setup a development environment on ubuntu. i've got a base ubuntu installation set up.

now i'm trying to figure out how to compile an app for ubuntu. i downloaded the source code for one app (yes, the app runs on the n900) to test. the app is written in C.

my thinking: since the n900 is ARM based and most gcc compilers do x86 compilation, is there anything else i need to setup on ubuntu?

droll 2011-04-19 08:22

Re: newbie:how to compile app for n900?
 
or do i just run make on the MAKEFILE and it will work its magic?

sorry for the newbie question...

nicolai 2011-04-19 08:24

Re: newbie:how to compile app for n900?
 
No magic, you need to cross compile your application for arm.
The "easiest" way is to setup a whole crosscompiling envirionment.
For programming in c, scratchbox is the way to go:
http://wiki.maemo.org/Documentation/...eveloper_Guide

droll 2011-04-19 08:46

Re: newbie:how to compile app for n900?
 
thank you. i'll take a look at those links.

pradeep 2011-04-19 09:49

Re: newbie:how to compile app for n900?
 
here is the link of the project https://projects.forum.nokia.com/compass
if you download compass_v0_9.zip and execute it using qt creator then it gives errors? Do you have any answer for this?

laasonen 2011-04-19 11:54

Re: newbie:how to compile app for n900?
 
Quote:

Originally Posted by pradeep (Post 991675)
here is the link of the project https://projects.forum.nokia.com/compass
if you download compass_v0_9.zip and execute it using qt creator then it gives errors? Do you have any answer for this?

What errors?

pradeep 2011-04-19 11:57

Re: newbie:how to compile app for n900?
 
such as "/src/compass-build-desktop/../compass/mainwindow.h:9: error: QGeoPositionInfo: No such file or directory"

I have included the following #include <QGeoPositionInfo> but it is not recognized by the system

uvatbc 2011-04-19 15:50

Re: newbie:how to compile app for n900?
 
Quote:

Originally Posted by pradeep (Post 991743)
such as "/src/compass-build-desktop/../compass/mainwindow.h:9: error: QGeoPositionInfo: No such file or directory"

I have included the following #include <QGeoPositionInfo> but it is not recognized by the system

Please don't cross post. I've answered your question on your original thread.


All times are GMT. The time now is 16:01.

vBulletin® Version 3.8.8