Error building QtCreator 3.0.1 with Qt4.8.5 with WebKit - Centos 7.1



  • Hi,
    I am having trouble building Qt Creator 3.0.1 with Qt 4.8.5 on Centos 7.1. I don't understand why the helpviewer files are causing this problem. The readme file states that I can build this qt creator with 4.8.X. What else do I need to do/fix to get QWebview, QWebPage to be found?
    Some of the compile output is below.

    Thank you!

    [xxx]$ make
    ccache g++ -c -pipe -std=c++11 -fstrict-aliasing -Wextra -pedantic -Weffc++ -Wfloat-equal -Wswitch-default -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wdisabled-optimization -Wformat-nonliteral -Wformat-security -Wconversion -Wformat-nonliteral -Wformat-y2k -Wformat=2 -Wimport -Winit-self -Winline -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wold-style-cast -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstack-protector -Wstrict-aliasing=2 -Wswitch-enum -Wunreachable-code -Wunsafe-loop-optimizations -Wunused -Wvariadic-macros -Wwrite-strings -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -O2 -fvisibility=hidden -fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DIDE_LIBRARY_BASENAME="lib" -DQT_CREATOR -DQT_NO_CAST_TO_ASCII -DQT_NO_CAST_FROM_ASCII -DQT_USE_FAST_OPERATOR_PLUS -DQT_USE_FAST_CONCATENATION -DQT_CLUCENE_SUPPORT -DHELP_LIBRARY -DQT_NO_DEBUG -DQT_PLUGIN -DQT_SQL_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/lib64/qt4/mkspecs/linux-g++ -I. -I/usr/include/QtCore -I/usr/include/QtNetwork -I/usr/include/QtGui -I/usr/include/QtSql -I/usr/include -I/usr/include/QtHelp -I. -I../../../src -I../../libs -I../../../tools -I../../plugins -I../../shared/help -I../../shared -I.moc/release-shared -I.uic -o .obj/release-shared/moc_helpviewer.o .moc/release-shared/moc_helpviewer.cpp
    A LOT OF WARNINGS then
    moc/release-shared/moc_helpviewer.cpp:85:22: error: ‘class Help::Internal::HelpViewer’ has no member named ‘slotNetworkReplyFinished’
    case 14: _t->slotNetworkReplyFinished((reinterpret_cast< QNetworkReply()>(_a[1]))); break;
    ^
    .moc/release-shared/moc_helpviewer.cpp:85:67: error: expected type-specifier before ‘QNetworkReply’
    case 14: _t->slotNetworkReplyFinished((reinterpret_cast< QNetworkReply(
    )>(_a[1]))); break;
    ^
    .moc/release-shared/moc_helpviewer.cpp:85:67: error: expected ‘>’ before ‘QNetworkReply’
    .moc/release-shared/moc_helpviewer.cpp:85:67: error: expected ‘(’ before ‘QNetworkReply’
    .moc/release-shared/moc_helpviewer.cpp:85:67: error: ‘QNetworkReply’ was not declared in this scope
    .moc/release-shared/moc_helpviewer.cpp:85:83: error: expected primary-expression before ‘)’ token
    case 14: _t->slotNetworkReplyFinished((reinterpret_cast< QNetworkReply()>(_a[1]))); break;
    ^
    .moc/release-shared/moc_helpviewer.cpp: At global scope:
    .moc/release-shared/moc_helpviewer.cpp:96:8: error: ‘QWebView’ has not been declared
    { &QWebView::staticMetaObject, qt_meta_stringdata_Help__Internal__HelpViewer,
    ^
    .moc/release-shared/moc_helpviewer.cpp: In member function ‘virtual void
    Help::Internal::HelpViewer::qt_metacast(const char*)’:
    .moc/release-shared/moc_helpviewer.cpp:114:12: error: ‘QWebView’ has not been declared
    return QWebView::qt_metacast(_clname);
    ^
    .moc/release-shared/moc_helpviewer.cpp: In member function ‘virtual int Help::Internal::HelpViewer::qt_metacall(QMetaObject::Call, int, void**)’:
    .moc/release-shared/moc_helpviewer.cpp:119:11: error: ‘QWebView’ has not been declared
    _id = QWebView::qt_metacall(_c, _id, _a);
    ^
    .moc/release-shared/moc_helpviewer.cpp: At global scope:
    .moc/release-shared/moc_helpviewer.cpp:149:64: error: no ‘void Help::Internal::HelpViewer::sourceChanged(const QUrl&)’ member function declared in class ‘Help::Internal::HelpViewer’
    void Help::Internal::HelpViewer::sourceChanged(const QUrl & _t1)
    ^
    .moc/release-shared/moc_helpviewer.cpp:156:59: error: no ‘void Help::Internal::HelpViewer::forwardAvailable(bool)’ member function declared in class ‘Help::Internal::HelpViewer’
    void Help::Internal::HelpViewer::forwardAvailable(bool _t1)
    AND THAT KEEPS GOING LIKE THAT


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.