[Qtwebengine] Building woes

Pierre Rossi pierre.rossi at gmail.com
Thu Jun 26 12:17:47 CEST 2014


Hi Greg,

For OS X (assuming it's mavericks), have you tried an "in-source" build
(it'll actually create build subdirectories in src/core for the core
library)? Shadow build support is not something we've focused on so far.

Not sure what's going on on Fedora, but one thing you could check is
whether it's using plain old ld or gold. I strongly recommend the latter as
I've ran into the weirdest linker bugs with ld.bfd.

Let us know how things go.

Cheers,
--
Pierre


On Wed, Jun 25, 2014 at 9:17 PM, Greg Hellings <greg.hellings at gmail.com>
wrote:

> I've been trying to compile QtWebEngine the past few weeks on both Fedora
> Rawhide and OS X. I'm getting different failures in each environment,
> compiling against Qt 5.3.1 in both places. In OS X I get the message
>
> qtwebengine/src/webengine/api/qquickwebengineview.cpp:661:10: fatal error:
> 'moc_qquickwebengineview_p.cpp' file not found
>
>
> This message has persisted for the entirety of the two weeks, so I can
> only assume that I must be the only person trying to build on OS X. I
> configure that build with a call to
>
>
> ~/Qt/5.3/clang_64/bin/qmake -r CONFIG-=release ../qtwebengine/
> qtwebengine.pro
>
>
> In Fedora Rawhide I have to invoke qmake with an explicit STRIP=`which
> strip` call. The full call is
>
> /usr/lib64/qt5/bin/qmake -r CONFIG-=release STRIP=/usr/bin/strip
>
> The errors I see in this environment are akin to the following:
>
> /usr/bin/ld: warning: libQt0WebEngineCore.so.0, needed by
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so, not found
> (try using -rpath or
>
>  -rpath-link)
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::stop()'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::navigateToIndex(int)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `JavaScriptDialogController::dialogCloseRequested()'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::getNavigationEntryTitle(int)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::wasHidden()'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::WebContentsAdapter(content::WebContents*)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebEngineError::UserAbortedError'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::grantMediaAccessPermission(QUrl const&,
> QFlags<WebContentsAdapterClient::MediaRequestFlag>)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::isLoading() const'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::initialize(WebContentsAdapterClient*)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::wasShown()'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::dpiScaleChanged()'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `JavaScriptDialogController::defaultPrompt() const'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::enableInspector(bool)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::navigateToOffset(int)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::activeUrl() const'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::load(QUrl const&)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::canGoBack() const'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `JavaScriptDialogController::title() const'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `JavaScriptDialogController::message() const'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::canGoForward() const'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::reload()'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::filesSelectedInChooser(QStringList
> const&, WebContentsAdapterClient::FileChooserMode)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::navigationEntryCount()'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `JavaScriptDialogController::staticMetaObject'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::pageTitle() const'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::setContent(QByteArray const&, QString
> const&, QUrl const&)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::currentNavigationEntryIndex()'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::runJavaScript(QString const&)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebEngineError::toQtErrorDomain(int)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::getNavigationEntryUrl(int)'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::~WebContentsAdapter()'
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `WebContentsAdapter::Makefile:100: recipe for target
> 'quicknanobrowser' failed
>
> make[2]: Leaving directory
> '/builddir/build/BUILD/qt5-qtwebengine/examples/webengine/quicknanobrowser'
>
>
>
> /builddir/build/BUILD/qt5-qtwebengine/lib/libQt0WebEngine.so: undefined
> reference to `JavaScriptDialogController::type() const'
>
>
> etc.
>
>
> Are there any hints beyond the ones in the readme file for what I might be
> missing or what build process I'm doing wrong? I'd love to get this
> building in both environments but thus far I have not been able to do so.
>
>
> --Greg
>
> _______________________________________________
> QtWebEngine mailing list
> QtWebEngine at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qtwebengine
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20140626/70dcda83/attachment.html>


More information about the QtWebEngine mailing list