OESF Portables Forum
Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => Cxx0 General discussions => Topic started by: Anonymous 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
-
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
-
gcc 3.3.1
http://zaurus.spy.org/programs/feeds/cacko.../zgcc-3.3.1.img (http://zaurus.spy.org/programs/feeds/cacko/qt/zgcc-3.3.1.img)
a bunch more stuff here too, including gcc_2.95.4_arm.ipk
http://zaurus.spy.org/programs/feeds/cacko...ko/qt/devtoolz/ (http://zaurus.spy.org/programs/feeds/cacko/qt/devtoolz/)
-
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/ (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.
-
There is a Developer Image availabel for download on this site:
http://www.zaurususergroup.com/modules.php...Developer_Image (http://www.zaurususergroup.com/modules.php?op=modload&name=UpDownload&file=index&req=viewdownloaddetails&lid=207&ttitle=Developer_Image)
-
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
-
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.
-
Thanks for the suggestions zbones!
Will give that a try and report back later....
Mark
-
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.
-
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
-
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.
-
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
-
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 (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
-
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
-
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
-
Hi Gary,
Glad to hear it worked for you!!
Trying to get it to work now too...
The look has to do with QT I think...
I think the C860\'s are running v2XX, but need to check...
Mark
-
If you keep your SD card inserted, then you can edit /etc/fstab to mount dev_img automaticaly. Just edit the line \"path_to_dev_img /home/zaurus/develop cramfs noauto,loop 0 0\" - change noauto to auto.
-
Thanks for the advice maslovsky!
Will try that...
Mark
-
Could anyone tell me whether any of these arm-native GCC compilers have FORTRAN support (there\'ll be an f77 or g77 binary in bin).
Thanks,
Simon
-
Hi again,
Maybe this should be posted in the QT section...but since this thread was already started....
Got the dev_img-1.4 setup and think it\'s working properly. When I type \'gcc\' in Terminal I get \'gcc: No input files\' which what you\'re supposed to see.
However, been trying unsuccessfully to compile a simple QT \'Hello world\' app. Been getting various compiler error messages (parse errors & syntax errors).
Tweaked the \'cpp\' file several times and have substantially reduced the number of error messages.
However, the latest compile attempt gave me the following error messages:
hellow.cpp:1: qapplication.h: No such file or directory
hellow.cpp:2: qwidget.h: No such file or directory
hellow.cpp:3: qpushbutton.h: No such file or directory
Any suggestions on why I\'d get these error messages??
And any suggestions on how to fix?
-
This may make me sound like an idiot but I am just venturing into coding for the first time in 7 years, using my C860. I\'ve been following this thread, I\'ve setup zgcc and I have run into a real snag, I cannot find \'{\' or \'}\' anywhere on my keyboard!?!?!?
Any help would be appreciated.
I\'m using C860 with Cacko\'s QT ROM 1.20, English-UK keyboard map.
-
Hi,
I\'m using the Sharp ROM...but on my C860 I press
Fn + Shift + \',\' = {
Fn + Shift + \'.\' = }
HTH,
Mark
8)
Meanwhile, hope someone can advise about my compiler errors... :?
-
Hi,
I\'m using the Sharp ROM...but on my C860 I press
Fn + Shift + \',\' = {
Fn + Shift + \'.\' = }
HTH,
Mark
8)
Meanwhile, hope someone can advise about my compiler errors... :?
Nice one, works for me. Now to compile my first QT app.. grrr...
-
Hmmm....the more I think back to last July \'03 when I was trying to do this with the dev_img-1.3 version file, I seem to vaguely recall that I added some other lib files last time....
Will see if I can find some notes on this and report back....if the old DevNet forums were still up there was a great thread on this from last summer...oh well....
:?
Mark
-
BTW, dev_img 1.5 is available. Changes:
- Added m4 1.4
- Updated perl to 5.8.0
- Added autoconf 2.59
- Added automake 1.8.3
- Added libtool 1.5.2
- Added automated image setup script
-
hellow.cpp:1: qapplication.h: No such file or directory
hellow.cpp:2: qwidget.h: No such file or directory
hellow.cpp:3: qpushbutton.h: No such file or directory
Hi ArchiMark,
I compiled some of the tutorials off of TrollTech\'s site by just including:
#include
#include
...etc...
I used the gcc options you posted earlier - from what I remember those options helped me get past those errors.
-Gary
-
Thanks for providing dev_img-1.5 maslovsky!
GMan,
I\'m using those #include files too!
So surprised at the error messages I\'m getting...
Could you please post or PM me one of the QT code files you got to compile?
I can\'t even get the simple \'Hello World\' file to compile right now... :oops:
Thanks!
Mark
-
I\'ve attached a zip file that contains the first two tutorials off of trolltech\'s site and a simple compile.sh that compiles a single file - just pass in the name of the file and the output file. This was tested under the dev1.4 image (still need to upgrade to the latest one).
Let me know if it works.
-Gary
-
That did it Gary!!
Thanks a lot for your help!
BTW, compiled using the new dev_img-1.5 file that I installed earlier today....
Mark
Happy C860 Camper
-
BTW, compiled using the new dev_img-1.5 file that I installed earlier today....
Was installation smooth enough? What I was trying to accomplish is to let people just run a script to have everythig set up. Did it work as expected?
-
BTW, compiled using the new dev_img-1.5 file that I installed earlier today....
Was installation smooth enough? What I was trying to accomplish is to let people just run a script to have everythig set up. Did it work as expected?
I found it went quite smoothly, I did reboot and compiled my first QT app with no problems, once again Maslovsky you have impressed me :-)
Now hurry with the new QT ROM ;-)
-
Hi maslovsky,
Thanks for version 1.5 of dev_img!
Install went very smooth and was easy even for a dummie like me!
The only thing I can think of is to add one line between steps 1 and 2 in your install instructions for code newbies to make things really clear for them.
I\'d make a new step 2:
2. Change directory to the directory where the setup script and dev_img-1.5 resides (ie. \'cd /mnt/card\')
Then change the current step 2 to step 3, etc....
Very minor thing but I can tell you as a code newbie every bit of clarity really helps minimize problems... :?
Now onto doing the rest of the QT tutorials....
Thanks,
Mark
-
I either did not find or just did not notice installation instructions, downloaded it from ZUG, there was only this image file. I had to figure it out myself, so it must be fairly idiot-proof.
-
Hey padishah E,
The install instructions are on the page that lists the file to be downloaded.... :roll:
HTH,
Mark
-
I take it this is a libc 2.2 based system?
Could someone also comment as to whether it has g77 onboard?
Cheers,
Simon
-
Actually, Anton do you have any tips on how you compiled your native compiler?
Cheers,
Si
-
Hey padishah E,
The install instructions are on the page that lists the file to be downloaded.... :roll:
HTH,
Mark
:oops: DOH!!
1. Unzip and copy contents of the file onto CF or SD card. 2. Run image_setup.sh script as root: image_setup.sh full_path_to_dev_image mount_point where \"mount_point\" is any folder, for exmaple /mnt/dev 3. When script finishes, relogin as zaurus
Yep, I just breezed past that in some kind of ecstatic blissful ignorance, oops!
:roll:
-
I take it this is a libc 2.2 based system?
Could someone also comment as to whether it has g77 onboard?
Cheers,
Simon
No mate, no Fortran.
Shame, I used to love Fortran and wouldn\'t mind digging out my old Fortran-77 books and playing... :-(
Maslovsky? Friendly hint ;-)
Lardman, I don\'t know how to check if it is libc 2.2, if you can tell me what to type, I\'ll do it and post it immediately.
-
Which ROM are you using?
Assuming it\'s not OZ3.3.6pre1 then it is libc2.2 (though if you are using OZ3.3.6pre1 I\'d be no closer to knowing which version it\'s linked against)
(FYI: \'ldd binary_name\' would also do the trick)
Si
-
Which ROM are you using?
Assuming it\'s not OZ3.3.6pre1 then it is libc2.2 (though if you are using OZ3.3.6pre1 I\'d be no closer to knowing which version it\'s linked against)
(FYI: \'ldd binary_name\' would also do the trick)
Si
I am actually flashing a new ROM right now, so I will be using Cacko QT ROM 1.21 Elena. Will post the output of that command once I\'ve set my machine up again, unless someone can do it before me.
--EDIT--
ldd test
test: Out of space
ldd: warning: you do not have execution permission for \'./test\'
libm.so.6 =] /lib/libm.so.6 (0x40022000)
libc.so.6 =] /lib/libc.so.6 (0x40050000)
/lib/ld-linux.so.2 =] /lib/ld-linux.so.2 (0x40000000)
HTH
-
That did it Gary!!
Thanks a lot for your help!
BTW, compiled using the new dev_img-1.5 file that I installed earlier today....
Mark
Happy C860 Camper
No problem! I installed 1.5 as well. I just replaced the reference in /etc/fstab that pointed to the 1.4 image to point to the 1.5 image and that was it. So as long as the dev images are a single cramfs file I think upgrades should always be this smooth
-Gary
-
--EDIT--
ldd test
test: Out of space
ldd: warning: you do not have execution permission for \'./test\'
libm.so.6 =] /lib/libm.so.6 (0x40022000)
libc.so.6 =] /lib/libc.so.6 (0x40050000)
/lib/ld-linux.so.2 =] /lib/ld-linux.so.2 (0x40000000)
Thanks, my fault, I was wrong I guess that a simple:
$ ls -rtl /lib/libc*
would do the job. In any case I\'d say it\'s using libc2.2 which is fine, the next question is as to whether this is GCC3.x or GCC2.95 (I need GCC3.x)?
Si
-
I initially failed to use the image_setup.sh script correctly and had to manually delete multiple incorrect lines from /etc/fstab. I ended up having to do the configuration manually.
I don\'t understand the point of having a mount point that is different from \"/home/zaurus/develop\" in the image_setup.sh script. Why not just mount the \"dev_img-1.5\" file directly to \"/home/zaurus/develop\"? Here are the steps that I had to use to get the compiler working on my Sharp ROM on my Zaurus SL-C760\'s SD card:
Unzip the dev-img-1.5.zip file to /mnt/card
su root
Add the following line to \"/etc/fstab\":
/usr/mnt.rom/card/dev_img-1.5 /home/zaurus/develop cramfs auto,loop 0 0
[/b]
mount /home/zaurus/develop
cd /home/zaurus
Add the following line to \".bashrc\":
export PATH="$PATH:/home/zaurus/develop/bin"
exit
exit
Go back in the terminal.
Check the path with \"echo $PATH\" to see that the \"/home/zaurus/develop/bin\" directory is in the path.
su root
compiler_setup.sh
exit
Try to compile a \"Hello, World!\" program.
I find that /home/zaurus/develop/bin does not automatically mount on a reboot.
-
--EDIT--
ldd test
test: Out of space
ldd: warning: you do not have execution permission for \'./test\'
libm.so.6 =] /lib/libm.so.6 (0x40022000)
libc.so.6 =] /lib/libc.so.6 (0x40050000)
/lib/ld-linux.so.2 =] /lib/ld-linux.so.2 (0x40000000)
Thanks, my fault, I was wrong I guess that a simple:
$ ls -rtl /lib/libc*
would do the job. In any case I\'d say it\'s using libc2.2 which is fine, the next question is as to whether this is GCC3.x or GCC2.95 (I need GCC3.x)?
Si
Sorry, only just checked this thread, yes it\'s libc2.2 and GCC 2.95 on dev_img 1.5
HTH
-
Thanks.
Si
-
To lardman:
you were asking for a fortran 77 compiler and gcc version 3 ...
From what I can guess (I have some minor trouble with the japanese stuff), this is a description how to build a (cross?) compiler including g77 support:
http://paipai.org/~humorum/pukiwiki/pukiwi...usSelf&word=g77 (http://paipai.org/~humorum/pukiwiki/pukiwiki.php?cmd=read&page=ZaurusSelf&word=g77)
And here is a version of gcc3.3.2 + g77 +..... readily for running on your zaurus...it worked on my C760 (with cacko 1.21 \'Elena\' ...my daughter has the same name . The file is pretty big ] 300 MB, but I think one can remove the java libraries (if not needed):
look for the link to:
gnu-dev_cpp_f77_objc_java.tar.gz
http://paipai.org/~humorum/pukiwiki/pukiwi...guages&word=f77 (http://paipai.org/~humorum/pukiwiki/pukiwiki.php?cmd=read&page=ZaurusLanguages&word=f77)
Bis denne, Georg
-
Thank you.
Si