Join Today
+ Reply to Thread
Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1

    Wink run zgcc(gcc for zaurus) under E680i

    step1: download zgcc
    download zgcc from http://s91215199.onlinehome.us/zaurus/
    GCC and Qt binary files -- the zgcc2Bin.cramfs file
    GCC and Qtopia include files -- the zgcc2Inc.cramfs file

    step2: make directories

    mkdir /mmc/mmca1/ezx
    mkdir /mmc/mmca1/ezx/zgcc
    mkdir /mmc/mmca1/ezx/include
    mkdir /mmc/mmca1/ezx/lib
    mkdir /mmc/mmca1/ezx/driver

    step3: prepare files
    copy zgcc2Bin.cramfs and zgcc2Inc.cramfs to /mmc/mmca1/ezx
    copy loop.o to /mmc/mmca1/ezx/driver (loop.o can be found in some projects like opie and ezx-qtopia)

    run qconsole or ekonsole
    cp /lib/libc.so.6 /mmc/mmca1/ezx/lib/libc.so

    step4: create scripts for zgcc
    file /mmc/mmca1/ezx/zgcc.sh
    ==========================
    insmod /mmc/mmca1/ezx/driver/loop.o
    mount -t cramfs /mmc/mmca1/ezx/zgcc2Bin.cramfs /mmc/mmca1/ezx/zgcc -o loop
    mount -t cramfs /mmc/mmca1/ezx/zgcc2Inc.cramfs /mmc/mmca1/ezx/include -o loop
    ===========================
    file /mmc/mmca1/ezx/zgcc.env
    ==========================
    export GCC_EXEC_PREFIX=/mmc/mmca1/ezx/zgcc/lib/gcc-lib/arm-linux/2.95.2/
    export COMPILER_PATH=/mmc/mmca1/ezx/zgcc/lib/gcc-lib/arm-linux/2.95.2/
    export CPATH=/mmc/mmca1/ezx/include/
    export LIBRARY_PATH=/lib:/usr/lib:/mmc/mmca1/ezx/lib:/mmc/mmca1/ezx/zgcc/lib/:/mmc/mmca1/ezx/zgcc/lib/gcc-lib/arm-linux/2.95.2/
    export CPLUS_INCLUDE_PATH=/mmc/mmca1/ezx/include/g++-3/
    export PATH=/mmc/mmca1/ezx/zgcc/bin:$PATH
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/mmc/mmca1/ezx/zgcc/lib
    ==============================
    file unzgcc.sh
    =============================
    umount /mmc/mmca1/ezx/zgcc
    umount /mmc/mmca1/ezx/include
    =============================

    step5: test
    test.c
    ======================
    #include <stdio.h>
    int main()
    {
    printf("hello,world\n");
    }
    ======================
    open qconsole
    cd /mmc/mmca1/ezx
    ./zgcc.sh
    source zgcc.env
    gcc -o test test.c
    ./test
    hello,world

    ./unzgcc.sh
    Last edited by bitfly; 01-19-2008 at 05:40 AM.

  2. #2
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default

    This better than turbo c on dosemu

  3. #3
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    387

    Default

    bitfly, very good.
    But i think that you can use standard gcc compiled for arm without a different libc on the phone.

    have you tried standard gcc compiled with the mkezx toolchain? I believe it will work (altough big c++ files will not compile because of the lack of RAM).

  4. #4
    Join Date
    Sep 2005
    Location
    Jakarta, Indonesia
    Posts
    1,091

    Default

    @wyrm
    Maybe a big swap memory will help.

  5. #5

    Default

    Wow! BTW can we make the gcc run in E2?

  6. #6

    Default

    E6/a12000???????

  7. #7
    Join Date
    Jan 2006
    Location
    Alor Star, Kedah, Malaysia
    Posts
    2,317

    Default

    very nice. thx bitfly

  8. #8

    Default

    wow.....that is a great job you have done......
    i have tried to run zgcc that used in zarus,but failed......

  9. #9

    Default

    Btw i succeed run it in my E2... Anyone have the perl run in ezx? So we can use progen and tmake... Ah, one more...is it compatible with the SDK (unofficial) out here?

    Anyway, thanks bitfly... ;D

  10. #10
    Join Date
    Jan 2008
    Location
    China
    Posts
    7

    Default

    ya,thanks a lot for your work and share,it helps!!


 
+ Reply to Thread
Page 1 of 3 123 LastLast

Similar Threads

  1. enlightenment 1.7 run on e680i
    By varo82 in forum E680i General Chat
    Replies: 4
    Last Post: 09-27-2006, 07:39 AM
  2. SHARP Zaurus application
    By naset in forum E680i General Chat
    Replies: 2
    Last Post: 05-02-2006, 11:21 AM
  3. native gcc compiler for e680i
    By bitfly in forum Development
    Replies: 0
    Last Post: 04-18-2006, 03:22 AM
  4. Can Smart movie run on E680I?
    By nghinguyen in forum E680i General Chat
    Replies: 1
    Last Post: 07-13-2005, 02:36 AM
  5. Zaurus apps
    By Yuretz in forum E680 General Chat
    Replies: 1
    Last Post: 05-04-2005, 08:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Optimization by vBSEO 3.6.0 RC 1