PDA

View Full Version : Qt 4.5.2 doesn't compile - namespace: QtCppIntegration



kaizimir
9th July 2009, 14:52
Hello,

tried to compile Qt 4.5.2 on openSUSE 10.3 after configuring with:

./configure -qtnamespace QtCppIntegration -qtlibinfix CppIntegration

like described here:
http://www.qtsoftware.com/developer/eclipse-integration
under 'Qt dependencies' (bottom of site)

I receive this errors:


In file included from mainwindow.cpp:44:
mainwindow.h:74: error: reference to ‘QWebView’ is ambiguous
../../../include/QtWebKit/../../src/3rdparty/webkit/WebCore/../WebKit/qt/Api/qwe
bview.h:43: error: candidates are: class QWebView
mainwindow.h:45: error: struct QtCppIntegration::QWebView
mainwindow.h:74: error: ISO C++ forbids declaration of ‘QWebView’ with no type
mainwindow.h:74: error: expected ‘;’ before ‘*’ token
mainwindow.cpp: In constructor ‘MainWindow::MainWindow()’:
mainwindow.cpp:60: error: ‘view’ was not declared in this scope
mainwindow.cpp:60: error: reference to ‘QWebView’ is ambiguous
../../../include/QtWebKit/../../src/3rdparty/webkit/WebCore/../WebKit/qt/Api/qwe
bview.h:43: error: candidates are: class QWebView
mainwindow.h:45: error: struct QtCppIntegration::QWebView
mainwindow.cpp:60: error: expected type-specifier before ‘QWebView’
mainwindow.cpp:60: error: expected `;' before ‘QWebView’
mainwindow.cpp: In member function ‘void MainWindow::adjustLocation()’:
mainwindow.cpp:103: error: ‘view’ was not declared in this scope
mainwindow.cpp: In member function ‘void MainWindow::changeLocation()’:
mainwindow.cpp:109: error: ‘view’ was not declared in this scope
mainwindow.cpp: In member function ‘void MainWindow::adjustTitle()’:
mainwindow.cpp:118: error: ‘view’ was not declared in this scope
mainwindow.cpp:120: error: ‘view’ was not declared in this scope
mainwindow.cpp: In member function ‘void MainWindow::finishLoading(bool)’:
mainwindow.cpp:135: error: ‘view’ was not declared in this scope
mainwindow.cpp: In member function ‘void MainWindow::highlightAllLinks()’:
mainwindow.cpp:143: error: ‘view’ was not declared in this scope
mainwindow.cpp: In member function ‘void MainWindow::rotateImages(bool)’:
mainwindow.cpp:151: error: ‘view’ was not declared in this scope
mainwindow.cpp: In member function ‘void MainWindow::removeGifImages()’:
mainwindow.cpp:164: error: ‘view’ was not declared in this scope
mainwindow.cpp: In member function ‘void MainWindow::removeInlineFrames()’:
mainwindow.cpp:170: error: ‘view’ was not declared in this scope
mainwindow.cpp: In member function ‘void MainWindow::removeObjectElements()’:
mainwindow.cpp:176: error: ‘view’ was not declared in this scope
mainwindow.cpp: In member function ‘void MainWindow::removeEmbeddedElements()’:
mainwindow.cpp:182: error: ‘view’ was not declared in this scope
gmake[3]: *** [.obj/release-shared/mainwindow.o] Fehler 1
gmake[3]: Leaving directory `/home/kai/Downloads/FoxiesDowns/qt-x11-opensource-s rc-4.5.2/examples/webkit/fancybrowser'
gmake[2]: *** [sub-fancybrowser-make_default] Fehler 2
gmake[2]: Leaving directory `/home/kai/Downloads/FoxiesDowns/qt-x11-opensource-s rc-4.5.2/examples/webkit'
gmake[1]: *** [sub-webkit-make_default] Fehler 2
gmake[1]: Leaving directory `/home/kai/Downloads/FoxiesDowns/qt-x11-opensource-s rc-4.5.2/examples'
gmake: *** [sub-examples-make_default-ordered] Fehler 2


Has anyone found a solution to this or can help me to find a workaround.

Thx in advance,
kai

jpn
15th July 2009, 22:23
The problem is in that particular example. You can skip the example by commenting it out from the .pro file or by skipping all examples with "configure -nomake examples".