OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> On Z Development In C++, How to for a NEWBEE
edsav00
post Dec 10 2004, 05:32 PM
Post #1





Group: Members
Posts: 5
Joined: 6-December 04
Member No.: 5,809



Hi;

Please go easy on me. I need someone to hold my hand with this. I'm new to the Zaurus and Linux. I'm taking C++ programing and would like to install a compiler on my sl-5600 zaurus. I've tried installing zgcc 2.95.1 with no luck and dev_img-1.5 with no luck either. Can someone please tell me what to install and how to install it (simplicticly).

Thank you in advance,

Ed the NEWBEE
Go to the top of the page
 
+Quote Post
freizugheit
post Dec 11 2004, 08:59 AM
Post #2





Group: Members
Posts: 409
Joined: 7-November 03
Member No.: 811



Are you aware that both installaton needs ext2 formatted SD storage?

Are you familiar Unix commands?
Go to the top of the page
 
+Quote Post
edsav00
post Dec 11 2004, 11:29 AM
Post #3





Group: Members
Posts: 5
Joined: 6-December 04
Member No.: 5,809



I know some basic commands. re: ext2, no I didn't know that. The end result I would like is to be able to compile c++ on my Zaurus. Could you provide me with a step-by-step procedure on how to install a compiler or IDE app? I've downloaded some instruction but they assume the person reading knows the Zaurus and or Linux, which I do not, they talk about scripts and loop devices. I'm lost. I know it's time consuming but if you can help I would appreciate it.

Thanks for responding,

-Ed
Go to the top of the page
 
+Quote Post
systemparadox
post Dec 23 2004, 09:19 AM
Post #4





Group: Members
Posts: 211
Joined: 27-September 04
From: Bristol and Tavistock (Devon), England
Member No.: 4,776



I am trying to do almost the same thing (on my SL-5500), but I have been using Linux for a while, which helps a lot. I tried zgcc 2.95.1, but after a LOT of messing, realised that it would only do C (not C++), and even then with great difficulty.
The alternative is zgcc 2.02 (which is still tracking gcc 2.95.1) from Dr. Jeffrey R. Fox, available at:
http://s91215199.onlinehome.us/zaurus/
This should do C, C++ and Qt apps.
I haven't got it working properly on my Z, but I'll post solutions you may need as I find them.

In Linux, compiling relies heavily on links to find the right files. This is why you will definately need an ext2 or ext3 partition to install it on. You will also need a console/terminal app (if using the Sharp ROM there should be one on the cd). Tell me if you need to make an ext2 partition.

About loop devices, its sounds like you found the site above. The loop device is so that you can mount a filesystem which is on another filesystem (in this case, the cramfs file on whatever filesystem it is stored). To mount the cramfs filesystems, follow the instructions in the tutorial. If you get the message: 'Block device required' or something like that, use the commands:
losetup /dev/loop0 zgcc2Bin.cramfs
mount /dev/loop0 /mnt/card/.zgcc -t cramfs
losetup /dev/loop1 zgcc2Inc.cramfs
mount /dev/loop1 /mnt/card/.include -t cramfs

Type 'mount' (without the 's) to check that they have both been mounted properly.
Ignore the bit about mknod unless you are using other cramfs files as well.
If you are using mountpoints other than /mnt/card/.zgcc and /mnt/card/.include you will have to change a few things, tell me if this is the case.

The scripts are to set variables which change the options gcc uses and the places it searches for include files, etc. The best thing to do is put the following in a script (i called it mntzgcc):
CODE
#!/bin/sh
losetup /dev/loop0 zgcc2Bin.cramfs
mount /dev/loop0 /mnt/card/.zgcc -t cramfs
losetup /dev/loop1 zgcc2Inc.cramfs
mount /dev/loop1 /mnt/card/.include -t cramfs
/mnt/card/.zgcc/zgcc.sh


Make sure the script is in your $PATH. This is a variable which stores a list of directories which will be searched when you type a command. You can type 'echo $PATH' to find out which directories are in the path. /usr/bin/ is probably a good place to put it. The last line of the script runs the zgcc.sh script which was kindly put in the bin cramfs file for us.

Let me know how you get on, I'm going to see if I can get mine working properly.
Simon
Go to the top of the page
 
+Quote Post
metageek
post Dec 23 2004, 01:01 PM
Post #5





Group: Members
Posts: 4
Joined: 21-December 04
From: Cambridge, MA
Member No.: 5,989



Mind you, linking C++ on the Zaurus can be a problem--slow and memory-intensive. It's not bad if you're doing command-line stuff, but I was never able to get anything with Qt to link unless I set up a swap file. This was on a 5500.
Go to the top of the page
 
+Quote Post
systemparadox
post Dec 23 2004, 01:02 PM
Post #6





Group: Members
Posts: 211
Joined: 27-September 04
From: Bristol and Tavistock (Devon), England
Member No.: 4,776



thanks for the info, ill watch out for that.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 29th July 2014 - 08:46 AM