Author Topic: Using Pc To Develop Qt3 Applications For Pdaxrom  (Read 5083 times)

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Using Pc To Develop Qt3 Applications For Pdaxrom
« on: March 05, 2007, 07:02:46 pm »
I don't know whether this topic should be posted here or not: since it is related to pdaXrom, I just post this topic here....

There are so many programming framework can be used to develop in pdaXrom, for example, gtk; but I am trying to introduce Qt here because it is rapid to develop many components out in minutes using the GUI tools like QtDesigner, which is very similar to the Visual Studio IDE on developing apps. If you have tasted in the VS IDE in your daily life, you should be happy to taste with the Designer in Qt as well.

in pdaXrom feeds, there are already a number of x86 images available, but only beta1 is having the vmware image which can be read-write; whereas from beta3 onwards, all the x86 images are CD iso images that are read-only. Therefore, if you really want to do things without any restrictions, you can work from the vmware image straight away. (The vmware image is broken in mail.pdaxrom.org, you can get the tarball of it from http://distro.ibiblio.org/pub/linux/distri...vmware/?C=D;O=A , which is 231M)

However, I also recommend to use an alternative method: open the later versions of iso images via Virtual PC (from M$ which is also a freeware) and attach the ISO file as a virtual CD-ROM to trigger this OS, and creating a virtual harddisk using inside Virtual PC... Although this method is a little bit complicated, the effect is also acceptable as you can stick to use your virtual harddisk as your working environment.

Since the Qt 3.3.5 inside the vmware image (and so for the ISO images) cannot be used to compile (no moc, designer, linguist and so on), we need to compile them again so that the Qt can be used to compile moc meta objects and design .... Orz


for the Qt 3.3.8 , which is released very recently at 20 Feb 2007, can be obtained from http://www.trolltech.com download.

how to put the qt-x11-opensource-3.3.8 tarball into the vmware image? the most convenient way is to use CD burner. Just burn the tarball inside a CD-RW and adjust the VMWare virtual machine file to hook your CD-ROM, and start the virtual machine (vm).

inside the vm, you can start a terminal (like aterm / rxvt) and check /dev/cdroms/cdrom0 is available (it should be available) , and mount it to /mnt/cdrom: -
Code: [Select]
mount /dev/cdroms/cdrom0 /mnt/cdromls -l /mnt/cdrom, you should see the qt-3.3.8 tarball.

cd to your root dir (/home/root), issue the following command for direct extraction of your tarball
Code: [Select]
tar zvxf /mnt/cdrom/qt-x11-opensource-3.3.8.tar.gzresultant dir will be /home/root/qt-x11-opensource-3.3.8

cd to the resultant dir, type
Code: [Select]
./configure
Code: [Select]
makewait for half to one hour, your qt 3.3.8 should be built.  

Code: [Select]
cp /ho=me/root/qt-x11-opensource-3.3.8/bin/* /usr/local/qt/bin(which is the vmware's qt location), your Qt should be available to use  

if the Qt is still not available, maybe $QTDIR , $QMAKESPEC or $PATH is not included the dir. please read relevant information in Google which can fix them.

All i can remind at this moment is the settings inside /usr/local/qt/mkspecs/default/qmake.conf is not correct, the C++ and CXX environmental variables should be gcc / g++ instead of i686-linux-gcc / i686-linux-g++ (since the settings needs to be tailor made a lot, vmware image is recommended to adopt), and -spec flag should be adopt if errors coming out...  

Hope this can help Qt in pdaXrom development a lot conveninent in PCX86 machines ....  

some dirty and quick Qt development of me & linux vmware screencaptures

VMWare output
[img]http://www.hk3zone.com/attachments/vmwarepdaxrom_ZCAxNbsJdVXC.png\" border=\"0\" class=\"linked-image\" /]

Money to words converter
[img]http://www.mocasting.com/main/album/3504/original/69593.png\" border=\"0\" class=\"linked-image\" /]

Romanian numerals to number converter
[img]http://www.mocasting.com/main/album/3504/original/69748.png\" border=\"0\" class=\"linked-image\" /]
« Last Edit: March 05, 2007, 07:12:05 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #1 on: March 05, 2007, 09:28:54 pm »
and for those who want to develop on the Z natively, I have build all those QT tools and included them in my zggc image...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

xjqian

  • Sr. Member
  • ****
  • Posts: 497
    • View Profile
    • http://
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #2 on: March 05, 2007, 10:39:36 pm »
Quote
and for those who want to develop on the Z natively, I have build all those QT tools and included them in my zggc image...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155479\"][{POST_SNAPBACK}][/a][/div]
The only problem is I'm using 6000L
My Blog | 6000L Tosa + sled | is: Angstrom | was: pdaXrom 1.1.0beta1 | was: stock 1.12 rom + no-ffpe fash kernel + X/Qt Debian |
CF GPS (FGPCFCD01) | USB "Prolific 2303" GPS (USB-UG-200) | Socket CF BT rev. H |  USB "Pegasus II" Ethernet (ADM8511) | PocketTop IR kbd | sip:527630@fwd.pulver.com
Todo: OESF wiki | stable VOIP app | usable GPS app |      Wishlist: VOIP + Bluetooth | GPS + Routing Calc

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #3 on: March 05, 2007, 10:51:25 pm »
Quote
Quote
and for those who want to develop on the Z natively, I have build all those QT tools and included them in my zggc image...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155479\"][{POST_SNAPBACK}][/a][/div]
The only problem is I'm using 6000L
[div align=\"right\"][a href=\"index.php?act=findpost&pid=155492\"][{POST_SNAPBACK}][/a][/div]

I have two native toolchains, zgcc-3.4.6.squashfs is for pdaXrom beta3/pdaXii13 while zggc-3.4.5-4.squashfs is for beta1.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #4 on: March 06, 2007, 01:02:21 am »
I had no idea you'd done so much with your zgcc squashfs, meanie.  Bravo. Now i'll have ot remove the beta3 ip and mount the image
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #5 on: March 14, 2007, 12:08:47 am »
I've tried typing in a relatively 'big' example (having 10 files of source codes for a single spreadsheet project) and this is the result... (in Zaurus)

Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #6 on: March 14, 2007, 01:55:48 am »
since you are having so much fun with writing QT apps, what do you think about rewriting all the pdaXrom config tools which currently are written in python into QT? I think that would be very beneficial since the Package Manager already is written in QT, makes sense to have all the remaining admin tools in QT as well? i think QT should be faster than python since it is compiled code...
what do you think?
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #7 on: March 14, 2007, 02:22:04 am »
Dinorex, I know you have your own site, but if you agree to what meanie's talking about above, you are welcome to use the project section of ty for releases and bug tracking, etc. If you're interested, let me know and I'll set you up, otherwise, no worries.
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #8 on: March 14, 2007, 06:45:08 am »
Come on, dinorex, i know you can do it, if you would.  

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #9 on: March 14, 2007, 09:40:13 am »
Quote
since you are having so much fun with writing QT apps, what do you think about rewriting all the pdaXrom config tools which currently are written in python into QT? I think that would be very beneficial since the Package Manager already is written in QT, makes sense to have all the remaining admin tools in QT as well? i think QT should be faster than python since it is compiled code...
what do you think?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156201\"][{POST_SNAPBACK}][/a][/div]

BTW:
I had no luck searching the sources for the package manager and for the PPP dialer... any ideas where to find them? I'd like to try adding some features.

thanks
daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #10 on: March 14, 2007, 09:50:17 am »
Quote
Quote
since you are having so much fun with writing QT apps, what do you think about rewriting all the pdaXrom config tools which currently are written in python into QT? I think that would be very beneficial since the Package Manager already is written in QT, makes sense to have all the remaining admin tools in QT as well? i think QT should be faster than python since it is compiled code...
what do you think?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

BTW:
I had no luck searching the sources for the package manager and for the PPP dialer... any ideas where to find them? I'd like to try adding some features.

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

[a href=\"http://distro.ibiblio.org/pub/linux/distributions/pdaxrom/download/1.1.0beta3/src/packagemanager-1.1.0.tar.bz2]http://distro.ibiblio.org/pub/linux/distri...r-1.1.0.tar.bz2[/url]
http://distro.ibiblio.org/pub/linux/distri...s-1.0.3.tar.bz2
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

dinorex

  • Jr. Member
  • **
  • Posts: 88
    • View Profile
    • http://dinorex.mocasting.com
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #11 on: March 14, 2007, 07:49:39 pm »
really thanks for all of your invitation.....

as I am now busy with many miscellaneous stuffs for my settlement in Sydney (meanie, you should know that....  ), I need some time to turn both my family and job stabled here. Therefore, I haven't got much time to involve in the development right now, and as I mentioned in ty, I will actively contact down there for involvement once I have confirmed that the stuffs here are settled ....

Please be patient ..... and no worries....  
« Last Edit: March 14, 2007, 07:55:33 pm by dinorex »
Dinorex corner: -
Chinese: http://dinorex.mocasting.com/
English: http://dinorex-redoxin.blogspot.com/
Website: http://dinorex.no-ip.biz/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Zauri SL-C3100 (1 black & 1 grey)
black - Qtopia / Cacko (for notes taking in meetings) :)
grey - ROM wild tester....

daniel3000

  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
    • http://
Using Pc To Develop Qt3 Applications For Pdaxrom
« Reply #12 on: March 15, 2007, 05:33:51 am »
Quote
http://distro.ibiblio.org/pub/linux/distri...r-1.1.0.tar.bz2
http://distro.ibiblio.org/pub/linux/distri...s-1.0.3.tar.bz2
[div align=\"right\"][a href=\"index.php?act=findpost&pid=156247\"][{POST_SNAPBACK}][/a][/div]

*blush* - that was the first place I looked in, but the names were not obvious to me.
Thanks :-)

daniel
SL-C3200 with weeXpc, based on pdaXrom 1.1.0beta3
HP 200LX with MS-DOS 5.0