[QtonPi] Beginner's problem compiling Qt5

paulovictor.pinheiro at gmail.com paulovictor.pinheiro at gmail.com
Tue Aug 21 13:40:16 CEST 2012


On Tue, Aug 21, 2012 at 6:55 AM, SCHMOLTZI Dirk (ISL-OTB) <
Dirk.SCHMOLTZI at isl.eu> wrote:

>  Hello,****
>
> First let me thank you for the nice beginners guide. Here are my
> experiences with it:****
>
> When initialising the qt5 repository I had to run “./init-repository –f”
> several times because some requests timed out, otherwise it all went well
> up to the point where I wanted to configure qtbase.
>
I think this is a gitorious problem, happened to me too!


> ****
>
> In the ./configure step of compiling qtbase the script stops with two
> errors saying:****
>
> “Could not determine the target architecture!”****
>
> “Could not determine the host architecture!”****
>
> Which is where I am stuck at the moment.****
>
> Otherwise I found the instructions easy to follow.****
>
> **
>
I had the same problem, but it happened to me because of leftover
configuration from a previous unsuccessful build.
To fix i did the following commands on qtbase folder:
 $git reset --hard
 $git clean  -dxf
and tried the configure step again. It should work..

Check if your target arch and host arch is correct in
the qtbase/mkspecs/qconfig.pri file(after ./configure).

**
>
> Since I have no idea how to fix that I hope for some suggestions in the
> troubleshooting section of the guide which might help me J****
>
> ** **
>
> Thanks in advance and keep up the good work****
>
> ** **
>
> Dirk****
>
>  ****
>
> *Von:* qtonpi-bounces+dirk.schmoltzi=isl.eu at qt-project.org [mailto:
> qtonpi-bounces+dirk.schmoltzi=isl.eu at qt-project.org] *Im Auftrag von *
> paulovictor.pinheiro at gmail.com
> *Gesendet:* Dienstag, 21. August 2012 05:08
> *An:* martin.bjorkstrom at gmail.com
> *Cc:* qtonpi at qt-project.org
> *Betreff:* Re: [QtonPi] Beginner's problem compiling Qt5****
>
> ** **
>
> Hello Everyone,****
>
> ** **
>
> I finished the beginner's guide(
> http://qt-project.org/wiki/RaspberryPi_Beginners_guide). Please feel free
> to correct and improve it. Should i add a link to it in the Qtonpi's wiki
> main page? Hope it helps.****
>
> ** **
>
> Att,****
>
> ** **
>
> Paulo Pinheiro****
>
> ** **
>
> On Sat, Aug 18, 2012 at 5:16 AM, <martin.bjorkstrom at gmail.com> wrote:****
>
> Paolo,****
>
> ** **
>
> Adding:****
>
> INCLUDEPATH += <path to Qt5 includes>****
>
> To your projects pro-file should fix auto completion in Qt Creator.****
>
> ** **
>
> Br,****
>
> Martin****
>
> ** **
>
> On 17.8.2012 5:18 paulovictor.pinheiro at gmail.com wrote:****
>
> Well,****
>
> ** **
>
> I finally could compile it and work flawlessly. The main issue with my
> build was the leftover from an old failure build. Because of that i could
> not compile V8 due to missing information such as target arch and host arch
> (both where "unknown" on mkspecs). Floris tip solved the Qt creator
> configuration problem, but still could not recognize the Qt5 classes and do
> autocomplete. I'm writing a simple guide(
> http://qt-project.org/wiki/RaspberryPi_Beginners_guide) to this
> compilation showing all the command lines and a troubleshooting section,
> but its far from complete..so lot of work to do :)****
>
> ** **
>
> Att,****
>
> ** **
>
> Paulo Pinheiro****
>
> ** **
>
> On Tue, Aug 14, 2012 at 10:31 PM, paulovictor.pinheiro at gmail.com <
> paulovictor.pinheiro at gmail.com> wrote:****
>
> Well i'm taking notes but i did not get anything running on pi yet(using
> wheezy). But as soon as i grok it in fullness i will try to improve the
> wiki. I seems to me that is pretty much everything in there, just need some
> love.****
>
> ** **
>
> Att,****
>
> Paulo Pinheiro****
>
>
> On Aug 14, 2012 6:44 PM, "Felipe Crochik" <qt-project at b2-4ac.com> wrote:
> >
> > Paulo,
> >
> > Since you are going trough the whole experience from scratch, would you
> mind sharing with the rest of us the steps and details of your journey?
> >
> > I would like to be able to compile instructions in enough detail that qt
> developers could follow even without experience on cross-compiling,
> embedded, linux and rasppi.
> >
> > Thanks,
> >
> > Felipe
> >
> >
> > On Tuesday, August 14, 2012, paulovictor.pinheiro at gmail.com <
> paulovictor.pinheiro at gmail.com> wrote:
> > > I overlooked the fixQualifiedLibraryPaths, but i could get to compile
> everything, altough i could not try to compile an example, because when
> configuring qt5 on Qt Creator i got the error message "The default mkspec
> symlink is broken".. don't know what to do right now, i'll check why this
> is happening and maybe redo it all over again.
> > > On Tue, Aug 14, 2012 at 7:13 AM, Samuel Rødal <samuel.rodal at nokia.com>
> wrote:
> > >>
> > >> On 08/14/2012 09:16 AM, ext Samuel Rødal wrote:
> > >> > On 08/14/2012 04:00 AM, ext paulovictor.pinheiro at gmail.com wrote:
> > >> >> It Worked! But now i'm facing problems when compiling
> > >> >> qtjsbackend(altough some other modules compiled fine).
> > >> >
> > >> > What did you change to get qtbase building?
> > >>
> > >> Ok, seems the issue was failing to run the fixQualifiedLibraryPaths
> > >> script successfully, as documented here:
> > >> http://qt-project.org/wiki/RaspberryPi
> > >>
> > >> --
> > >> Samuel
> > >> _______________________________________________
> > >> QtonPi mailing list
> > >> QtonPi at qt-project.org
> > >> http://lists.qt-project.org/mailman/listinfo/qtonpi
> > >
> > >****
>
> ** **
>
> ** **
>
> ** **
>

Yours sincerely,

Paulo Pinheiro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qtonpi/attachments/20120821/e9b68efc/attachment.html 


More information about the QtonPi mailing list