RE: Re: Development Environment Problems

Neil Horlock <[email protected]> Thu, 22 Aug 2002 05:50:35 +0100
Newsgroups gmane.comp.handhelds.zaurus.devel
Message-ID <009501c24997$85fa7bf0$0181a8c0@HYPERION>
I won a fight with the source distros the other day. Previously I had
used the binary rpms without any problem, but I wanted to build an app
based upon an existing app source and thus pulled down the qtopia
source. Initially I wasted a lot of time on qpe.sourceforge/net because
many comments point there. This seems to be out of date and no longer
maintained. Unfortunately there is no comment stating this anywhere
(Kent, is this SF site no longer used? If so can someone add a comment
to let people know where to go now).

After giving up on the 2.4 distro from SF I eventually found the 2.5
distro on the trolltech site (though I don't find the TT site to be the
easiest site to navigate through. I built this and set my QTDIR to my
local source QT232 build dir and QPEDIR to my local source QPE build.
This was fine and works perfectly for the x86 builds. To build for the
Z, I continued to use the binary distro libs in /opt/Qtopia/sharp (for
both QTDIR and QPEDIR) this also works fine.

One other pointer from my battle....

I made a copy of the source of embedded console (which I wanted to
modify) outside of the QPE tree. I ran tmake on it and built, the result
was a binary that SEGV'd in the qpeapplication constructor!! It wasn't
until I moved my modified source back inside the QPE tree and
constructed the Makefile using ./configure <myprojectsubdir> that I got
a valid Makefile that did not core. This is not documented anywhere that
I can find.

Neil

Neil Horlock
PGP public key available http://www.zyxt.org/nhorlock.asc
or http://www.keyserver.net
Fingerprint: 337A 5258 559A 9C04 3E54  2A01 42B1 E768 DAA7 5CBD


> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf 
> Of James Bernsen
> Sent: Thursday, August 22, 2002 01:51
> To: [email protected]
> Subject: [Zaurus-devel] Re: Development Environment Problems
> 
> 
> 
> Thanks for the replies.  I would have installed the Qtopia 
> 1.5.0 binary 
> rpm, but I had read on this list that several people have had 
> problems 
> with it.  It also requires glibc 2.2, and my linux box is 
> still running 
> Redhat 6.1.  I tried to upgrade glibc, but that has many dependencies 
> (that have many other dependencies), and it would have taken far too 
> much time.  Perhaps it's time that I get Redhat 7.  
> 
> Instead, I used the Qtopia 1.5.0 source rpm from the 
> Trolltech site.  I 
> compiled Qt-Embedded 2.3.2 with Qt 2.3.2, and then I compiled Qtopia 
> 1.5.0 with Qt-Embedded 2.3.2.  Then I repeated this process with the 
> cross-compiler to get the Zaurus libraries.  Is this the 
> correct method 
> for compiling Qtopia from sources?  If so, why I am I getting 
> my strange 
> compile errors?
> 
> Thanks again for your help,
> James Bernsen
> 
> 
> 
> Kent Sandvik wrote:
> 
> > Hi, seems you have a mixture of SDKs, did you start with 
> the SDK 1.5.0
> > that is available from www.trolltech.com. You really don't need the 
> > embedded SDK unless you are building HW from scratch, or 
> building your 
> > own ROMs, or something similar.
> >
> > Yes, both QPEDIR and QTDIR just now points at the same 
> directory, but
> > it could change in future, or in dev. environments they are 
> separate.
> >
> > You also need to build the Sharp Zaurus images with the ARM specific
> > compiler/linker/library setup. See the SDK 
> docs/qtopia/start.html file 
> > that has all the instructions how to get started.
> >
> > --Kent
> >
> >
> > On Tuesday, August 20, 2002, at 03:34  PM, James Bernsen wrote:
> >
> >> I've been having some problems with my development environment, and
> >> after much googling and work, I still can't seem to figure things 
> >> out. According to the compiler setup howto on zauruszone.com 
> >> 
> (http://www.zauruszone.farplanet.net/howtos/linux_compiler_set
> up_howto.shtml) 
> >>
> >> , both the QPEDIR and QTDIR environment variables are supposed to
> >> point to the Qtopia base directory.  However, when I setup my 
> >> development environment this way and try to compile the Qtopia 
> >> example application, I get several pages of errors 
> >> (http://www.bernsen.us/james/tmp/compile_errs.txt), the 
> first of them 
> >> being that the compiler can't find a #included file 
> >> (qwsdefaultdecoration_qws.h) that is located under the qt-embedded 
> >> include directory.
> >>
> >> When I set my QTDIR to point to the qt-embedded base directory, the
> >> example application compiles fine and runs great in the virtual 
> >> framebuffer.  Is this wrong?  Furthermore, when I set my 
> environment 
> >> to cross-compile for the Zaurus (QTDIR still pointing to 
> >> qt-embedded), the example application compiles fine, but when 
> >> transferred to the Zaurus and run from the terminal, I get the 
> >> following error:
> >>
> >> ./example: error while loading shared libraries: 
> ./example: undefined
> >> symbol: 
> >> 
> new_metaobject__11QMetaObjectPCcT1P9QMetaDataiT3iP13QMetaPrope
> rtyiP9QMetaEnumiP10QClassInfoi 
> >>
> >>
> >> Can anybody tell me what's wrong with my setup?  I've got
> >> Qt-Embedded: 2.3.2 and Qtopia: 1.5.0, with gcc 2.95.3 and 
> >> arm-linux-gcc 2.95.2.  The LD_LIBRARY_PATH on the Zaurus is set to 
> >> /home/QtPalmtop/lib.
> >>
> >> Thanks for your help,
> >> James Bernsen
> >>
> >>
> >>
> >>
> >>
> >> -------------------------------------------------------
> >> This sf.net email is sponsored by: OSDN - Tired of that 
> same old cell 
> >> phone?  Get a new here for FREE! 
> >> https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> >> _______________________________________________
> >> Zaurus-general mailing list [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/zaurus-general
> >
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: OSDN - Tired of that 
> same old cell 
> > phone?  Get a new here for FREE! 
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > _______________________________________________
> > Zaurus-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/zaurus-devel
> >
> 
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by: OSDN - Tired of that same 
> old cell phone?  Get a new here for FREE! 
> https://www.inphonic.com/r.asp?r=sourceforge1> &refcode1=vs3390
> 
> 
> _______________________________________________
> Zaurus-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/zaurus-devel
> 



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390