Trolltech Home | Qtopia-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qtopia-interest Archive, April 2007
Re: Compiling Qtopia Open Source


Message 1 in thread

Update:

On 3/31/07, Sean Kelley <svk.sweng@xxxxxxxxx> wrote:
> Does anyone have experience setting up the correct environment
> variables to compile Qtopia Opensource from source for ARM?  I set the
> path to my arm binaries and set the LD_LIBRARY_PATH to my arm
> libraries but it dies on configure:


I switched to ptxdist to generate my ARM compiler and that provided me
with a more complete build.  Now I am getting the following error.

Cross-compiling for ARM on x86:

/..../bin/qmake: 1: Syntax error : word unexpected (expecting ")")

This error happens during the configure, before you get to the prompt
for the pixel-depth support.

Sean

>
> g++: error trying to exec 'cc1pluls': execvp : No such file or directory
>
> If there is a better ARM toolchain to use for building Qtopia from
> source, please let me know.
>
> Thanks,
>
> Sean
>

--
 [ signature omitted ] 

Message 2 in thread

More findings

On 3/31/07, Sean Kelley <svk.sweng@xxxxxxxxx> wrote:
> Update:
>
> On 3/31/07, Sean Kelley <svk.sweng@xxxxxxxxx> wrote:
> > Does anyone have experience setting up the correct environment
> > variables to compile Qtopia Opensource from source for ARM?  I set the
> > path to my arm binaries and set the LD_LIBRARY_PATH to my arm
> > libraries but it dies on configure:
>
>
> I switched to ptxdist to generate my ARM compiler and that provided me
> with a more complete build.  Now I am getting the following error.
>
> Cross-compiling for ARM on x86:
>
> /..../bin/qmake: 1: Syntax error : word unexpected (expecting ")")
>
> This error happens during the configure, before you get to the prompt
> for the pixel-depth support.

Error 1:  Ubuntu uses sh->dash symliink.

Soln: remove that and make sure you have sh symlinked to bash.

Error 2:

 qtopia has to build qmake for x86 (host) first before building
libraries for arm (target).  What configure options do I need to give
such that g++ is used to make qmake but arm-linux-g++ is used to build
the rest?



Sean

>
> Sean
>
> >
> > g++: error trying to exec 'cc1pluls': execvp : No such file or directory
> >
> > If there is a better ARM toolchain to use for building Qtopia from
> > source, please let me know.
> >
> > Thanks,
> >
> > Sean
> >
>

--
 [ signature omitted ] 

Message 3 in thread

On Sun, 1 Apr 2007, Sean Kelley wrote:
> More findings
>
> On 3/31/07, Sean Kelley <svk.sweng@xxxxxxxxx> wrote:
> > Update:
> >
> > On 3/31/07, Sean Kelley <svk.sweng@xxxxxxxxx> wrote:
> > > Does anyone have experience setting up the correct environment
> > > variables to compile Qtopia Opensource from source for ARM?  I set the
> > > path to my arm binaries and set the LD_LIBRARY_PATH to my arm
> > > libraries but it dies on configure:

In Qtopia 4 no need to set LD_LIBRARY_PATH. In fact, it will mess things up.

> >
> > I switched to ptxdist to generate my ARM compiler and that provided me
> > with a more complete build.  Now I am getting the following error.
> >
> > Cross-compiling for ARM on x86:
> >
> > /..../bin/qmake: 1: Syntax error : word unexpected (expecting ")")
> >
> > This error happens during the configure, before you get to the prompt
> > for the pixel-depth support.
>
> Error 1:  Ubuntu uses sh->dash symliink.
>
> Soln: remove that and make sure you have sh symlinked to bash.
>
> Error 2:
>
>  qtopia has to build qmake for x86 (host) first before building
> libraries for arm (target).  What configure options do I need to give
> such that g++ is used to make qmake but arm-linux-g++ is used to build
> the rest?

If you are using Qtopia 4, then all this should happen automatically. On 
earlier versions, qmake and friends had to be built manually, or beforehand 
using qt2-x11


-- 
 [ signature omitted ] 

Message 4 in thread

Hi

On 3/31/07, Lorn Potter <lpotter@xxxxxxxxxxxxx> wrote:
> On Sun, 1 Apr 2007, Sean Kelley wrote:
>
> If you are using Qtopia 4, then all this should happen automatically. On
> earlier versions, qmake and friends had to be built manually, or beforehand
> using qt2-x11


If I am building Qtopia 4.x from source, it also builds assistant,
linguist, and designer.  But those are built to depend on qvfb!  So do
I need to use qt4-x11 to build assistant, linguist, and designer from
the Qtopia 4.x source?  Because it is not entirely clear.

Thanks,

Sean

>
>
> --
> Lorn 'ljp' Potter
> Software Engineer, Systems Group, MES, Trolltech
>

--
 [ signature omitted ] 

Message 5 in thread

Sean Kelley wrote:
> Hi
> 
> On 3/31/07, Lorn Potter <lpotter@xxxxxxxxxxxxx> wrote:
>> On Sun, 1 Apr 2007, Sean Kelley wrote:
>>
>> If you are using Qtopia 4, then all this should happen automatically. On
>> earlier versions, qmake and friends had to be built manually, or 
>> beforehand
>> using qt2-x11
> 
> 
> If I am building Qtopia 4.x from source, it also builds assistant,
> linguist, and designer.  But those are built to depend on qvfb!  So do
> I need to use qt4-x11 to build assistant, linguist, and designer from
> the Qtopia 4.x source?  Because it is not entirely clear.

What is the configure line you are using?


-- 
 [ signature omitted ] 

Message 6 in thread

Hi,

On 4/1/07, Lorn Potter <lpotter@xxxxxxxxxxxxx> wrote:
> Sean Kelley wrote:
> > Hi
> >
> > On 3/31/07, Lorn Potter <lpotter@xxxxxxxxxxxxx> wrote:
> >> On Sun, 1 Apr 2007, Sean Kelley wrote:
> >>
> >> If you are using Qtopia 4, then all this should happen automatically. On
> >> earlier versions, qmake and friends had to be built manually, or
> >> beforehand
> >> using qt2-x11
> >
> >
> > If I am building Qtopia 4.x from source, it also builds assistant,
> > linguist, and designer.  But those are built to depend on qvfb!  So do
> > I need to use qt4-x11 to build assistant, linguist, and designer from
> > the Qtopia 4.x source?  Because it is not entirely clear.
>
> What is the configure line you are using?

./configure -no-accessibility -no-qt3support -no-mmx -embedded arm
-qvfb -qt-gfx-vnc --prefix=/usr/local/Trolltech/Qtopia-4.3.0BetaARM
-little-endian -xplatform qws/linux-xscale-linux-gnueabi-g++

Sean


>
>
> --
> Lorn 'ljp' Potter
> Software Engineer, Systems Group, MES, Trolltech
>

--
 [ signature omitted ] 

Message 7 in thread

Hi

On 4/1/07, Sean Kelley <svk.sweng@xxxxxxxxx> wrote:
> Hi,
>
> On 4/1/07, Lorn Potter <lpotter@xxxxxxxxxxxxx> wrote:
> > Sean Kelley wrote:
> > > Hi
> > >
> > > On 3/31/07, Lorn Potter <lpotter@xxxxxxxxxxxxx> wrote:
> > >> On Sun, 1 Apr 2007, Sean Kelley wrote:
> > >>
> > >> If you are using Qtopia 4, then all this should happen automatically. On
> > >> earlier versions, qmake and friends had to be built manually, or
> > >> beforehand
> > >> using qt2-x11
> > >
> > >
> > > If I am building Qtopia 4.x from source, it also builds assistant,
> > > linguist, and designer.  But those are built to depend on qvfb!  So do
> > > I need to use qt4-x11 to build assistant, linguist, and designer from
> > > the Qtopia 4.x source?  Because it is not entirely clear.
> >
> > What is the configure line you are using?
>
> ./configure -no-accessibility -no-qt3support -no-mmx -embedded arm
> -qvfb -qt-gfx-vnc --prefix=/usr/local/Trolltech/Qtopia-4.3.0BetaARM
> -little-endian -xplatform qws/linux-xscale-linux-gnueabi-g++
>

Actually, that was the wrong one.  That was for the ARM build.  This
is the one I used for the x86.

  ./configure -no-accessibility -no-qt3support -no-mmx -qvfb
-qt-gfx-vnc --prefix=/usr/local/Trolltech/Qtopia-4.3.0Beta



> Sean
>
>
> >
> >
> > --
> > Lorn 'ljp' Potter
> > Software Engineer, Systems Group, MES, Trolltech
> >
>

--
 [ signature omitted ] 

Message 8 in thread

Sean Kelley wrote:
> Hi,
> 
> On 4/1/07, Lorn Potter <lpotter@xxxxxxxxxxxxx> wrote:
>> Sean Kelley wrote:
>> > Hi
>> >
>> > On 3/31/07, Lorn Potter <lpotter@xxxxxxxxxxxxx> wrote:
>> >> On Sun, 1 Apr 2007, Sean Kelley wrote:
>> >>
>> >> If you are using Qtopia 4, then all this should happen 
>> automatically. On
>> >> earlier versions, qmake and friends had to be built manually, or
>> >> beforehand
>> >> using qt2-x11
>> >
>> >
>> > If I am building Qtopia 4.x from source, it also builds assistant,
>> > linguist, and designer.  But those are built to depend on qvfb!  So do
>> > I need to use qt4-x11 to build assistant, linguist, and designer from
>> > the Qtopia 4.x source?  Because it is not entirely clear.
>>
>> What is the configure line you are using?
> 
> ./configure -no-accessibility -no-qt3support -no-mmx -embedded arm
> -qvfb -qt-gfx-vnc --prefix=/usr/local/Trolltech/Qtopia-4.3.0BetaARM
> -little-endian -xplatform qws/linux-xscale-linux-gnueabi-g++

If this is Qtopia Core, then you need to download the corresponding Qt 
X11, and build qvfb with that.
Sorry about the confusion.



-- 
 [ signature omitted ]