[Interest] Building Qt from Sources

Szalata, Zenon M. zms at slac.stanford.edu
Wed Feb 22 22:54:51 CET 2012


Thanks a lot,
I have renamed .config/Nokia/qtversions.xml file, started qtcreator and no more messages.  Also a new file qtversion.xml was created.  So, I guess my problems are now solved.
Thanks again,
Zen


> -----Original Message-----
> From: interest-bounces+zms=slac.stanford.edu at qt-project.org
> [mailto:interest-bounces+zms=slac.stanford.edu at qt-project.org] On Behalf Of
> Harri Pasanen
> Sent: Wednesday, February 22, 2012 1:07 PM
> To: interest at qt-project.org
> Subject: Re: [Interest] Building Qt from Sources
> 
> A new user account is a bit drastic...
> 
> A guess: clean up  ~/.config/Nokia and all .user files you may have.
> 
> Better than guess, run "strace qtcreator 2>tmp.log" and look
> in tmp.log to see what is being accessed and clean up accordingly.
> 
> Just my 2 cents.
> 
> Harri
> 
> On 02/22/2012 07:31 PM, Jason H wrote:
> > I'm just joining this, but my guess is you have settings in your user
> > profile.
> > Try from a new user account.
> >
> >
> > ------------------------------------------------------------------------
> > *From:* "Szalata, Zenon M." <zms at slac.stanford.edu>
> > *To:* "kai.koehne at nokia.com" <kai.koehne at nokia.com>; "thiago at kde.org"
> > <thiago at kde.org>; "interest at qt-project.org" <interest at qt-project.org>
> > *Sent:* Wednesday, February 22, 2012 1:12 PM
> > *Subject:* Re: [Interest] Building Qt from Sources
> >
> > Hello again,
> > I have removed from this computer all previous attempted installations
> > of Qt SDK, qt 4.8.0, and qt creator.
> > Created directories on a local disk, unpacked
> >
> > qt-everywhere-opensource-src-4.8.0.tar.gz
> > and
> > qt-creator-2.4.1-src.tar.gz.
> >
> > Finally build the qt 4.8.0 first then qt creator.  Both built without
> > errors.  Designer works fine.  When I start creator I still get
> > messages as before.  It still seems to know about the Qt SDK.  How
> > could that be?
> > No matter.  Trying to remove (clean up) references to these in
> > tools/Options/Build & Run/Qt Versions.
> > Apparently I don't know how to do this.  I assume that I should
> > highlight one of the broken items and then press Remove button.
> > Unfortunately, Remove remains stubbornly disabled.  The "Clean up"
> > button has no effect.
> > Also, /opt/qt/qt-4.8.0/bin/qmake, which I used to build this qt
> > creator was not listed there.  I added it manually.  Attached is a
> > snapshot of the dialog.
> > My feeling is that the installation (build) procedures became so
> > automatic and so smart that they no longer work correctly.
> > Do I need to reinstall the RHEL6 operating system on this computer to
> > have a chance of a clean installation of the qt 4.8.0 and qt creator
> > 2.4.1?
> > This is frustrating!
> > Thanks,
> > Zen
> >
> > > -----Original Message-----
> > > From: kai.koehne at nokia.com <mailto:kai.koehne at nokia.com>
> > [mailto:kai.koehne at nokia.com <mailto:kai.koehne at nokia.com>]
> > > Sent: Wednesday, February 22, 2012 4:51 AM
> > > To: Szalata, Zenon M.; thiago at kde.org <mailto:thiago at kde.org>;
> > interest at qt-project.org <mailto:interest at qt-project.org>
> > > Subject: RE: [Interest] Building Qt from Sources
> > >
> > >
> > > > -----Original Message-----
> > > > From: interest-bounces+kai.koehne=nokia.com at qt-project.org
> > <mailto:nokia.com at qt-project.org>
> > > > [mailto:interest-bounces+kai.koehne=nokia.com at qt-project.org
> > <mailto:nokia.com at qt-project.org>] On Behalf
> > > > Of ext Szalata, Zenon M.
> > > > Sent: Wednesday, February 22, 2012 12:00 AM
> > > > To: Thiago Macieira; interest at qt-project.org
> > <mailto:interest at qt-project.org>
> > > > Subject: Re: [Interest] Building Qt from Sources
> > > >
> > > > Hi Thiago,
> > > > I am replying to this since I have some new information.
> > > > I started all over, removed all environment variables that might have
> > > > anything to do with QT.  Unpacked both qt-everywhere-opensource-src-
> > > > 4.8.0.tar.gz and qt-creator-2.4.1-src.tar.gz and built both
> > successfully.
> > > > Designer is working in qt-4.8.0.
> > > > Creator also seems to work but I get these troubling messages when
> > I start it
> > > > up:
> > > >
> > > > zms at esaanal2 $ bin/qtcreator
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Madde/targets/harmattan_10.2011.34-1/bin/qmake cannot
> be
> > > > run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Simulator/Qt/gcc/bin/qmake cannot be run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Desktop/Qt/474/gcc/bin/qmake cannot be run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Madde/targets/harmattan_10.2011.34-1/bin/qmake cannot
> be
> > > > run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Madde/targets/harmattan_10.2011.34-1/bin/qmake cannot
> be
> > > > run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/474/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/474/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> /opt/qt/qt/Simulator/Qt/gcc/bin/qmake
> > > > cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Madde/targets/harmattan_10.2011.34-1/bin/qmake cannot
> be
> > > > run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Madde/targets/harmattan_10.2011.34-1/bin/qmake cannot
> be
> > > > run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/474/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/474/gcc/bin/qmake cannot be run.
> > > > Cannot determine the Qt version:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Madde/targets/harmattan_10.2011.34-1/bin/qmake cannot
> be
> > > > run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Madde/targets/harmattan_10.2011.34-1/bin/qmake cannot
> be
> > > > run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Madde/targets/harmattan_10.2011.34-1/bin/qmake cannot
> be
> > > > run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Simulator/Qt/gcc/bin/qmake cannot be run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Simulator/Qt/gcc/bin/qmake cannot be run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Desktop/Qt/474/gcc/bin/qmake cannot be run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Desktop/Qt/474/gcc/bin/qmake cannot be run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > > > Cannot update Qt version information:
> > > > /opt/qt/qt/Desktop/Qt/4.8.0/gcc/bin/qmake cannot be run.
> > >
> > > This just says that you've a couple of Qt versions registered in Qt
> > Creator that
> > > are either broken, or simply not there any more . This isn't a
> > problem per se,
> > > unless you want to use them :) You can clean up the list of
> > registered versions
> > > in Qt Creator 2.4.1 under Options, Build & Run, Qt Versions .
> > >
> > > > I did not try to create anything with it so it might work.  It
> > looks like it really
> > > > wants the Qt_SDK package.
> > >
> > > You probably had a Qt SDK install before, or copied part of your Qt
> > Creator
> > > settings from another machine?
> > >
> > > Regards
> > >
> > > Kai
> > >
> > > > Thanks,
> > > > Zen
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: interest-bounces+zms=slac.stanford.edu at qt-project.org
> > <mailto:slac.stanford.edu at qt-project.org>
> > > > > [mailto:interest-bounces+zms=slac.stanford.edu at qt-project.org
> > <mailto:slac.stanford.edu at qt-project.org>] On
> > > > > Behalf Of Thiago Macieira
> > > > > Sent: Tuesday, February 21, 2012 12:27 AM
> > > > > To: interest at qt-project.org <mailto:interest at qt-project.org>
> > > > > Subject: Re: [Interest] Building Qt from Sources
> > > > >
> > > > > On segunda-feira, 20 de fevereiro de 2012 21.38.28, Szalata,
> > Zenon M.
> > > > wrote:
> > > > > > I am working at a Laboratory where RedHat Enterprise Linux 5 or 6
> > > > > > are the only Unix OS used on desktop computers.  Presently,
> > > > > > installing qt
> > > > > > 4.8 from SDK package fails.  So I am trying to install from
> > sources.
> > > > > > I have successfully installed qt 4.8.0 from
> > > > > > qt-everywhere-opensource-src-4.8.0.tar.gz.  This works. I have
> > > > > > configured this to install in non standard location.  The designer
> > > > > > seems to
> > > > > work fine.
> > > > > >  Examples are also working.  The only problem is that this
> > > > > > installation does not include qtcreator. So, I found
> > > > > > qt-creator-2.4.1-src.tar.gz.  I can't build it because it seems to
> > > > > > want the SDK installation, which I can't have.
> > > > >
> > > > > Why do you think it wants the SDK installation? Are you getting an
> > > > > error message? I have qt-creator built here from sources and
> > have done
> > > > > so for 3 years, before the SDK was invented.
> > > > >
> > > > > > Is it possible to have both qt 4.8 built from sources and
> > qtcreator
> > > > > > also built from sources so that they work together?
> > > > >
> > > > > Yes. That's how both Qt and Qt Creator are themselves developed :-)
> > > > >
> > > > > > If the answer is yes, I
> > > > > > need some guidance as to how this can be done. Are there other
> > > > > > source packages that might include qt 4.8 and qtcreator?
> > > > >
> > > > > There is no extra guidance because this should be quite simple. The
> > > > > commands you listed below should have worked. You need to tell
> > us why
> > > > they didn't.
> > > > >
> > > > > > Unpacked qt-creator-2.4.1-src.tar.gz in the third directory and cd
> > > > > > /opt/qt/qtc-2.4.1 qmake /opt/qt/qt-creator-2.4.1-src/qtcreator.pro
> > > > > > and this last command fails and I suspect that it needs the SDK
> > > > > > installation of qt 4.7.4 or higher.
> > > > >
> > > > > Qt Creator requires a recent Qt to build. Check that you ran the
> > qmake
> > > > > from the Qt 4.8.0 that you've just compiled, not a previous, older
> > > > > version of Qt that you might have in your system.
> > > > >
> > > > > --
> > > > > Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
> > > > >    Software Architect - Intel Open Source Technology Center
> > > > >      PGP/GPG: 0x6EF45358; fingerprint:
> > > > >      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
> > > > _______________________________________________
> > > > Interest mailing list
> > > > Interest at qt-project.org <mailto:Interest at qt-project.org>
> > > > http://lists.qt-project.org/mailman/listinfo/interest
> >
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org <mailto:Interest at qt-project.org>
> > http://lists.qt-project.org/mailman/listinfo/interest
> >
> >
> >
> >
> > _______________________________________________
> > Interest mailing list
> > Interest at qt-project.org
> > http://lists.qt-project.org/mailman/listinfo/interest
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list