[Qt-creator] [Compiling QT] cannot found #include <qplatformdefs.h>
Ziller Eike
Eike.Ziller at theqtcompany.com
Tue Oct 6 08:03:04 CEST 2015
>
> When I try to compile I get the following error:
>
> /home/wilhem/qt-beagle/qtbase/qmake/generators/makefiledeps.cpp:48:27: fatal error: qplatformdefs.h: file or directory not found
> #include <qplatformdefs.h>
> ^
> compilation terminated.
> make: *** [makefiledeps.o] Error 1
>
This is while compiling qmake, which is a host tool, so afaiu it should use the mkspec from -platform, i.e. mkspecs/linux-g++-64 in your case.
Can you give us the full compiler line of the compile command that fails?
> On Oct 5, 2015, at 19:14, Davide Picchi <paveway at gmail.com> wrote:
>
> I suppose you meant to copy the specs into this folder:
>
> /opt/qt
>
> it doesn't work...
> I tried to move my specs into the folder qtbase and the root folder directory, where the program is going to unpack itself.
>
> It doesn't work neither...
>
> Any ideas???
>
> 2015-09-29 11:32 GMT+02:00 Oswald Buddenhagen <oswald.buddenhagen at theqtcompany.com>:
> On Tue, Sep 29, 2015 at 06:13:25AM +0200, Davide Picchi wrote:
> > $ ./configure -v -opensource -confirm-license -prefix /opt/qt -platform
> > mkspecs/linux-g++-64 -xplatform mkspecs/linux-am335-g++ -no-sse2 -no-glib
> > -no-cups -no-largefile -no-accessibility -no-openssl -no-gtkstyle
> > -little-endian -no-pch -no-sql-ibase -no-sql-mysql -no-sql-odbc
> > -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 -nomake examples -no-alsa
> >
> > where
> >
> > mkspecs/linux-am335-g++
> >
> > the directory of my target architectur is
> >
> external specs aren't really expected to work (even though there are
> some vestiges that suggest that this was once the case). move the spec
> into the qt install directory.
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qt-creator
--
Eike Ziller, Senior Software Engineer | The Qt Company
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Tuula Haataja
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
More information about the Qt-creator
mailing list