Help - Search - Members - Calendar
Full Version: Using Pc To Develop Qt3 Applications For Pdaxrom
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
dinorex
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
mount /dev/cdroms/cdrom0 /mnt/cdrom

ls -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
tar zvxf /mnt/cdrom/qt-x11-opensource-3.3.8.tar.gz

resultant dir will be /home/root/qt-x11-opensource-3.3.8

cd to the resultant dir, type
CODE
./configure

CODE
make

wait for half to one hour, your qt 3.3.8 should be built. laugh.gif

CODE
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 ph34r.gif

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

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

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

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

VMWare output


Money to words converter


Romanian numerals to number converter
Meanie
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...
xjqian
QUOTE(Meanie @ Mar 5 2007, 09:28 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...
*

The only problem is I'm using 6000L blink.gif
Meanie
QUOTE(xjqian @ Mar 6 2007, 01:39 PM)
QUOTE(Meanie @ Mar 5 2007, 09:28 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...
*

The only problem is I'm using 6000L blink.gif
*



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.
adf
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
dinorex
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)



it seems that we can really make use of the PC as the development environment, and use the Zaurus as the testing device finally... smile.gif
Meanie
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?
Antikx
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.
ZDevil
Come on, dinorex, i know you can do it, if you would. wink.gif
daniel3000
QUOTE(Meanie @ Mar 14 2007, 07:55 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?
*


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
Meanie
QUOTE(daniel3000 @ Mar 14 2007, 11:40 PM)
QUOTE(Meanie @ Mar 14 2007, 07:55 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?
*


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
*



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
dinorex
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.... wink.gif ), 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 .... biggrin.gif

Please be patient ..... and no worries.... ph34r.gif
daniel3000
QUOTE(Meanie @ Mar 14 2007, 03:50 PM)


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

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