go-ui
go-ui copied to clipboard
go-ui for QT5.0.1
i'm make the qtdrv for QT5.0.1 。
make clang++ -c -pipe -mmacosx-version-min=10.6 -O2 -Wall -W -fPIC -DQTDRV_LIBRARY -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../../../../../../Qt5/5.0.1/clang_64/mkspecs/macx-clang -I. -I../../../../../../../Qt5/5.0.1/clang_64/include -I../../../../../../../Qt5/5.0.1/clang_64/include/QtGui -I../../../../../../../Qt5/5.0.1/clang_64/lib/QtGui.framework/Versions/5/Headers -I../../../../../../../Qt5/5.0.1/clang_64/include/QtCore -I../../../../../../../Qt5/5.0.1/clang_64/lib/QtCore.framework/Versions/5/Headers -I. -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/AGL.framework/Headers -o cdrv.o cdrv.cpp In file included from cdrv.cpp:15: In file included from ./cdrv.h:15: ./qtsignal.h:19:10: fatal error: 'QAction' file not found
include <QAction>
^
1 error generated.
The stuff didn't ported to qt5. I have added qt5-includes and -libs, but found many other problems after
Just to maybe save someone else's time and headache, to compile qtdrv when you have installed Qt5, run this before qmake:
export QT_SELECT=4
EDIT: I still hit a wall later in the installation process though, but I think that belongs in another issue.
put the code below in qtdrv.pro: QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets it will fix this problem.