[Interest] Qt 5.4.0: building qtwebengine out-of-tree?
René J.V. Bertin
rjvbertin at gmail.com
Fri Feb 27 22:32:02 CET 2015
Hello,
I'm trying an out-of-tree build of just the QtWebEngine from the 5.4.0 tarball, with the other components already installed.
After hours of compiler grinding, I got this, while building one of the examples:
/usr/bin/clang++ -c -O3 -march=core2 -g -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.9 -fno-exceptions -Wall -W -fPIE -DQT_NO_MTDEV -DQT_NO_LIBUDEV -DQT_NO_EVDEV -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WEBENGINEWIDGETS_LIB -DQT_WEBENGINE_LIB -DQT_QUICK_LIB -DQT_PRINTSUPPORT_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_UITOOLS_LIB -DQT_CORE_LIB -I/opt/local/share/qt5/mkspecs/macx-clang -I/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work/qt-everywhere-opensource-src-5.4.0/qtwebengine/examples/webenginewidgets/browser -I/opt/local/libexec/qt5/Library/Frameworks/QtQuick.framework/Versions/5/Headers -I/opt/local/libexec/qt5/Library/Frameworks/QtPrintSupport.framework/Versions/5/Headers -I/opt/local/libexec/qt5/Library/Frameworks/QtWidgets.framework/Versions/5/Headers -I/opt/local/libexec/qt5/Library/Frameworks/QtGui.framework/Versions/5/Headers -I/opt/local/libexec/qt5/Library/Frameworks/QtQml.framework/Versions/5/Headers -I/opt/local/libexec/qt5/Library/Frameworks/QtNetwork.framework/Versions/5/Headers -isystem /opt/local/include/qt5 -isystem /opt/local/include/qt5/QtUiTools -I/opt/local/libexec/qt5/Library/Frameworks/QtCore.framework/Versions/5/Headers -I.moc -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AGL.framework/Headers -I.uic -I. -F/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work/build/lib -F/opt/local/libexec/qt5/Library/Frameworks -o .obj/browserapplication.o /opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work/qt-everywhere-opensource-src-5.4.0/qtwebengine/examples/webenginewidgets/browser/browserapplication.cpp
In file included from /opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work/qt-everywhere-opensource-src-5.4.0/qtwebengine/examples/webenginewidgets/browser/browserapplication.cpp:50:
/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work/qt-everywhere-opensource-src-5.4.0/qtwebengine/examples/webenginewidgets/browser/tabwidget.h:87:10: fatal error: 'QWebEnginePage' file not found
#include <QWebEnginePage>
^
1 error generated.
make[2]: *** [.obj/browserapplication.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work/build/examples/webenginewidgets/browser'
make[1]: *** [sub-webenginewidgets-browser-make_first] Error 2
make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work/build/examples'
make: *** [sub-examples-make_first] Error 2
make: Leaving directory `/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work/build'
Command failed: cd "/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work/build" && /usr/bin/make -w
Exit code: 2
Error: Failed to build qt5-mac-devel-qtwebengine: command execution failed
%> find /opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work/ -name QWebEnginePage
/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work//build/lib/QtWebEngineWidgets.framework/Versions/5/Headers/QWebEnginePage
/opt/local/var/macports/build/_opt_local_site-ports_aqua_qt5-mac-devel/qt5-mac-devel-qtwebengine/work//qt-everywhere-opensource-src-5.4.0/qtwebengine/include/QtWebEngineWidgets/QWebEnginePage
Does one have to install the component before building the examples?
Thanks,
R.
More information about the Interest
mailing list