|
|
2010-03-29
, 17:33
|
|
|
Posts: 63 |
Thanked: 41 times |
Joined on Feb 2010
@ Moscow
|
#2
|
| The Following User Says Thank You to slobodsky For This Useful Post: | ||
|
|
2010-03-29
, 17:38
|
|
Posts: 36 |
Thanked: 13 times |
Joined on Dec 2009
@ Bandung, Indonesia
|
#3
|
|
|
2010-03-29
, 17:52
|
|
|
Posts: 390 |
Thanked: 1,332 times |
Joined on Dec 2009
|
#4
|
So that means ARMEL target is only usable for compiling apps, and X86 is only usable for running apps?
|
|
2010-03-29
, 18:24
|
|
Posts: 36 |
Thanked: 13 times |
Joined on Dec 2009
@ Bandung, Indonesia
|
#5
|
Basically, yes.
The link you've posted above contains links to forum.nokia.com, where interested soon-to-be-developers can find a lengthy but nice flash-tutorial about installing the SDK and the basics of using it, it might actually answer most of your questions.
direct link: http://www.forum.nokia.com/document/..._with_Maemo_5/ (beware, has sound)
(I hope soon file managers/desktop environments have a feature to easily mark & find important files etc.)|
|
2010-03-29
, 18:42
|
|
|
Posts: 63 |
Thanked: 41 times |
Joined on Feb 2010
@ Moscow
|
#6
|
So that means ARMEL target is only usable for compiling apps, and X86 is only usable for running apps?
| The Following User Says Thank You to slobodsky For This Useful Post: | ||
|
|
2010-03-31
, 04:11
|
|
Posts: 15 |
Thanked: 3 times |
Joined on Jan 2010
|
#7
|
|
|
2010-03-31
, 14:59
|
|
|
Posts: 1,716 |
Thanked: 3,007 times |
Joined on Dec 2009
@ Warsaw, Poland
|
#8
|
Maemo SDK has no emulator. You can't run ARMEL binaries on your PC. You have to compile your app for X86 target to debug it on your PC in Xephir environment (N900-like UI).
[sbox-FREMANTLE_ARMEL: ~/test] > cat test.c
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char* argv[])
{
printf("Hello world!\n");
exit(EXIT_SUCCESS);
}
[sbox-FREMANTLE_ARMEL: ~/test] > gcc test.c -o test
[sbox-FREMANTLE_ARMEL: ~/test] > file test
test: ELF 32-bit LSB executable, ARM, version 1 (SYSV), for GNU/Linux 2.6.14, dynamically linked (uses shared libs), not stripped
[sbox-FREMANTLE_ARMEL: ~/test] > ldd test
libc.so.6 => /lib/libc.so.6 (0x00000000)
/lib/ld-linux.so.3 => /lib/ld-linux.so.3 (0x00000000)
[sbox-FREMANTLE_ARMEL: ~/test] > ./test
Hello world!
| The Following 3 Users Say Thank You to smoku For This Useful Post: | ||
|
|
2010-03-31
, 15:06
|
|
|
Posts: 1,716 |
Thanked: 3,007 times |
Joined on Dec 2009
@ Warsaw, Poland
|
#9
|
This confuses me, so what's the use of X86 target if I can just use ARMEL for everything?
| The Following User Says Thank You to smoku For This Useful Post: | ||
I can run the Maemo UI using X86.
ARMEL is used for compiling applications for the actual device/N900 (since the device uses ARMEL, not X86). ARMEL also supports other features like OpenGL ES, which X86 doesn't.
This confuses me, so what's the use of X86 target if I can just use ARMEL for everything?
From limited observation, it seems that X86 is useful for one and only one purpose: running X86 apps as-is. That is, I can compile a Qt app using Qt creator on Ubuntu, and run exactly that same executable on X86 Maemo on Scratchbox.
Whilst if I use ARMEL, I'll need to compile that app using QMake etc. inside Scratchbox ARMEL, and then run it. Is this the case?
Any guide is appreciated. Thank you.