maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   How Compile The Code And Build debian packages For Maemo diablo (https://talk.maemo.org/showthread.php?t=34145)

kamesh.smartdude 2009-11-09 14:56

How Compile The Code And Build debian packages For Maemo diablo
 
Hai All,

I Am New To Maemo And My Question Is How To Compile My App Source Code And Make Debian packages Which Are Suitable For N800.

Need Help Which Compiler To Select.

Actually I Am In A unstable State which compiler should I Select

I Enter The Commands

1. [sbox-DIABLO_X86 : ~] sb-menu

2. Next I Select Setup

3. in The Page I Select DIABLO_ARMEL . (Default Setup Was It Was Set To host-gcc)

4. There I Found Three Options

cs2005q3.2-glibc2.5-arm cross
cs2005q3.2-glibc2.5-i386 cross
host-gcc host


If Select host-gcc And Compile It And Want Make Debian Packages The Packages Are In The For PackageName-i386.deb And They Can't Be Installed On N800.

Also For This Target The Target Architecture Is i386 And Sub-architecture: i386

I Also Select cs2005q3.2-glibc2.5-arm Cross Compiler And Fallow The Instructions On The Setup. And Select This Target

When I Want To Comiple The Code For This Target I Got The Error


"checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
"


Please Help Me Regarding This Compiling And Making Deb Packages For N800 Or Any Target Device.

I Need Your Help

Thanks And Regards
Kamesh.smartdude :):):):)

nhanquy 2009-11-09 17:23

Re: How Compile The Code And Build debian packages For Maemo diablo
 
Everything should be in here and here.

kamesh.smartdude 2009-11-10 13:35

Re: How Compile The Code And Build debian packages For Maemo diablo
 
I Studied The Material But I Am Unable Understand The Coss Compiling For N800.


Can Anybody Post Me Which Compiler Should I Select To Create The Binaries And Armel Packages As I Mentioned In The Above Post.

Thanks And Regards
Kamesh.smartdude

mikkov 2009-11-10 13:48

Re: How Compile The Code And Build debian packages For Maemo diablo
 
Make sure that you have installed the SDK according to the instructions http://wiki.maemo.org/Documentation/...l_Installation

After that you can change to armel target with
Code:

sb-conf se FREMANTLE_ARMEL
and to X86 target:
Code:

sb-conf se FREMANTLE_X86
When you are in selected target you don't need to know anything about cross-compiling just use the compiler normally

edit:
ok this was about diablo

check installation instructions here http://maemo.org/development/sdks/maemo_4-1-2_diablo/

After that you can change to armel target with
Code:

sb-conf se DIABLO_ARMEL
and to X86 target:
Code:

sb-conf se DIABLO_X86

kamesh.smartdude 2009-11-11 13:41

Re: How Compile The Code And Build debian packages For Maemo diablo
 
Thanks For Your Reply Mr.mikkov

I DId The Same Thing And I Compile My Code To Armel Target

In DIABLO_ARMEL Target I Made A Debian Package For That Code I Compiled.

(The Code I Compiled For Armel Is The Application Given At
https://garage.maemo.org/svn/maemoex...llo-world-app/
)

What Are The Necessary Files To Install The Application To The Device?

I Put Only My Debian Package In The Memory Card Of N800 And Then I Try To Install it On The Device Then It Is Saying That A Vast List Of Packages Are Missing. How To Resolve This Problem?

Is The Debian Package Enough To Install The Application To The Device Or Any Other Files Are Required?

When To Make The Debian Package?(Before Or After Compiling The Code For The Target)

The Target Info Is (in sb-menu target info) DIABLO_ARMEL

compiler : cs 2005q3.2-glibc2.5-arm
architecture: arm
sub architecture: arm
c-library : glibc
Devkits : perl debian-etch maemo3-tools cputransp
CPU-transperency : /scratchbox/devkits/cputransp/bin/qemu-arm-0.8.2-sb2



Please help Me On This

Thanks And Regards
Kamesh.smartdude

TA-t3 2009-11-11 13:54

Re: How Compile The Code And Build debian packages For Maemo diablo
 
Please do not capitalise every first letter, it's nearly impossible to read what you write. Thus, not as many replies as there could be.

Jef91 2010-01-04 17:58

Re: How Compile The Code And Build debian packages For Maemo diablo
 
Mostly posting here so I can find the thread later... Thanks.

~Jeff


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

vBulletin® Version 3.8.8