Author Topic: Looking For Native Compile Tutorial  (Read 2143 times)

jbruno

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • http://
Looking For Native Compile Tutorial
« on: November 08, 2005, 04:49:18 pm »
Is there a tutorial somewhere on how to get a SL6000 with a fresh rc12 install up to the point where I can create a simple "hello world" application?

The pdaXrom.org site docs concentrate on cross-compiling, but I'd like to get everything happening on the Zaurus, if possible, and I assume that's what the native environment is for, but I can't find setup documentation.

I'd appreciate any pointers.
-----
SL6000L
ATP 512MB SD

trichmon

  • Full Member
  • ***
  • Posts: 148
    • View Profile
Looking For Native Compile Tutorial
« Reply #1 on: November 08, 2005, 05:11:44 pm »
I use a great little tutorial put together by chero

http://users.telenet.be/zaurususer/Chero/

-Todd
SL-6000l running pdaXrom RC12 icewm + rox
Targus keyboard
Trendnet cf 10/100 ethernet
Linksys CF wireless
Sandisk 256mb SD card
Lexar 1gig SD card
SL-5500 running zynergy rom

MicDB

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • http://
Looking For Native Compile Tutorial
« Reply #2 on: November 08, 2005, 07:07:42 pm »
You can simply install gcc and gcc-headers packages from the feed, edit a file.c and type

main()
{
printf("Hello World\n");
}

Save and compile the file with "gcc file.c". The compiled binary will be called "a.out".

You can then run your new application with "./a.out" or "/absolute/path/to/a.out"

 
« Last Edit: November 08, 2005, 07:10:13 pm by MicDB »
SL-C760, Dlink DCF-660W, SD 512MB, CF 512MB, 7000mAh.