OESF Portables Forum

Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => X/Qt => Topic started by: Meanie on April 11, 2006, 03:32:50 am

Title: Native Gcc Compiler For X/qt
Post by: Meanie on April 11, 2006, 03:32:50 am
I have updated the native gcc 2.95-2 dev image to inlcude the required headers to compile and build X/Qt and pdaXrom apps.  With this image, you can create console apps, qtopia apps, kernel modules and X/gtk+/gnome apps. The compiled binaries should run on Sharp/Cacko and pdaXrom.
Title: Native Gcc Compiler For X/qt
Post by: ShiroiKuma on April 11, 2006, 04:04:05 am
Oh yes, this is a dream!!!

When? When?  
Title: Native Gcc Compiler For X/qt
Post by: xjqian on April 11, 2006, 06:10:20 am
2.4.18 or 2.4.20 kernel or both?
Title: Native Gcc Compiler For X/qt
Post by: Meanie on April 11, 2006, 10:43:01 am
it is bundled with the 2.4.20 kernel headers since both my Zauri use that.
and it will be available soon, as soon as i iron out all the little nitty gritty problems. i am currently testing/using it to build pdaXqtrom.
Title: Native Gcc Compiler For X/qt
Post by: DaemonsGR on April 11, 2006, 12:45:41 pm
pdaXqtrom????? sound very cool!!!!
Is this an pdax with QT?
Title: Native Gcc Compiler For X/qt
Post by: Meanie on April 11, 2006, 08:37:39 pm
Quote
pdaXqtrom????? sound very cool!!!!
Is this an pdax with QT?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=122677\"][{POST_SNAPBACK}][/a][/div]

it's pdaXrom running under X/Qt. it will run the same apps as pdaXrom. the goal is to be able to install directly from the pdaXrom feeds once this is done so you can get the latest pdaXrom apps like Firefox 1.5, Abiword 2.4, etc... while running Sharp/Cacko
Title: Native Gcc Compiler For X/qt
Post by: Jon_J on April 12, 2006, 01:06:16 am
I always wondered if pdaXrom applications could run on Sharp/Cacko.
That would be great, because there seems to be so many more applications for pdaXrom.
A question while on this subject:
What does "armv5tel" mean?
Does it mean "pdaXrom only"? or "X" only?

Jon
Title: Native Gcc Compiler For X/qt
Post by: Meanie on April 14, 2006, 09:04:03 am
Quote
I always wondered if pdaXrom applications could run on Sharp/Cacko.
That would be great, because there seems to be so many more applications for pdaXrom.
A question while on this subject:
What does "armv5tel" mean?
Does it mean "pdaXrom only"? or "X" only?

Jon
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=122787\")

well pdaXrom and Sharp/Cacko use the same kernel and the binaries are compatible. However, some things won't work because of different library dependencies, and the big difference in GUI manager, ie X vs QTe. Most console apps will work on any Zaurus.
Now armv5tel is actually the proper name for ipk files that work on clamshell models.

see this thread for more details [a href=\"https://www.oesf.org/forums/index.php?showtopic=16750&hl=]https://www.oesf.org/forums/index.php?showtopic=16750&hl=[/url]

And if anyone want to try my zgcc image, here is the link:
http://zaurus.daemons.gr/menaie/mirror/stuff/zgcc2-95-2.zip (http://zaurus.daemons.gr/menaie/mirror/stuff/zgcc2-95-2.zip)

It works on my Z because I build it there, but hopefully it will work for others too
Seriously, I need others to test it to make sure all the library dependencies have been resolved for the installed utilities on the image.
The image contains the 2.95-2 gcc compiler and tools plus perl and xml parser. I also added tools and config files as well as headers to be able to compile X and qtopia apps.
The zip file contains a squashfs image and an install shell script. You need to have the squashfs module installed first. The shell script will mount the squashfs file and call zgcc-setup which will created the required symlinks.
Title: Native Gcc Compiler For X/qt
Post by: amotyka on April 14, 2006, 01:01:49 pm
I am trying to compile xgs, an apple iigs emulator. When I run the ./configure it gets as far as "checking whether byte ordering is bigendian..." and then quits, saying "cannot run test program while cross-compiling" This seems odd because I'm doing a native compile.

Please note I am new to compiling so forgive me if this sounds like a simple question.

Anthony
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on April 15, 2006, 12:00:50 am
Trying to install but keep getting error message that says:

"error: you have to be root to run this!"

Don't understand what problem is as I've tried doing 'su' or 'su -' first but doesn't help...

Also, when I do 'su -' and then './install.sh' after I've navigated to directory where the install files are located, I get the message './install.sh not found'.

When I do 'pwd' I then get '/home/root'.

So, it's changed directory location on me!

What's the trick to get this installed??

 

Thanks,

Mark
Title: Native Gcc Compiler For X/qt
Post by: Borealid on April 15, 2006, 03:27:17 pm
That "-" after "su" tells it to change to the user's home directory and act in all ways as if you'd just logged in as that user (in this case root).  Why not just do a "su" and then navigate to the directory?
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on April 15, 2006, 04:33:00 pm
Thanks for your help, Borealid!

However, as I wrote I tried that....and just tried that again to make sure....but I get that error message about not being root again...

Any other ideas???

 


Thanks,

Mark
Title: Native Gcc Compiler For X/qt
Post by: Meanie on April 15, 2006, 07:32:00 pm
Quote
Thanks for your help, Borealid!

However, as I wrote I tried that....and just tried that again to make sure....but I get that error message about not being root again...

Any other ideas???

 


Thanks,

Mark
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123335\"][{POST_SNAPBACK}][/a][/div]

sorry, I included the wrong install script. please replace it with this one
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on April 15, 2006, 10:39:56 pm
Thanks for the updated install script, Meanie!

Well, at least for once I know that I did something wrong....  

Anyway tried out the script but now I get an error message that it can't find any spare loop devices....

Code: [Select]
# ./install.sh
Installing zgcc 2.95.2 to /usr/mnt.rom/card
mount: Could not find a spare loop device
./install.sh: /mnt/zgcc/zgcc-config: not found
.: Can't open /mnt/zgcc/zgcc-env

So checked 'mount' and 'df'.....

Code: [Select]
#mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (ro)
/proc on /proc type proc (rw)
/dev/mtdblock3 on /home type jffs2 (rw,noatime)
/dev/ram1 on /dev type minix (rw)
none on /dev/shm type tmpfs (rw)
/dev/hdc1 on /hdd1 type ext3 (ro,noatime)
/dev/hdc2 on /hdd2 type ext3 (rw,noatime)
/dev/hdc3 on /hdd3 type vfat (rw,noatime)
none on /dev/pts type devpts (rw)
/dev/loop0 on /home/system/var/mnt/xqt/xqt-gtk-jumbo type cramfs (rw)
/dev/loop1 on /home/system/var/mnt/xqt/xqt-apps type cramfs (rw)
/dev/mmcda1 on /usr/mnt.rom/card type vfat (rw,noatime)
/dev/loop2 on /home/system/var/mnt/xqt/xqt-mozilla type cramfs (rw)
/dev/loop3 on /home/system/var/mnt/xqt/xqt-openoffice type cramfs (rw)
/dev/loop4 on /hdd3/debroot type ext2 (rw)
/proc on /hdd3/debroot/proc type proc (rw)
/dev/loop5 on /hdd3/debroot/home/zaurus/OpenOffice.org1.1.4 type cramfs (rw)
/dev/mmcda1 on /hdd3/debroot/mnt/card type vfat (rw,noatime)
/dev/mtdblock3 on /hdd3/debroot/etc/resolv.conf (deleted) type jffs2 (rw,noatime)
/dev/loop6 on /hdd3/debroot/home/zaurus/OpenOffice.org1.1.4 type cramfs (rw)
/dev/loop7 on /hdd3/debroot/home/zaurus/OpenOffice.org1.1.4 type cramfs (rw)

#df
Filesystem                Size      Used Available Use% Mounted on
rootfs                   32.0M     32.0M         0 100% /
/dev/root                32.0M     32.0M         0 100% /
/dev/mtdblock3           89.0M     39.1M     49.9M  44% /home
/dev/ram1                44.0k     30.0k     14.0k  68% /dev
none                      1.0M     80.0k    944.0k   8% /dev/shm
/dev/hdc1                 9.5M      1.0M      8.0M  11% /hdd1
/dev/hdc2                 9.5M      1.1M      7.9M  12% /hdd2
/dev/hdc3                 3.8G    694.9M      3.1G  18% /hdd3
/dev/loop0               38.5M     38.5M         0 100% /home/system/var/mnt/xqt/xqt-gtk-jumbo
/dev/loop1              111.3M    111.3M         0 100% /home/system/var/mnt/xqt/xqt-apps
/dev/mmcda1             975.6M    849.5M    126.2M  87% /usr/mnt.rom/card
/dev/loop2               53.0M     53.0M         0 100% /home/system/var/mnt/xqt/xqt-mozilla
/dev/loop3              231.8M    231.8M         0 100% /home/system/var/mnt/xqt/xqt-openoffice
/dev/loop4              495.8M    457.7M     12.5M  97% /hdd3/debroot
/dev/loop5              179.0M    179.0M         0 100% /hdd3/debroot/home/zaurus/OpenOffice.org1.1.4
/dev/mmcda1          975.6M    849.5M    126.2M  87% /hdd3/debroot/mnt/card
/dev/loop6              179.0M    179.0M         0 100% /hdd3/debroot/home/zaurus/OpenOffice.org1.1.4
/dev/loop7              179.0M    179.0M         0 100% /hdd3/debroot/home/zaurus/OpenOffice.org1.1.4

Looks like I have extra OpenOffice loop devices that I should remove, right??
..... like /dev/loop6 and 7, right???

Or what should I do ???

If I need to remove loop devices, what's the right way to do that??

Thanks,

Mark
Title: Native Gcc Compiler For X/qt
Post by: DaemonsGR on April 16, 2006, 05:47:02 am
Why do you need this?????????

/dev/loop5              179.0M    179.0M         0 100% /hdd3/debroot/home/zaurus/OpenOffice.org1.1.4
/dev/loop6              179.0M    179.0M         0 100% /hdd3/debroot/home/zaurus/OpenOffice.org1.1.4
/dev/loop7              179.0M    179.0M         0 100% /hdd3/debroot/home/zaurus/OpenOffice.org1.1.4
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on April 16, 2006, 12:03:29 pm
Exactly, DaemonsGR, I mention in my previous that I should remove loop6 and 7....so that I keep just loop5....

As to why I need it (or at least one..) I installed OpenOffice after I installed X/Qt/Debian...

So how do you delete a loop device??

Thanks,

Mark
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on April 18, 2006, 11:09:44 am
OK, finally got rid of my extra loop devices.....

Now when I tried installing zgcc again, I get the following:

Code: [Select]
#./install.sh
Installing zgcc 2.95.2 to /hdd3
mount: Mounting /hdd3/zgcc-95-2.squashfs on /mnt/zgcc failed: no such device
./install.sh: /mnt/zgcc/zgcc-config: not found
.: Can't open /mnt/zgcc/zgcc-env


Any suggestions???

Thanks,

Mark
Title: Native Gcc Compiler For X/qt
Post by: Meanie on April 19, 2006, 12:26:05 am
Quote
OK, finally got rid of my extra loop devices.....

Now when I tried installing zgcc again, I get the following:

Code: [Select]
#./install.sh
Installing zgcc 2.95.2 to /hdd3
mount: Mounting /hdd3/zgcc-95-2.squashfs on /mnt/zgcc failed: no such device
./install.sh: /mnt/zgcc/zgcc-config: not found
.: Can't open /mnt/zgcc/zgcc-env


Any suggestions???

Thanks,

Mark
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123646\"][{POST_SNAPBACK}][/a][/div]

now
Code: [Select]
mount: Mounting /hdd3/zgcc-95-2.squashfs on /mnt/zgcc failed: no such deviceshould be /hdd3/zgcc2-95-2.squashfs
there is a 2 missing?
try editing /etc/fstab and removing all the references to zgcc and try again, or alternatively mount it manually

Code: [Select]
mount -o loop -t squashfs /hdd3/zgcc2-95-2.squashfs /mnt/zgccand then run
Code: [Select]
/mnt/zgcc/zgcc-config
source /mnt/zgcc/zgcc-env
Title: Native Gcc Compiler For X/qt
Post by: Cresho on April 19, 2006, 03:03:00 am
tried it and failed.  some odd reason cannot find file.  I did recheck my commands and i did find a few errors while before initiating.  Just can't put my finger.  tride hdd3, documents, etc and still says cannot find file.  Ill try again.  I may be too tired.
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on April 19, 2006, 01:17:51 pm
Thanks for your help, Meanie!

Tried what you suggested and deleted all references in 'etc/fstab' and then tried again but here's what I got:

Code: [Select]
#./install.sh
Installing zgcc 2.95.2 to /hdd3
Can't find /mnt/zgcc in /etc/fstab
./install.sh: /mnt/zgcc/zgcc-config: not found
.: Can't open /mnt/zgcc/zgcc-env

So tried to mount manually as you suggested and got:

Code: [Select]
#mount -o loop -t squashfs /hdd3/zgcc2-95-2.squashfs /mnt/zgcc
mount: Mounting /hdd3/zgcc2-95-2.squashfs on /mnt/zgcc failed: No such device

Now what should I do???

Thanks,

Mark

Quote
Quote
OK, finally got rid of my extra loop devices.....

Now when I tried installing zgcc again, I get the following:

Code: [Select]
#./install.sh
Installing zgcc 2.95.2 to /hdd3
mount: Mounting /hdd3/zgcc-95-2.squashfs on /mnt/zgcc failed: no such device
./install.sh: /mnt/zgcc/zgcc-config: not found
.: Can't open /mnt/zgcc/zgcc-env


Any suggestions???

Thanks,

Mark
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123646\"][{POST_SNAPBACK}][/a][/div]

now
Code: [Select]
mount: Mounting /hdd3/zgcc-95-2.squashfs on /mnt/zgcc failed: no such deviceshould be /hdd3/zgcc2-95-2.squashfs
there is a 2 missing?
try editing /etc/fstab and removing all the references to zgcc and try again, or alternatively mount it manually

Code: [Select]
mount -o loop -t squashfs /hdd3/zgcc2-95-2.squashfs /mnt/zgccand then run
Code: [Select]
/mnt/zgcc/zgcc-config
source /mnt/zgcc/zgcc-env
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123717\"][{POST_SNAPBACK}][/a][/div]
Title: Native Gcc Compiler For X/qt
Post by: Meanie on April 20, 2006, 12:58:41 am
I  just found some problems with the compiler when compiling gnome dependant apps so I am rebuilding it and all seems fine now. I will upload a new image soon.

ArchiMark: did you install the squashfs module?
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on April 20, 2006, 09:37:11 am
Meanie,

Just checked and I see that have installed squashfs2 v.1.0.....

Is that the right one???

Look forward to your new image soon....

Thanks,

Mark


Quote
I  just found some problems with the compiler when compiling gnome dependant apps so I am rebuilding it and all seems fine now. I will upload a new image soon.

ArchiMark: did you install the squashfs module?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=123859\"][{POST_SNAPBACK}][/a][/div]
Title: Native Gcc Compiler For X/qt
Post by: Meanie on April 22, 2006, 07:35:57 pm
The newly fixed compiler image has been uploaded
I know it works because I build pdaXqtrom with it  

download from the following locations:
http://zaurus.daemons.gr/menaie/mirror/stuff/ (http://zaurus.daemons.gr/menaie/mirror/stuff/)
http://www.thegrinder.ws/Meanies_XQT/pdaxqtrom/ (http://www.thegrinder.ws/Meanies_XQT/pdaxqtrom/)
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on April 22, 2006, 08:09:42 pm
Hi Meanie,

Thanks for the new image...but unfortunately, still getting the same error messages when I install either with your install script or manually per your instructions above.....

 


Code: [Select]
$ su
#cd /hdd3
# ./install.sh
Installing zgcc 2.95.2 to/hdd3
mount: Mounting /hdd3/zgcc2-95-2.squashfs on /mnt/zgcc failed: No such device
./install.sh: /mnt/zgcc/zgcc-config: not found
.: Can't open /mnt/zgcc/zgcc-env
#mount -o loop -t squashfs /hdd3/zgcc2-95-2.squashfs /mnt/zgcc
Mount: Mounting /hdd3/zgcc2-95-2.squashfs on /mnt/zgcc failed: No such device

Any idea why I keep having the same problem???

What else I should try???

Seems very strange..... I copied both the install script and the zgcc file over to /hdd3 before trying to install again....

Thanks,

Mark
Title: Native Gcc Compiler For X/qt
Post by: Meanie on April 22, 2006, 09:06:03 pm
Quote
Hi Meanie,

Thanks for the new image...but unfortunately, still getting the same error messages when I install either with your install script or manually per your instructions above.....

 


Code: [Select]
$ su
#cd /hdd3
# ./install.sh
Installing zgcc 2.95.2 to/hdd3
mount: Mounting /hdd3/zgcc2-95-2.squashfs on /mnt/zgcc failed: No such device
./install.sh: /mnt/zgcc/zgcc-config: not found
.: Can't open /mnt/zgcc/zgcc-env
#mount -o loop -t squashfs /hdd3/zgcc2-95-2.squashfs /mnt/zgcc
Mount: Mounting /hdd3/zgcc2-95-2.squashfs on /mnt/zgcc failed: No such device

Any idea why I keep having the same problem???

What else I should try???

Seems very strange..... I copied both the install script and the zgcc file over to /hdd3 before trying to install again....

Thanks,

Mark
[div align=\"right\"][{POST_SNAPBACK}][/a][/div] (http://index.php?act=findpost&pid=124231\")

maybe a problem with your squashfs module? can you mount any other squashfs images?
or try the cramfs image that will be uploaded to the pdaxqtrom section later.
[a href=\"http://www.thegrinder.ws/Meanies_XQT/pdaxqtrom/]http://www.thegrinder.ws/Meanies_XQT/pdaxqtrom/[/url]
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on April 22, 2006, 10:16:16 pm
Quote
maybe a problem with your squashfs module? can you mount any other squashfs images?
or try the cramfs image that will be uploaded to the pdaxqtrom section later.
http://www.thegrinder.ws/Meanies_XQT/pdaxqtrom/ (http://www.thegrinder.ws/Meanies_XQT/pdaxqtrom/)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=124233\"][{POST_SNAPBACK}][/a][/div]


You were right, Meanie!

I uninstalled the version of squashfs I was using and installed a newer version and Voila! It installed OK this time!!

Thanks!!

Now onto your new pdaxqtrom.....

 

Mark
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on May 02, 2006, 09:51:01 am
Finally have some time to try out compiling with zgcc.....but having problem compiling with gcc or g++  compiling sample 'hello' file...

I can cd to /mnt/zgcc and see the various directories in it, including /bin, sample, etc....

When I try to compile the 'hello' file using:

Code: [Select]
#g++  -o hello hello.cpp
g++ : Not found

or

Code: [Select]
#gcc  -o hello hello.cpp
gcc : Not found

I've tried both cd'ing to the /sample/hello directory and trying this and cd'ing to the /mnt/zgcc/bin directory, both ways I get the same result as above.

FWIW, I was able to compile in the past (about a year ago...) using the 'dev-img' file...so not sure what I'm doing wrong here...

What should I be doing to compile???

Thanks for any suggestions!

Mark
Title: Native Gcc Compiler For X/qt
Post by: Meanie on May 02, 2006, 10:48:44 am
Quote
Finally have some time to try out compiling with zgcc.....but having problem compiling with gcc or g++  compiling sample 'hello' file...

I can cd to /mnt/zgcc and see the various directories in it, including /bin, sample, etc....

When I try to compile the 'hello' file using:

Code: [Select]
#g++  -o hello hello.cpp
g++ : Not found

or

Code: [Select]
#gcc  -o hello hello.cpp
gcc : Not found

I've tried both cd'ing to the /sample/hello directory and trying this and cd'ing to the /mnt/zgcc/bin directory, both ways I get the same result as above.

FWIW, I was able to compile in the past (about a year ago...) using the 'dev-img' file...so not sure what I'm doing wrong here...

What should I be doing to compile???

Thanks for any suggestions!

Mark
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125408\"][{POST_SNAPBACK}][/a][/div]


you need to set the path.
either manually run
Code: [Select]
source /mnt/zgcc/zgcc-envor add it to the end of your .profile file to have it loaded automatically whenever you start a shell
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on May 02, 2006, 10:52:01 pm
Thanks for the input, Meanie!

OK, tried doing what you suggest and here's what happens when I tried compiling 'Hello':

Code: [Select]
# gcc -o hello hello.cpp
as: error while loading shared libraries: libopcodes-2.9.5.0.31.so: cannot load share object file:
No such file or directory
#

Any suggestions how to deal with this error message??

Thanks,

Mark



Quote
you need to set the path.
either manually run
Code: [Select]
source /mnt/zgcc/zgcc-envor add it to the end of your .profile file to have it loaded automatically whenever you start a shell
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125419\"][{POST_SNAPBACK}][/a][/div]
Title: Native Gcc Compiler For X/qt
Post by: Meanie on May 02, 2006, 11:49:54 pm
Quote
Thanks for the input, Meanie!

OK, tried doing what you suggest and here's what happens when I tried compiling 'Hello':

Code: [Select]
# gcc -o hello hello.cpp
as: error while loading shared libraries: libopcodes-2.9.5.0.31.so: cannot load share object file:
No such file or directory
#

Any suggestions how to deal with this error message??

Thanks,

Mark



Quote
you need to set the path.
either manually run
Code: [Select]
source /mnt/zgcc/zgcc-envor add it to the end of your .profile file to have it loaded automatically whenever you start a shell
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125419\"][{POST_SNAPBACK}][/a][/div]
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125509\"][{POST_SNAPBACK}][/a][/div]

run ldconfig and then try again
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on May 02, 2006, 11:54:57 pm
Quote
run ldconfig and then try again
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125516\"][{POST_SNAPBACK}][/a][/div]

OK, tried that and here's what I got:

Code: [Select]
#ldconfig
ldconfig: File /usr/lib/libc.so is too small, not checked.
# gcc -o hello hello.cpp
/mnt/zgcc/bin/ld: cannot open output file hello: Read-only system
collect2: ld returned 1 exit status
#

Any more suggestions??

Thanks,

Mark
Title: Native Gcc Compiler For X/qt
Post by: Meanie on May 03, 2006, 12:06:15 am
Quote
Quote
run ldconfig and then try again
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125516\"][{POST_SNAPBACK}][/a][/div]

OK, tried that and here's what I got:

Code: [Select]
#ldconfig
ldconfig: File /usr/lib/libc.so is too small, not checked.
# gcc -o hello hello.cpp
/mnt/zgcc/bin/ld: cannot open output file hello: Read-only system
collect2: ld returned 1 exit status
#

Any more suggestions??

Thanks,

Mark
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125517\"][{POST_SNAPBACK}][/a][/div]


well, this is to be expected. you need to copy the sample somewhere else where you actually have write permission, you can't generate files on a mounted cramfs image.
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on May 03, 2006, 10:16:43 pm
Quote
well, this is to be expected. you need to copy the sample somewhere else where you actually have write permission, you can't generate files on a mounted cramfs image.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125520\"][{POST_SNAPBACK}][/a][/div]

Oooppsss.... that makes sense, Meanie....  

Anyway, copied sample files to /hdd3/hello-test and tried again.....below is what I got this time...geez, and this is just a little test file.....

 

Code: [Select]
cd /hdd3/hello-test
# ls
Makefile   hello.cpp
# gcc -o hello hello.cpp
# /tmp/cc9nDkEr.o: In function `main':
> /tmp/cc9nDkEr.o(.text+0x14): undefined reference to `ostream::operator<<(char const *)'
Syntax error: "(" unexpected
# /tmp/cc9nDkEr.o(.text+0x14): relocation truncated to fit: R_ARM_PC24 ostream::operator<<(char const*)
Syntax error: word unexpected (expecting ")")
# *)
Syntax error: unexpected ")"
# /tmp/cc9nDkEr.o(.text+0x24): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x24): relocation truncated to fit: R_ARM_PC24 ostream::operator<<(ostream &(*)(ostream &))
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x38): undefined reference to `cout'
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x40): undefined reference to `endl(ostream &)'
Syntax error: word unexpected (expecting ")")
collect2: ld returned 1 exit status
Title: Native Gcc Compiler For X/qt
Post by: Meanie on May 03, 2006, 11:48:19 pm
Quote
Quote
well, this is to be expected. you need to copy the sample somewhere else where you actually have write permission, you can't generate files on a mounted cramfs image.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125520\"][{POST_SNAPBACK}][/a][/div]

Oooppsss.... that makes sense, Meanie....  

Anyway, copied sample files to /hdd3/hello-test and tried again.....below is what I got this time...geez, and this is just a little test file.....

 

Code: [Select]
cd /hdd3/hello-test
# ls
Makefile   hello.cpp
# gcc -o hello hello.cpp
# /tmp/cc9nDkEr.o: In function `main':
> /tmp/cc9nDkEr.o(.text+0x14): undefined reference to `ostream::operator<<(char const *)'
Syntax error: "(" unexpected
# /tmp/cc9nDkEr.o(.text+0x14): relocation truncated to fit: R_ARM_PC24 ostream::operator<<(char const*)
Syntax error: word unexpected (expecting ")")
# *)
Syntax error: unexpected ")"
# /tmp/cc9nDkEr.o(.text+0x24): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x24): relocation truncated to fit: R_ARM_PC24 ostream::operator<<(ostream &(*)(ostream &))
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x38): undefined reference to `cout'
Syntax error: word unexpected (expecting ")")
# /tmp/cc9nDkEr.o(.text+0x40): undefined reference to `endl(ostream &)'
Syntax error: word unexpected (expecting ")")
collect2: ld returned 1 exit status
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125649\"][{POST_SNAPBACK}][/a][/div]

how about just running make

btw, you are trying to compile a c++ file with a c compiler which of course fails. you can compile c programs with a c++ compiler but not the other way around

gcc = c compiler
g++ = c++ compiler

.c extension usually means c program
.cpp extension usually means c++ program
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on May 04, 2006, 12:25:55 am
Quote
how about just running make

btw, you are trying to compile a c++ file with a c compiler which of course fails. you can compile c programs with a c++ compiler but not the other way around

gcc = c compiler
g++ = c++ compiler

.c extension usually means c program
.cpp extension usually means c++ program
[div align=\"right\"][a href=\"index.php?act=findpost&pid=125658\"][{POST_SNAPBACK}][/a][/div]

Oooopppss, again.....batting 1000 here....  

You're absolutely right, Meanie....need to watch (and think about...) what I'm doing...

Just ran make and all is good!!

Thanks as always, Meanie!!

Mark
Title: Native Gcc Compiler For X/qt
Post by: dinorex on June 08, 2006, 12:57:08 pm
Meanie,

thx for your awesome zgcc-2.95.2.cramfs package, which is under the pdaXqtrom env't, however, I've got questions to ask...

1/ it seems that i still cannot compile the Trolltech Qt tutorials (the 14 steps) as the QPainter.rotate() functions is not encap-ed, actually what's the version of Qt is included?

2/ is it exactly the same as pdaXrom env't? if that's so, can I using the pdaXqtrom to directly produce the 'pdaXrom' ipks so that I don't need to make use of the pdaXrom env't?

i've tried using 'qt-mt_3.3.4_armv5tel.ipk' for 'upgrading' the Qt module, and try to compile a 'freshmeat game' writing in Qt (qgo-1.5-r1.tar.gz) and it still cannot be compiled successfully. can that be compiled in pdaXrom? if so, what module should I add back to the pdaXqtrom so that i can make it under this env't?

3/ for OpenGL modules, I have tried your ipks to install in sharp rom, but it turns out error mesgs (some files are failed to extract...), can that module be embedded in this package as well in your future versions?
Title: Native Gcc Compiler For X/qt
Post by: Meanie on June 09, 2006, 06:51:43 am
Quote
Meanie,

thx for your awesome zgcc-2.95.2.cramfs package, which is under the pdaXqtrom env't, however, I've got questions to ask...

1/ it seems that i still cannot compile the Trolltech Qt tutorials (the 14 steps) as the QPainter.rotate() functions is not encap-ed, actually what's the version of Qt is included?

2/ is it exactly the same as pdaXrom env't? if that's so, can I using the pdaXqtrom to directly produce the 'pdaXrom' ipks so that I don't need to make use of the pdaXrom env't?

i've tried using 'qt-mt_3.3.4_armv5tel.ipk' for 'upgrading' the Qt module, and try to compile a 'freshmeat game' writing in Qt (qgo-1.5-r1.tar.gz) and it still cannot be compiled successfully. can that be compiled in pdaXrom? if so, what module should I add back to the pdaXqtrom so that i can make it under this env't?

3/ for OpenGL modules, I have tried your ipks to install in sharp rom, but it turns out error mesgs (some files are failed to extract...), can that module be embedded in this package as well in your future versions?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130420\"][{POST_SNAPBACK}][/a][/div]

well, this is to be expected. zgcc is a qt/e compiler not qt. sharp rom is based on like qt/e 1.5 which is as ancient as it can get. the libraries i included are for 1.5 so i can build apps compatible for this ancient environment. the pdaxrom libraries and headers i included have only been tested for gtk2 and some minimal gnome necessary for compiling all the apps in pdaxqtrom. qt3 libs and apps are not included yet.
pdaxqtrom != pdaxrom. it is only a small subset of it with the most common apps that use gtk available. kde and qt apps have not been tested yet, and sdl apps will not work at all due to the different sdl libraries used. apps compiled under pdaxqtrom not tied to qt/e or sdl will mostly work on pdaxrom but it is better to compile them for pdaxrom using a softfloat compiler instead of a hardfloat one which is used by pdaxqtrom.
Title: Native Gcc Compiler For X/qt
Post by: yh2006 on June 09, 2006, 11:48:35 pm
Hi meanie,

     I've installed zgcc compiler image to my c1000 using the install shell script.java script:emoticon(':)') The installation went fine and I was able to compile and run the hello example. However, I got the following errors when trying the hello-qt example:

java script:emoticon(':blink:')

$ cd hello/
$ ls
Makefile   hello.cpp  hello.h    hello.pro  main.cpp   wc.t
$ make
g++ -c -pipe -DQT_QWS_SL3000 -DQT_QWS_CUSTOM -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/QtPalmtop/include -o hello.o hello.cpp
In file included from hello.cpp:11:
hello.h:14: qwidget.h: No such file or directory
hello.cpp:12: qpushbutton.h: No such file or directory
hello.cpp:13: qtimer.h: No such file or directory
hello.cpp:14: qpainter.h: No such file or directory
hello.cpp:15: qpixmap.h: No such file or directory
In file included from hello.cpp:11:
hello.h:18: parse error before `{'
hello.h:22: syntax error before `:'
hello.h:26: `QPaintEvent' was not declared in this scope
hello.h:26: parse error before `)'
hello.h:32: parse error before `}'
hello.cpp:22: type specifier omitted for parameter
hello.cpp:22: parse error before `*'
hello.cpp:23: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `Hello::Hello(...)':
hello.cpp:23: `parent' undeclared (first use this function)
hello.cpp:23: (Each undeclared identifier is reported only once
hello.cpp:23: for each function it appears in.)
hello.cpp:23: `name' undeclared (first use this function)
hello.cpp:23: class `Hello' does not have any field named `QWidget'
hello.cpp:23: `text' undeclared (first use this function)
hello.cpp:23: class `Hello' does not have any field named `t'
hello.cpp:23: class `Hello' does not have any field named `b'
hello.cpp:25: `QTimer' undeclared (first use this function)
hello.cpp:25: `timer' undeclared (first use this function)
hello.cpp:25: parse error before `('
hello.cpp:26: implicit declaration of function `int timeout(...)'
hello.cpp:26: implicit declaration of function `int SIGNAL(...)'
hello.cpp:26: implicit declaration of function `int animate(...)'
hello.cpp:26: implicit declaration of function `int SLOT(...)'
hello.cpp:26: implicit declaration of function `int connect(...)'
hello.cpp:29: implicit declaration of function `int resize(...)'
hello.cpp: At top level:
hello.cpp:38: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `void Hello::animate()':
hello.cpp:40: `FALSE' undeclared (first use this function)
hello.cpp:40: implicit declaration of function `int repaint(...)'
hello.cpp: At top level:
hello.cpp:51: `QMouseEvent' was not declared in this scope
hello.cpp:51: `e' was not declared in this scope
hello.cpp:52: structure `Hello' not yet defined
hello.cpp:52: invalid declarator
hello.cpp:52: syntax error before `{'
hello.cpp:65: `QPaintEvent' was not declared in this scope
hello.cpp:65: parse error before `)'
hello.cpp:66: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `void Hello::paintEvent(...)':
hello.cpp:70: `t' undeclared (first use this function)
hello.cpp:74: `QFontMetrics' undeclared (first use this function)
hello.cpp:74: parse error before `='
hello.cpp:75: `fm' undeclared (first use this function)
hello.cpp:77: implicit declaration of function `int width(...)'
hello.cpp:78: implicit declaration of function `int height(...)'
hello.cpp:81: `QPixmap' undeclared (first use this function)
hello.cpp:81: parse error before `('
hello.cpp:82: `pm' undeclared (first use this function)
hello.cpp:85: `QPainter' undeclared (first use this function)
hello.cpp:85: parse error before `;'
hello.cpp:89: `p' undeclared (first use this function)
hello.cpp:90: implicit declaration of function `int font(...)'
hello.cpp:93: `QColor' undeclared (first use this function)
hello.cpp:93: parse error before `::'
hello.cpp:101: implicit declaration of function `int bitBlt(...)'
make: *** [hello.o] Error 1
$                                                      

      Do I need to make some modifications to get it compile and execute?

      Also, would you please suggest how to remove/unmount the zgcc cramfs cleanly/completely.
I got the image from a link from the zbook-3k pdf file. I'm not sure this is the latest version or not and would like to install the one from this thread.

Thanks.
Title: Native Gcc Compiler For X/qt
Post by: Meanie on June 10, 2006, 09:09:29 am
Quote
Hi meanie,

     I've installed zgcc compiler image to my c1000 using the install shell script.java script:emoticon(':)') The installation went fine and I was able to compile and run the hello example. However, I got the following errors when trying the hello-qt example:

java script:emoticon(':blink:')

$ cd hello/
$ ls
Makefile   hello.cpp  hello.h    hello.pro  main.cpp   wc.t
$ make
g++ -c -pipe -DQT_QWS_SL3000 -DQT_QWS_CUSTOM -DQWS -fno-exceptions -fno-rtti -Wall -W -O2 -DNO_DEBUG -I/home/QtPalmtop/include -o hello.o hello.cpp
In file included from hello.cpp:11:
hello.h:14: qwidget.h: No such file or directory
hello.cpp:12: qpushbutton.h: No such file or directory
hello.cpp:13: qtimer.h: No such file or directory
hello.cpp:14: qpainter.h: No such file or directory
hello.cpp:15: qpixmap.h: No such file or directory
In file included from hello.cpp:11:
hello.h:18: parse error before `{'
hello.h:22: syntax error before `:'
hello.h:26: `QPaintEvent' was not declared in this scope
hello.h:26: parse error before `)'
hello.h:32: parse error before `}'
hello.cpp:22: type specifier omitted for parameter
hello.cpp:22: parse error before `*'
hello.cpp:23: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `Hello::Hello(...)':
hello.cpp:23: `parent' undeclared (first use this function)
hello.cpp:23: (Each undeclared identifier is reported only once
hello.cpp:23: for each function it appears in.)
hello.cpp:23: `name' undeclared (first use this function)
hello.cpp:23: class `Hello' does not have any field named `QWidget'
hello.cpp:23: `text' undeclared (first use this function)
hello.cpp:23: class `Hello' does not have any field named `t'
hello.cpp:23: class `Hello' does not have any field named `b'
hello.cpp:25: `QTimer' undeclared (first use this function)
hello.cpp:25: `timer' undeclared (first use this function)
hello.cpp:25: parse error before `('
hello.cpp:26: implicit declaration of function `int timeout(...)'
hello.cpp:26: implicit declaration of function `int SIGNAL(...)'
hello.cpp:26: implicit declaration of function `int animate(...)'
hello.cpp:26: implicit declaration of function `int SLOT(...)'
hello.cpp:26: implicit declaration of function `int connect(...)'
hello.cpp:29: implicit declaration of function `int resize(...)'
hello.cpp: At top level:
hello.cpp:38: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `void Hello::animate()':
hello.cpp:40: `FALSE' undeclared (first use this function)
hello.cpp:40: implicit declaration of function `int repaint(...)'
hello.cpp: At top level:
hello.cpp:51: `QMouseEvent' was not declared in this scope
hello.cpp:51: `e' was not declared in this scope
hello.cpp:52: structure `Hello' not yet defined
hello.cpp:52: invalid declarator
hello.cpp:52: syntax error before `{'
hello.cpp:65: `QPaintEvent' was not declared in this scope
hello.cpp:65: parse error before `)'
hello.cpp:66: invalid use of undefined type `class Hello'
hello.h:17: forward declaration of `class Hello'
hello.cpp: In method `void Hello::paintEvent(...)':
hello.cpp:70: `t' undeclared (first use this function)
hello.cpp:74: `QFontMetrics' undeclared (first use this function)
hello.cpp:74: parse error before `='
hello.cpp:75: `fm' undeclared (first use this function)
hello.cpp:77: implicit declaration of function `int width(...)'
hello.cpp:78: implicit declaration of function `int height(...)'
hello.cpp:81: `QPixmap' undeclared (first use this function)
hello.cpp:81: parse error before `('
hello.cpp:82: `pm' undeclared (first use this function)
hello.cpp:85: `QPainter' undeclared (first use this function)
hello.cpp:85: parse error before `;'
hello.cpp:89: `p' undeclared (first use this function)
hello.cpp:90: implicit declaration of function `int font(...)'
hello.cpp:93: `QColor' undeclared (first use this function)
hello.cpp:93: parse error before `::'
hello.cpp:101: implicit declaration of function `int bitBlt(...)'
make: *** [hello.o] Error 1
$                                                     

      Do I need to make some modifications to get it compile and execute?

      Also, would you please suggest how to remove/unmount the zgcc cramfs cleanly/completely.
I got the image from a link from the zbook-3k pdf file. I'm not sure this is the latest version or not and would like to install the one from this thread.

Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130629\"][{POST_SNAPBACK}][/a][/div]


add /qpe to the end INCPATH in the Makefile
Title: Native Gcc Compiler For X/qt
Post by: yh2006 on June 10, 2006, 03:29:28 pm
Meanie,

     I added /qpe to the end of INCPATH in the Makefile so it reads like -I$(QTDIR)/include/qpe, but it gives the same errors as before.
     QTDIR is pointing at /home/QtPalmtop( I checked with echo) and I notice that
 /include is empty. Am I doing something wrong during installation or setting up the INCPATH?

     Do I need to install the GTK library if I want to compile GTK apps?


    Thanks for answering my newbie questions.
Title: Native Gcc Compiler For X/qt
Post by: Meanie on June 10, 2006, 07:40:15 pm
Quote
Meanie,

     I added /qpe to the end of INCPATH in the Makefile so it reads like -I$(QTDIR)/include/qpe, but it gives the same errors as before.
     QTDIR is pointing at /home/QtPalmtop( I checked with echo) and I notice that
 /include is empty. Am I doing something wrong during installation or setting up the INCPATH?

     Do I need to install the GTK library if I want to compile GTK apps?


    Thanks for answering my newbie questions.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130676\"][{POST_SNAPBACK}][/a][/div]

you need to link /home/QtPalmtop/include to /mnt/zgcc/include
ie ln -s /mnt/zgcc/include /home/QtPalmtop/include

for gtk apps, you will need gtk, x, glib... best is to install pdaxqtrom-base
Title: Native Gcc Compiler For X/qt
Post by: bam on June 11, 2006, 12:43:06 am
any chance in you making a gcc image sans the x stuff, as I dont use x/qt stuff anymore. Or "what" would I have to remove in your current image?
Title: Native Gcc Compiler For X/qt
Post by: Meanie on June 15, 2006, 08:02:12 am
Quote
any chance in you making a gcc image sans the x stuff, as I dont use x/qt stuff anymore. Or "what" would I have to remove in your current image?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=130726\"][{POST_SNAPBACK}][/a][/div]

if you can find an old version of the image, it was without the xqt stuff
the old image didnt have perl so it was much smaller, so there's just lots of include headers and libraries that were added for xqt as well.

i am gonna make it even bigger by adding qt 3.3 headers and libraries
Title: Native Gcc Compiler For X/qt
Post by: miskinis on June 15, 2006, 03:17:34 pm
Quote
[...] as I dont use x/qt stuff anymore. [...]

Bam, I was hoping to setup this xqt environment to get Space Trader
working.  I'm having some issues on the 5500, but I was hoping this
graphical environment would be suitable for Space Trader...

John
Title: Native Gcc Compiler For X/qt
Post by: bam on June 15, 2006, 08:51:06 pm
oof, maybe I can setup a minimal xqt rootless mode.....I was hoping for a qtopia version...
Title: Native Gcc Compiler For X/qt
Post by: miskinis on June 16, 2006, 09:36:13 am
Quote
oof, maybe I can setup a minimal xqt rootless mode...

I get the feeling that the rootless option although pretty powerful, gets too
complicated as soon as you want to run several X clients simultaneously,
i.e. multiple DISPLAY's, from what I read in the rootless post.  I get the
impression it is being abandoned.

Quote
I was hoping for a qtopia version...

I'm very hesitant to spend time learning about the Qt API to provide a Qt-based
LINUX conversion of Space Trader.  I feel an X11-based version would allow
almost anyone with running LINUX to enjoy the game ultimately.  I am very interested
in this particular "packaging of an X/Qt environment", whether it be just the X server,
apps and a gcc development environment, OR the full pdaXrom under X/Qt.

Since I wish to get this setup on a 5500 first (then an 6000), I am more interested
in saving resources and living without the full pdaXrom.
Title: Native Gcc Compiler For X/qt
Post by: Meanie on June 18, 2006, 09:44:50 pm
Quote
Quote
oof, maybe I can setup a minimal xqt rootless mode...

I get the feeling that the rootless option although pretty powerful, gets too
complicated as soon as you want to run several X clients simultaneously,
i.e. multiple DISPLAY's, from what I read in the rootless post.  I get the
impression it is being abandoned.

Quote
I was hoping for a qtopia version...

I'm very hesitant to spend time learning about the Qt API to provide a Qt-based
LINUX conversion of Space Trader.  I feel an X11-based version would allow
almost anyone with running LINUX to enjoy the game ultimately.  I am very interested
in this particular "packaging of an X/Qt environment", whether it be just the X server,
apps and a gcc development environment, OR the full pdaXrom under X/Qt.

Since I wish to get this setup on a 5500 first (then an 6000), I am more interested
in saving resources and living without the full pdaXrom.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=131383\"][{POST_SNAPBACK}][/a][/div]

actually, the rootless mode thing is not as powerful as hoped for imho, but I got around the DISPLAY issue, etc..., ie you can have multiple rootless apps running concurrently, but I wouldn't recommend it because the Z doesn't have that much memory. For example, and these are just numbers I use for illustration purpose and not the real memory usage of Xqt, but lets say the whole X environment uses 50MB of memory plus apps, the rootless env would perhaps use 35MB, but if you run two rootless apps, then it would be 2 x 35MB + app1 + app2, whereas the full X environment would just be 50MB + app1 + app2
it doesn't really matter what you do, memory usage is the big problem and the 64MB of RAM in the Z is really the bottleneck. a swapfile is very helpful, but it suffers from the slow disk i/o

anyway, I am trying to get Qt 3.3.5 working under XQt, not so much joy so far...
Title: Native Gcc Compiler For X/qt
Post by: miskinis on June 20, 2006, 03:14:34 pm
Quote
[...] a swapfile is very helpful, but it suffers from the slow disk i/o

Disk?  What disk? I have no disk!  I use a swapfile on SD myself!  

Sorry to hear Qt 3.3.5 is frustrating you.  I look forward to trying any new
release you provide, and hopefully it will work on the SL-5500.

Best of luck!  John
Title: Native Gcc Compiler For X/qt
Post by: Meanie on June 21, 2006, 10:01:07 pm
Quote
Quote
[...] a swapfile is very helpful, but it suffers from the slow disk i/o

Disk?  What disk? I have no disk!  I use a swapfile on SD myself!  

Sorry to hear Qt 3.3.5 is frustrating you.  I look forward to trying any new
release you provide, and hopefully it will work on the SL-5500.

Best of luck!  John
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132075\"][{POST_SNAPBACK}][/a][/div]

when I say disk its a general term for microdrive, SD/CF cards, usb stick....

Qt3 is still giving me grief. i compile it every night with different options and every morning I find it compiled successfully without errors, but it won't run or link apps
I think I am getting closer though, getting different linker errors so seems like I am on the right track. A few more overnight compilations and I might get there...
Once qt3 is compiled, I will try to compile kde3 and then I would have a full environment (except SDL which is still trouble).
why am I doing this? I know kdemicrolibs exists and can be used to port qt3/kde3 apps for qte, but I want a full X environment with qt3 and kde3 running under X/Qt.
Took me a day to compile Qt3 Designer natively on pdaXrom, but I want it on Sharp ROM too
Title: Native Gcc Compiler For X/qt
Post by: ArchiMark on June 21, 2006, 10:30:28 pm
As I've said before (and if not, I should have...  )

You're 'da Man, Meanie!!!!!

Thanks as always for ALL the great stuff you're doing for all of us Zster's....

 


Mark
Title: Native Gcc Compiler For X/qt
Post by: yh2006 on June 21, 2006, 11:41:02 pm
Hi Meanie,

     Your work is truly amazing and beneficial to newbies like me. I am looking forward to try out your pdaxqtrom 0.8.0.

     I have an older version of the gcc complier installed using the install script but I would like to uninstall it completely/cleaning so I can install the upcoming gcc release (with QT3). What would be the best way to delete it? I am not sure how to remove all those symbolic links created during installation.

Thanks.
Title: Native Gcc Compiler For X/qt
Post by: Meanie on June 22, 2006, 11:08:35 pm
Quote
Hi Meanie,

     Your work is truly amazing and beneficial to newbies like me. I am looking forward to try out your pdaxqtrom 0.8.0.

     I have an older version of the gcc complier installed using the install script but I would like to uninstall it completely/cleaning so I can install the upcoming gcc release (with QT3). What would be the best way to delete it? I am not sure how to remove all those symbolic links created during installation.

Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132312\"][{POST_SNAPBACK}][/a][/div]

the links haven't changed
updating the zgcc image is quite simple. just replace the cramfs or squashfs file (after you unmount the image first of course)
then run zgcc-setup just to be sure


anyway, I finally managed to compile qt3 in such a way that I can now successfully compile the samples and tutorials.... now I have to rebuild everything with shared libraries instead of static linking...

look, qt3 sample app under x/qt   it's getting there but still quite a lot of problems to iron out...
Title: Native Gcc Compiler For X/qt
Post by: Meanie on June 26, 2006, 02:41:49 am
Quote
Quote
Hi Meanie,

     Your work is truly amazing and beneficial to newbies like me. I am looking forward to try out your pdaxqtrom 0.8.0.

     I have an older version of the gcc complier installed using the install script but I would like to uninstall it completely/cleaning so I can install the upcoming gcc release (with QT3). What would be the best way to delete it? I am not sure how to remove all those symbolic links created during installation.

Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132312\"][{POST_SNAPBACK}][/a][/div]

the links haven't changed
updating the zgcc image is quite simple. just replace the cramfs or squashfs file (after you unmount the image first of course)
then run zgcc-setup just to be sure


anyway, I finally managed to compile qt3 in such a way that I can now successfully compile the samples and tutorials.... now I have to rebuild everything with shared libraries instead of static linking...

look, qt3 sample app under x/qt   it's getting there but still quite a lot of problems to iron out...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132488\"][{POST_SNAPBACK}][/a][/div]

still no joy with qt3. the sample apps compile and link fine when doing it statically but that results in huge binaries... but linking them with shared libraries don't work still
so i decided to compile binutils 2.16 and see if that's any better.... might as well compile automake and autoconf as well while I'm at it...
Title: Native Gcc Compiler For X/qt
Post by: Cresho on June 26, 2006, 03:47:45 am
Quote
Quote
Quote
Hi Meanie,

     Your work is truly amazing and beneficial to newbies like me. I am looking forward to try out your pdaxqtrom 0.8.0.

     I have an older version of the gcc complier installed using the install script but I would like to uninstall it completely/cleaning so I can install the upcoming gcc release (with QT3). What would be the best way to delete it? I am not sure how to remove all those symbolic links created during installation.

Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132312\"][{POST_SNAPBACK}][/a][/div]

the links haven't changed
updating the zgcc image is quite simple. just replace the cramfs or squashfs file (after you unmount the image first of course)
then run zgcc-setup just to be sure


anyway, I finally managed to compile qt3 in such a way that I can now successfully compile the samples and tutorials.... now I have to rebuild everything with shared libraries instead of static linking...

look, qt3 sample app under x/qt   it's getting there but still quite a lot of problems to iron out...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132488\"][{POST_SNAPBACK}][/a][/div]

still no joy with qt3. the sample apps compile and link fine when doing it statically but that results in huge binaries... but linking them with shared libraries don't work still
so i decided to compile binutils 2.16 and see if that's any better.... might as well compile automake and autoconf as well while I'm at it...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=132858\"][{POST_SNAPBACK}][/a][/div]


       
Title: Native Gcc Compiler For X/qt
Post by: Meanie on July 09, 2006, 09:02:13 am
well, got it finally!  
updated the complete zgcc image (gcc compiler 2.95.3 and all the bundled tools: autoconf 2.59, automake 1.9.2, coreutils 5.0, diffutils 2.8.1, gawk 3.1.5, grep 2.5, sed 4.0.9, texinfo 4.8 and binutils 2.16) and was able to compile glibc 2.2.2 and fixed fesetenv and fegetenv.
with this updated compiler and tools as well as a bundled fixed glibc, I managed to compile qt 3.3.6 natively. currently, qt apps compile fine, except the font is messed up
new zgcc image will be uploaded soon. i am gonna fix the font problem later. this new image is going to be quite big since it includes quite a lot more files but it can compile so much more stuff.
Title: Native Gcc Compiler For X/qt
Post by: bam on July 12, 2006, 06:45:45 am
cant wait
Title: Native Gcc Compiler For X/qt
Post by: yh2006 on July 13, 2006, 01:24:16 am
Hi Meanie,

        Would the new gcc compiler or future release of pdaxqtrom come with libxml2 and libxml2-devel(if not already)?

Thanks.
Title: Native Gcc Compiler For X/qt
Post by: darkloran on July 13, 2006, 02:11:13 am
Hi,
Quote
        Would the new gcc compiler or future release of pdaxqtrom come with libxml2 and libxml2-devel(if not already)?

the zgcc-2.95.2 already includes xml2-config for compilation.
the libs are included in package libxml2_2.6.14-1_arm.ipk (http://xqt.sourceforge.jp/feed-testing/libxml2_2.6.14-1_arm.ipk)
Title: Native Gcc Compiler For X/qt
Post by: Meanie on July 13, 2006, 03:05:43 am
Quote
Hi,
Quote
        Would the new gcc compiler or future release of pdaxqtrom come with libxml2 and libxml2-devel(if not already)?

the zgcc-2.95.2 already includes xml2-config for compilation.
the libs are included in package libxml2_2.6.14-1_arm.ipk (http://xqt.sourceforge.jp/feed-testing/libxml2_2.6.14-1_arm.ipk)
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
 (http://index.php?act=findpost&pid=134965\")

yep, it's always been there, since when I first tried to compile a X11 app with it...
if you install zgcc and the pdaXqtrom-base images, then you have everything you need, headers, config and libraries, otherwise, you will need to install the ipk for the libs which are all available from [a href=\"http://www.thegrinder.ws/Meanies_XQT/pdaxqtrom/feed/base/]http://www.thegrinder.ws/Meanies_XQT/pdaxqtrom/feed/base/[/url]

zgcc 2.95.3 is the most up to date dev image with lots more updated tools, patched header files and additional static libraries for static linking. a patched glibc-2.2.2. is also included. this image is able to compile almost anything that does not require gcc 3.x
Title: Native Gcc Compiler For X/qt
Post by: yh2006 on July 17, 2006, 05:13:25 am
Hi Meanie,

     I tried to install the pdaxqtrom base, app, java, dictionary, and zgcc images all together with the provided shell script to my c1000 (loaded with cacko rom). But I always get the following errors during installation:

/home/zaurus/.free42/Voyager42.layout: Read-only file system
/home/zaurus/.free42/42ck.gif: Read-only file system


mount: Mounting /usr/mnt.rom/card/pdaxqtrom0.8.0/zgcc2-95-3.squashfs on /mnt/zgcc failed: Invalid argument

...linking stardic dictionaries
ln:/usr/share/stardic/dic: No such file or directory

Java Runtime Environment and Tools
Installing java
warning:/usr/bin/jamvm already exists
java runtime environment configured and ready
Installing java applications...
chown:unknown user name: /home/zaurus/Applications/hdcrawler
chown:unknown user name: /home/zaurus/Applications/hdpad

I tried using the cleanup script and then re-run the install script but still get those errors.

I noticed that the zgcc dir in /mnt is empty and there are only 4 loop devices created for base, apps, java, and dictionaries but not zgcc.
What should I do to get zgcc properly installed and mounted?

Do I need to care about those output related to free42?

I also found out that nedit and stardict actually seg fault when I tried to run them with xlauncher -debug.
 
Thanks.
Title: Native Gcc Compiler For X/qt
Post by: yh2006 on July 20, 2006, 03:02:07 am
Quote
Hi Meanie,

     I tried to install the pdaxqtrom base, app, java, dictionary, and zgcc images all together with the provided shell script to my c1000 (loaded with cacko rom). But I always get the following errors during installation:

/home/zaurus/.free42/Voyager42.layout: Read-only file system
/home/zaurus/.free42/42ck.gif: Read-only file system


mount: Mounting /usr/mnt.rom/card/pdaxqtrom0.8.0/zgcc2-95-3.squashfs on /mnt/zgcc failed: Invalid argument

...linking stardic dictionaries
ln:/usr/share/stardic/dic: No such file or directory

Java Runtime Environment and Tools
Installing java
warning:/usr/bin/jamvm already exists
java runtime environment configured and ready
Installing java applications...
chown:unknown user name: /home/zaurus/Applications/hdcrawler
chown:unknown user name: /home/zaurus/Applications/hdpad

I tried using the cleanup script and then re-run the install script but still get those errors.

I noticed that the zgcc dir in /mnt is empty and there are only 4 loop devices created for base, apps, java, and dictionaries but not zgcc.
What should I do to get zgcc properly installed and mounted?

Do I need to care about those output related to free42?

I also found out that nedit and stardict actually seg fault when I tried to run them with xlauncher -debug.
 
Thanks.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=135361\"][{POST_SNAPBACK}][/a][/div]


zgcc mounting problem is solved if I used the cramfs image instead, but it still can't find any dictionaries for StarDict.

Also, I can't activate scim by ctrl + space. I tried switching to fullscreen mode and I have not used monolingual.

Please help.

Thanks.
Title: Native Gcc Compiler For X/qt
Post by: Meanie on September 05, 2006, 12:01:49 am
found a small problem with the configuration of the compiler in that it links the in-image libraries in to the produced lbinaries so that the zgcc image is required in order to run the binaries.

fixed and will be uploaded asap...
Title: Native Gcc Compiler For X/qt
Post by: jpmatrix on October 04, 2006, 08:17:07 am
Meanie,

i'm trying to compile a driver for an usb wifi lan adapter, the compilation seems to be good but the target.o seems to be for a 2.4.18-mk3 kernel!!! (and not 2.4.20)

would you tell me where can be the problem ?

(i'm using your latest 0.8.2 zgcc cramfs file)
Title: Native Gcc Compiler For X/qt
Post by: Meanie on October 05, 2006, 09:26:23 am
Quote
Meanie,

i'm trying to compile a driver for an usb wifi lan adapter, the compilation seems to be good but the target.o seems to be for a 2.4.18-mk3 kernel!!! (and not 2.4.20)

would you tell me where can be the problem ?

(i'm using your latest 0.8.2 zgcc cramfs file)
[div align=\"right\"][a href=\"index.php?act=findpost&pid=143045\"][{POST_SNAPBACK}][/a][/div]

there is a header file which defines the kernel version. i thought i updated it to 2.4.20 but seems like it got overwritten again somehow. you might want to try the zgcc lite image since it is an ext2 loop filesystem and you can easily edit the header file in question.
Title: Native Gcc Compiler For X/qt
Post by: xjqian on January 29, 2007, 03:38:29 pm
I can't find the latest qt3 zgcc cramfs file. Any pointers? Meanie, did you move it out from your feed?