ts-7000
[Top] [All Lists]

[ts-7000] Re: Qt Sample Code?

To:
Subject: [ts-7000] Re: Qt Sample Code?
From: "andynmercier" <>
Date: Thu, 13 Sep 2007 15:35:57 -0000
--- In  "Anouk Ahamitet" <> wrote:
>
> I'm looking for what I'd hope is a fairly simple sample Qt program
> that reads the analogs and digitals on the TS-7KV board (or on another
> board in the family, like the TS-7250 processor, etc.)  Based on all
> of the Qt/E discussion here over the past few years, someone must've
> written something like this.  Since I'm switching to Qt (and C++) from
> Windows (and C) or linux text and ncurses (also C), I' hoping that a
> small example that at least slightly matches what I'm going to be
> doing is the best thing for me to get started.  Does anyone know where
> I can find such a thing?
Currently, I'm in the process of writing very similar code (but much
larger than a sample) for the TS-7300.
 
> For anyone interested in my current situation (hint: tips and
> suggestions welcome), I'm currently struggling with getting the
> Qt/Embedded development stuff built/installed on a USB drive built
> using the debian-sarge-1.12.tar file (all files are from
> ftp.embeddedarm.com) for my TS-7250/TS-7KV.  I mounted the USB using 
> 
> sh loadUSBModules.sh
> sh loadUSB.sh
> 
> Then I un-tar'ed qt-embedded-free-3.3.4-compiled-full.tar.gz to the
> root of the USB, only to discover that it is a RUNTIME, NOT a build
> environment as I'd expected.  So, I grabbed
> qt-embedded-free-3.3.4-src.tar.gz and extracted it to /usr/local and
> tried running ./configure.  Unfortunately, the debian image is missing
> g++ so configure failed.  Luckily, what was really missing was a link
> from g++ to g++-3.3 and when I added that, configure ran (only
> complaining about missing the cmp utility, which apt-get didn't know
> about, either, but is in every other linux system I have).  The
> configure command took just over an hour to finish.  I'm now running
> make.  Hopefully power will stay up for the next few days...
Your exploration, so far, corresponds to what I did - It's not quite
"a few days..." but it's many hours!

> Hmmm... a less than encouraging message just came up on the compile
> screen:
> 
> kernel/qgfxraster_qws.cpp:1415: warning: comparison is always false
> due to limited range of data type
> 
> I wonder what Qt/E component code won't quite work right...
I haven't found any problems running Qt that I can assign to the build
warnings.

To get where I'm at:
1) Run the configure as:
   ./configure -qconfig small (config-small.h)
   - This will reduce the time it takes to compile
2) As ./configure runs you may see an occasional "<...> cmp: command
not found"
   - Your observation matches mine, missing cmp(!) I never fixed this
yet I appear to have a working Qt.
3) During ./configure there will be a query for "Choose pixel-depths
to support:" is where I chose 16bpp.
4) You'll see (under Creating makefiles)
   "WARNING: Failure to find: .moc/release-shared-emb-generic/alloc.cpp"
   - Apparently this is OK(?), it's *just* a warning ;) (disconcerting
but the Qt runs anyway)
5) End of ./configure stage will result in:
   "Qt is now configured for building. Just run /usr/bin/make.
    To reconfigure, run /usr/bin/make confclean and configure."
6) Modify Makefile:
    Search for the all: line. Comment the current line out and create
a new one
    that omits the sub-tools.
    NOTE: This is needed because the command:
    .../bin/uic -L /mnt/host/root/qt-embedded-free-3.3.4/plugins
pixmapfunction.ui -o pixmapfunction.h
    FAILS in a fashion that looks like a hang (compile that never
completes so CTRL-C is
    needed to end it).
7) Type "make"
   - Wait for hours... so it's a good time to figure out what sample
you want to use...
8) I used the wavy Hello World sample as my first test. See directory
qt-embedded-3.3.4/examples/hello (Make sure you've set QT_DIR and
LD_LIBRARY_PATH - all explained in the Qt docs).

Andy



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU