Author Topic: gcc compliler on Z C7xx  (Read 16652 times)

Anonymous

  • Guest
gcc compliler on Z C7xx
« on: March 07, 2004, 04:13:18 am »
Who has managed to install any variant of the gcc compiler on a Z 7xx device. I found a feed on the www.killefiz.de site but the zaurus install package doesn\'t recognise the *.ipk file.

I did install the gcc compiler on an earlier ROM version but can\'t remember from where I downloaded it.

Any pointers to thegcc compiler will be deeply appreciated.

Also, any one tried LaTex on their Zaurus? The processing power of the machine should be able to handle a lite version of the LaTeX package.

Thanks,
Ashu

zbones

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
gcc compliler on Z C7xx
« Reply #1 on: March 07, 2004, 05:28:24 am »
Assuming you are using a sharp based rom, ZGCC2 works a treat.

You will need to download the 3 files which start with zgcc2 from this site.

The html file is the instructions for getting it working.

Peter.

*edit* I tried to post a link, but it didn\'t work, so the files are in the modules section, or search for zgcc.

Petr
Zaurus cl760, cacko QT rom. Zaurus sl5500 with TKCrom 1.0.
512mb Kingston cf card, 256mb Sandisk sd card, Lexar 256mb sd card.
Bluemonkey bluetooth card <-> Sony Ericsson k700i for gprs.
Buffalo WLI-CF-S11G wifi card. Haicom 303 mmf gps cf/seral card.

dtruchan

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #2 on: March 10, 2004, 12:13:48 am »
860 Debian EABI
Lexar Cards
WCF11 v2.5
Mittoni SD-CF Adapter
Gentoo

vanstrien

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
    • http://www.vanstrien.net
gcc compliler on Z C7xx
« Reply #3 on: March 10, 2004, 06:49:02 am »
I\'d suggest following (what I think was) zbones suggestion as it is much cleaner for onboard development.  Go to http://s91215199.onlinehome.us/zaurus/ and you can get instructions on how to keep all the GCC libraries in a cramfs file system.  This means that although you can\'t change any of the gcc files normally, they will be stored much better in compressed format.
C860 Cacko ROM | 5500 tkcROM
256MB SD | 128MB SD
512MB CF | 256MB CF
D-Link DWL 660 WiFi| Linksys WCF12 WiFi
Socket Bluetooth | Socket Ethernet

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
gcc compliler on Z C7xx
« Reply #4 on: March 10, 2004, 08:28:58 am »
There is a Developer Image availabel for download on this site:
http://www.zaurususergroup.com/modules.php...Developer_Image

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
gcc compliler on Z C7xx
« Reply #5 on: March 17, 2004, 06:14:15 pm »
Hi Maslovsky (or others),

Thanks for your post regarding your dev_img-1.4 file.

I downloaded the file from this site and have tried following your instructions to install this on my C860.

All went well till Step 3 \"Add path to /home/zaurus/develop/bin not your PATH\".....

When I tried to edit the \"qpe.sh\" file in tkcEditor, it wouldn\'t let me save the changes to the file. I checked and saw that the ownership of the file is root.

So could you (or anyone else) please tell me what is the easiest way to edit this file?

Also, could you please clarify in your example:

\"export PATH=existing_path_here:/home/zaurus/develop/bin\"

Do you mean that I should insert this line in the list of \"export PATH=xxxx\" lines?

Also, where you show \"existing_path_here\" in that line, what path are you referring to?

Thanks for any help!!

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

zbones

  • Sr. Member
  • ****
  • Posts: 459
    • View Profile
gcc compliler on Z C7xx
« Reply #6 on: March 17, 2004, 07:19:47 pm »
tkxeditor is probably not running as root?

either use vi from the terminal and enter su <return> before editing the file, or click and hold the icon for the editor, and check the run as root box.
Zaurus cl760, cacko QT rom. Zaurus sl5500 with TKCrom 1.0.
512mb Kingston cf card, 256mb Sandisk sd card, Lexar 256mb sd card.
Bluemonkey bluetooth card <-> Sony Ericsson k700i for gprs.
Buffalo WLI-CF-S11G wifi card. Haicom 303 mmf gps cf/seral card.

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
gcc compliler on Z C7xx
« Reply #7 on: March 17, 2004, 07:24:00 pm »
Thanks for the suggestions zbones!

Will give that a try and report back later....  

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

stupkid

  • Hero Member
  • *****
  • Posts: 578
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #8 on: March 17, 2004, 07:32:46 pm »
Isn\'t the example in the instructions:

\"export PATH=existing_path_here:/home/zaurus/develop/bin\"

Kind of goofy?  When this:

\"export PATH=$PATH:/home/zaurus/develop/bin\"

Will actually work and be a lot less work for the user.  Just my 10 cents, but what do I know I\'m the stupid kid.

Zaurus SL-C3200 pdaXii13v2 5.5 / Ambicom WC1100C-CF / Socket Bluetooth Rev G


OpenMoko FreeRunner - Running Tweaked OM2008.x Image

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
gcc compliler on Z C7xx
« Reply #9 on: March 17, 2004, 11:04:04 pm »
OK, tried stupkid\'s suggestion for path using zbones suggestion for using tkcEditor as root.....

According to Step 4 in instructions you should \"type \'gcc\' in console (I used Terminal on my C860). If you get \"no input files\" message, you\'re all set.\"

After typing \"gcc\", I get \"gcc: not found\"....  :cry:

Any suggestions??

Thanks!

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
gcc compliler on Z C7xx
« Reply #10 on: March 18, 2004, 03:27:53 am »
Quote
OK, tried stupkid\'s suggestion for path using zbones suggestion for using tkcEditor as root.....

According to Step 4 in instructions you should \"type \'gcc\' in console (I used Terminal on my C860). If you get \"no input files\" message, you\'re all set.\"

After typing \"gcc\", I get \"gcc: not found\"....  :cry:  

Any suggestions??

Thanks!

Mark

If you added the \"export PATH=...\" line to the qpe.sh file, then you need to reboot your zaurus for the changes to take effect.

If it still does not help, then add that line to the /home/zaurus/.profile file as well.

Hope this hepls.

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
gcc compliler on Z C7xx
« Reply #11 on: March 18, 2004, 10:49:18 am »
Thanks for the suggestion maslovsky!

Tried rebooting.

Then redid Step 2.

Then redid Step 4, typed \'gcc\' in Terminal and voila!

It says, \"gcc: No input files\" !

So to clarify, the procedure for each time I want to use dev_img-1.4 is to do Step 2 in your instructions right?

Thanks!

Mark

 
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

GMan

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #12 on: March 18, 2004, 07:15:47 pm »
ArchiMark - you just have to do the mount /home/zaurus/develop when you reboot (unless there\'s somewhere you can put that to load on startup).

I\'ve installed the dev_img-1.4 correctly and gcc seems to work and I was going to play around with QT so I tried to follow the tutorial on http://doc.trolltech.com/3.2/tutorial1-01.html.  I couldn\'t do the qmake step, so I skipped it   and tried to do a gcc tutorial1.cpp.  I got an error saying it could not find the \"qapplication.h\" file.  My c/c++ is rusty so, but I changed the lines that stated:
#include <qapplication.h> to #include <qt/qapplication.h>
Now it gets past that and says it can\'t find the qfeatures.h (even though its there).

Any help for a newbie would be appreciated!

Thanks.
-Gary

ArchiMark

  • Administrator
  • Hero Member
  • *****
  • Posts: 1830
    • View Profile
gcc compliler on Z C7xx
« Reply #13 on: March 18, 2004, 08:06:27 pm »
Thanks for your info GMan!


As for compiling QT stuff...haven\'t tried it yet with dev_img-1.4. However, did get it to work last summer on my C760 (sold it last fall, but just got a C860 recently).

So, what happened with dev_img-1.3 is that it took several tries to find a compile command that would work properly. Here\'s the one that I got to work, it\'s a long one!!

gcc -fno-rtti -DQT_NO_DRAGANDDROP -DQT_NO_PROPERTIES -pipe -DQWS -fno-exceptions -O2 -fno-default-inline -Wall -W -I$QTDIR/include -L$QTDIR/lib -lqte -lqpe <filename.cpp> -o <filename>

Try it out and let us know if it works for you...will try it out and report back too...

Tried last summer making a compile script for this, but I can\'t recall whether I got it to work properly...will try that again when I have time...

 

HTH,

Mark
Silicon Valley Digerati - * Please see my Mini Laptops For Sale Listing *
Cosmo Communicator / One-Netbook One Mix Yoga 3S (Win 10/Manjaro 18)
Banana Pi Zero UMPC/Armbian
MacBookPro
Sold: C3200/N900/OQO/N5/Dell Mini9/Netwalker/UMID M1/

GMan

  • Newbie
  • *
  • Posts: 35
    • View Profile
    • http://
gcc compliler on Z C7xx
« Reply #14 on: March 18, 2004, 11:49:08 pm »
Thanks ArchiMark.  Yep that command seems to work just fine.  After some experimentation, I found out that the -DQT... sections aren\'t required (although I really don\'t know what they do besides what I can gather from the names).  Also, if the -DQWS is left off, I get a seg fault.

I\'ve never done QT programming before, but I noticed the window I built from the tutorial (http://doc.trolltech.com/2.3/t1.html) does not have the same \"look\" as the other apps on my 860.  The close button and window border looks different (buttons, etc. don\'t have the nice look) - is this due to a QStyle?  Also, is the Z running QT 2.X - I saw that there\'s a 3.X version now?

Sorry for all the newbie questions - still getting up to speed on my z

TIA,
-Gary