Hi,
I have updated my Qt installation (with the update tool) and now I can’t build my application on OSX (the same source code build on Linux).
I have tried with :
5.0.2 clang 64b
5.1.0 clang 64b
5.1.1 clang 64b
5.2.0 clang 64b
5.2.1 clang 64b
Errors are not the same (but always about Qt header files), so I give you the bad issue only with the 5.2.1 :
In file included from sources/main/main.cpp:2:
In file included from ../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/QApplication:1:
In file included from ../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qapplication.h:56:
In file included from /Users/peb/Qt/5.2.1/clang_64/lib/QtGui.framework/Headers/qguiapplication.h:47:
/Users/peb/Qt/5.2.1/clang_64/lib/QtGui.framework/Headers/qinputmethod.h:89:5: error: unknown type name 'QLocale'
QLocale locale() const;
^
/Users/peb/Qt/5.2.1/clang_64/lib/QtGui.framework/Headers/qinputmethod.h:96:21: error: no type named 'InputMethodQueries' in namespace 'Qt'; did you mean 'InputMethodQuery'?
void update(Qt::InputMethodQueries queries);
~~~~^~~~~~~~~~~~~~~~~~
InputMethodQuery
/usr/local/include/QtCore/qnamespace.h:1541:10: note: 'InputMethodQuery' declared here
enum InputMethodQuery {
^
In file included from sources/main/main.cpp:2:
In file included from ../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/QApplication:1:
In file included from ../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qapplication.h:56:
/Users/peb/Qt/5.2.1/clang_64/lib/QtGui.framework/Headers/qguiapplication.h:92:12: error: unknown type name 'QWindowList'
static QWindowList allWindows();
^
/Users/peb/Qt/5.2.1/clang_64/lib/QtGui.framework/Headers/qguiapplication.h:93:12: error: unknown type name 'QWindowList'
static QWindowList topLevelWindows();
^
/Users/peb/Qt/5.2.1/clang_64/lib/QtGui.framework/Headers/qguiapplication.h:145:16: error: no type named 'ApplicationState' in namespace 'Qt'
static Qt::ApplicationState applicationState();
~~~~^
/Users/peb/Qt/5.2.1/clang_64/lib/QtGui.framework/Headers/qguiapplication.h:165:38: error: no type named 'ApplicationState' in namespace 'Qt'
void applicationStateChanged(Qt::ApplicationState state);
~~~~^
In file included from sources/main/main.cpp:2:
In file included from ../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/QApplication:1:
../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qapplication.h:76:24: error: variable has incomplete type 'class Q_WIDGETS_EXPORT'
class Q_WIDGETS_EXPORT QApplication : public QGuiApplication
^
../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qapplication.h:76:7: note: forward declaration of 'Q_WIDGETS_EXPORT'
class Q_WIDGETS_EXPORT QApplication : public QGuiApplication
^
../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qapplication.h:76:37: error: expected ';' after top level declarator
class Q_WIDGETS_EXPORT QApplication : public QGuiApplication
^
;
../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qapplication.h:76:39: error: expected unqualified-id
class Q_WIDGETS_EXPORT QApplication : public QGuiApplication
^
../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qapplication.h:111:24: error: token is not a valid binary operator in a preprocessor subexpression
#if QT_DEPRECATED_SINCE(5, 0)
~~~~~~~~~~~~~~~~~~~^
../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qapplication.h:151:24: error: token is not a valid binary operator in a preprocessor subexpression
#if QT_DEPRECATED_SINCE(5, 0)
~~~~~~~~~~~~~~~~~~~^
../../../../../../../../../../Qt/5.2.1/clang_64/lib/QtWidgets.framework/Versions/5/Headers/qapplication.h:181:24: error: token is not a valid binary operator in a preprocessor subexpression
#if QT_DEPRECATED_SINCE(5, 0)
~~~~~~~~~~~~~~~~~~~^
...
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [out/obj/main.o] Error 1
01:39:30: Le processus "/usr/bin/make" s'est terminé avec le code 2.
Erreur lors de la compilation/déploiement du projet camana4 (kit : Desktop Qt 5.2.1 clang 64bit)
Lors de l'exécution de l'étape "Make"
I have seen an other post about OSX and Qt problems (http://qt-project.org/forums/viewthread/41862/), but me, I have installed Qt with the official installer and I know that I can build my source code on Linux (with Qt 5.x).
This update was a disaster… And I don’t speak about the new QtCreator 3.1.0 on OSX… really unusable, too many bugs… :(
↧