Help - Search - Members - Calendar
Full Version: Native Gcc Compiler For X/qt
OESF Forums > Distros, Development, and Model Specific Forums > Everything Development > X/Qt
Pages: 1, 2
Meanie
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.
ShiroiKuma
Oh yes, this is a dream!!!

When? When? smile.gif
xjqian
2.4.18 or 2.4.20 kernel or both?
Meanie
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.
DaemonsGR
pdaXqtrom????? sound very cool!!!!
Is this an pdax with QT?
Meanie
QUOTE(DaemonsGR @ Apr 12 2006, 02:45 AM)
pdaXqtrom????? sound very cool!!!!
Is this an pdax with QT?
*


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
Jon_J
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
Meanie
QUOTE(Jon_J @ Apr 12 2006, 03:06 PM)
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
*


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 http://www.oesf.org/forums/index.php?showtopic=16750&hl=

And if anyone want to try my zgcc image, here is the link:
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 smile.gif
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.
amotyka
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
ArchiMark
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??

blink.gif

Thanks,

Mark
Borealid
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?
ArchiMark
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???

sad.gif


Thanks,

Mark
Meanie
QUOTE(ArchiMark @ Apr 16 2006, 06:33 AM)
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???

sad.gif


Thanks,

Mark
*


sorry, I included the wrong install script. please replace it with this one
ArchiMark
Thanks for the updated install script, Meanie!

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

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

CODE
# ./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
#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
DaemonsGR
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
ArchiMark
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
ArchiMark
OK, finally got rid of my extra loop devices.....

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

CODE
#./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
Meanie
QUOTE(ArchiMark @ Apr 19 2006, 01:09 AM)
OK, finally got rid of my extra loop devices.....

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

CODE
#./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
*


now
CODE
mount: Mounting /hdd3/zgcc-95-2.squashfs on /mnt/zgcc failed: no such device

should 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
mount -o loop -t squashfs /hdd3/zgcc2-95-2.squashfs /mnt/zgcc

and then run
CODE
/mnt/zgcc/zgcc-config
source /mnt/zgcc/zgcc-env
Cresho
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.
ArchiMark
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
#./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
#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(Meanie @ Apr 18 2006, 09:26 PM)
QUOTE(ArchiMark @ Apr 19 2006, 01:09 AM)
OK, finally got rid of my extra loop devices.....

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

CODE
#./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
*


now
CODE
mount: Mounting /hdd3/zgcc-95-2.squashfs on /mnt/zgcc failed: no such device

should 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
mount -o loop -t squashfs /hdd3/zgcc2-95-2.squashfs /mnt/zgcc

and then run
CODE
/mnt/zgcc/zgcc-config
source /mnt/zgcc/zgcc-env

*

Meanie
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?
ArchiMark
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(Meanie @ Apr 19 2006, 09:58 PM)
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?
*
Meanie
The newly fixed compiler image has been uploaded smile.gif
I know it works because I build pdaXqtrom with it tongue.gif

download from the following locations:
http://zaurus.daemons.gr/menaie/mirror/stuff/
http://www.thegrinder.ws/Meanies_XQT/pdaxqtrom/
ArchiMark
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.....

blink.gif


CODE
$ 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
Meanie
QUOTE(ArchiMark @ Apr 23 2006, 10:09 AM)
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.....

blink.gif


CODE
$ 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
*


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/
ArchiMark
QUOTE(Meanie @ Apr 22 2006, 06:06 PM)
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/
*



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.....

rolleyes.gif

Mark
ArchiMark
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
#g++  -o hello hello.cpp
g++ : Not found


or

CODE
#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
Meanie
QUOTE(ArchiMark @ May 2 2006, 11:51 PM)
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
#g++  -o hello hello.cpp
g++ : Not found


or

CODE
#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
*



you need to set the path.
either manually run
CODE
source /mnt/zgcc/zgcc-env

or add it to the end of your .profile file to have it loaded automatically whenever you start a shell
ArchiMark
Thanks for the input, Meanie!

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

CODE
# 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(Meanie @ May 2 2006, 07:48 AM)
you need to set the path.
either manually run
CODE
source /mnt/zgcc/zgcc-env

or add it to the end of your .profile file to have it loaded automatically whenever you start a shell
*
Meanie
QUOTE(ArchiMark @ May 3 2006, 12:52 PM)
Thanks for the input, Meanie!

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

CODE
# 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(Meanie @ May 2 2006, 07:48 AM)
you need to set the path.
either manually run
CODE
source /mnt/zgcc/zgcc-env

or add it to the end of your .profile file to have it loaded automatically whenever you start a shell
*

*



run ldconfig and then try again
ArchiMark
QUOTE(Meanie @ May 2 2006, 08:49 PM)
run ldconfig and then try again
*


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

CODE
#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
Meanie
QUOTE(ArchiMark @ May 3 2006, 01:54 PM)
QUOTE(Meanie @ May 2 2006, 08:49 PM)
run ldconfig and then try again
*


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

CODE
#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
*




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.
ArchiMark
QUOTE(Meanie @ May 2 2006, 09:06 PM)
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.
*


Oooppsss.... that makes sense, Meanie.... rolleyes.gif

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.....

blink.gif

CODE
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
Meanie
QUOTE(ArchiMark @ May 4 2006, 12:16 PM)
QUOTE(Meanie @ May 2 2006, 09:06 PM)
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.
*


Oooppsss.... that makes sense, Meanie.... rolleyes.gif

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.....

blink.gif

CODE
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

*



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
ArchiMark
QUOTE(Meanie @ May 3 2006, 08:48 PM)
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
*


Oooopppss, again.....batting 1000 here.... rolleyes.gif

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
dinorex
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?
Meanie
QUOTE(dinorex @ Jun 9 2006, 02:57 AM)
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?
*


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.
yh2006
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.
Meanie
QUOTE(yh2006 @ Jun 10 2006, 01:48 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.
*



add /qpe to the end INCPATH in the Makefile
yh2006
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.
Meanie
QUOTE(yh2006 @ Jun 11 2006, 05:29 AM)
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.
*


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
bam
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?
Meanie
QUOTE(bam @ Jun 11 2006, 02:43 PM)
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?
*


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 smile.gif
miskinis
QUOTE(bam @ Jun 11 2006, 04:43 AM)
[...] 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
bam
oof, maybe I can setup a minimal xqt rootless mode.....I was hoping for a qtopia version...
miskinis
QUOTE(bam @ Jun 16 2006, 12:51 AM)
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(bam @ Jun 16 2006, 12:51 AM)
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.
Meanie
QUOTE(miskinis @ Jun 16 2006, 11:36 PM)
QUOTE(bam @ Jun 16 2006, 12:51 AM)
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(bam @ Jun 16 2006, 12:51 AM)
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.
*



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...
miskinis
QUOTE(Meanie @ Jun 19 2006, 01:44 AM)
[...] 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! smile.gif

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
Meanie
QUOTE(miskinis @ Jun 21 2006, 05:14 AM)
QUOTE(Meanie @ Jun 19 2006, 01:44 AM)
[...] 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! smile.gif

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
*



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 sad.gif
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 smile.gif
ArchiMark
As I've said before (and if not, I should have... rolleyes.gif )

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

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

biggrin.gif


Mark
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.