[Qtwebengine] configure error on Ubuntu 15.04

Ilia K ki.stfu at gmail.com
Tue Oct 13 15:58:25 CEST 2015


Thanks again. I'm using https://wiki.qt.io/QtWebEngineHowToTry page but it
says nothing about QtWebChannel.

Is there any other dependencies/requirements for QtWebEngine? Can you send
me a step-by-step instruction how to build it on Linux?

P.S. QtWebChannel's build failed too:
```
g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
-D_FORTIFY_SOURCE=2 -O2 -fvisibility=hidden -fvisibility-inlines-hidden
-std=c++0x -Wall -W -fno-exceptions -D_REENTRANT -fPIC
-DQT_BUILD_WEBCHANNEL_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII
-DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER
-DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000
-DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG
-DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../include
-I../../include/QtWebChannel -I../../include/QtWebChannel/5.6.0
-I../../include/QtWebChannel/5.6.0/QtWebChannel -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore/5.4.1 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore/5.4.1/QtCore -isystem
/usr/include/x86_64-linux-gnu/qt5 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtQml -isystem
/usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -x c++-header -c
../../include/QtWebChannel/QtWebChannelDepends -o .pch/Qt5WebChannel.gch/c++
g++ -c -include .pch/Qt5WebChannel -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -O2 -fvisibility=hidden
-fvisibility-inlines-hidden -std=c++0x -Wall -W -fno-exceptions
-D_REENTRANT -fPIC -DQT_BUILD_WEBCHANNEL_LIB -DQT_BUILDING_QT
-DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT
-DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS
-DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_NO_EXCEPTIONS
-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_QML_LIB
-DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../include
-I../../include/QtWebChannel -I../../include/QtWebChannel/5.6.0
-I../../include/QtWebChannel/5.6.0/QtWebChannel -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore/5.4.1 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore/5.4.1/QtCore -isystem
/usr/include/x86_64-linux-gnu/qt5 -isystem
/usr/include/x86_64-linux-gnu/qt5/QtQml -isystem
/usr/include/x86_64-linux-gnu/qt5/QtNetwork -isystem
/usr/include/x86_64-linux-gnu/qt5/QtCore -I.moc
-I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -o .obj/qwebchannel.o
qwebchannel.cpp
In file included from qwebchannel.cpp:36:0:
qwebchannel_p.h:39:31: fatal error: private/qobject_p.h: No such file or
directory
 #include <private/qobject_p.h>
                               ^
compilation terminated.
```


On Tue, Oct 13, 2015 at 4:49 PM, Bruning Michael <
Michael.Bruning at theqtcompany.com> wrote:

> Hi Ilia,
>
>
> QtWebEngine depends on QtWebChannel, so you need to clone and build that
> first (can be found here git://code.qt.io/qt/qtwebchannel.git )
>
>
> Best regards,
>
> Michael
>
> ------------------------------
> *From:* Ilia K <ki.stfu at gmail.com>
> *Sent:* Tuesday, October 13, 2015 15:38
> *To:* Bruning Michael
> *Cc:* qtwebengine at qt-project.org
>
> *Subject:* Re: [Qtwebengine] configure error on Ubuntu 15.04
>
> Michael,
>
> Thank you! Configuration step succeed, but make fails as follows:
> $ qmake
> Info: creating cache file /home/ilia/p/qtwebengine/.qmake.cache
> Running configure tests
> Checking for khr... yes
> Checking for libcap... yes
> Checking for snappy... no
> Checking for srtp... no
> System zlib or minizip not found. Using Chromium's copies.
> System libwebp or libwebpdemux not found. Using Chromium's copies.
> System libevent not found. Using Chromium's copy.
> System flac not found. Using Chromium's copy.
> System jsoncpp not found. Using Chromium's copy.
> System opus not found. Using Chromium's copy.
> System speex not found. Using Chromium's copy.
> System vpx >= 1.4 not found. Using Chromium's copy.
> System libsrtp not found. Using Chromium's copy.
> System snappy not found. Using Chromium's copy.
> SSL............................... Using system NSS
> ICU............................... Using internal copy (Default, force
> system ICU with WEBENGINE_CONFIG += use_system_icu)
> FFMPEG............................ Using internal copy (Default, force
> system FFMPEG with WEBENGINE_CONFIG += use_system_ffmpeg)
> Proprietary codecs (H264, MP3).... Not enabled         (Default, enable
> with WEBENGINE_CONFIG += use_proprietary_codecs)
> $ make
> cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
> /home/ilia/p/qtwebengine/src/src.pro -o Makefile ) && make -f Makefile
> make[1]: Entering directory '/home/ilia/p/qtwebengine/src'
> /usr/lib/x86_64-linux-gnu/qt5/bin/qmake -o Makefile src.pro
> cd core/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake
> /home/ilia/p/qtwebengine/src/core/core.pro -o Makefile ) && make -f
> Makefile
> make[2]: Entering directory '/home/ilia/p/qtwebengine/src/core'
> /usr/lib/x86_64-linux-gnu/qt5/bin/qmake -o Makefile core.pro
> ( test -e Makefile.core_gyp_generator ||
> /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/ilia/p/qtwebengine/src/core/
> core_gyp_generator.pro -o Makefile.core_gyp_generator ) && make -f
> Makefile.core_gyp_generator
> Project ERROR: Unknown module(s) in QT: webchannel
> Makefile:45: recipe for target 'sub-core_gyp_generator-pro-make_first'
> failed
> make[2]: *** [sub-core_gyp_generator-pro-make_first] Error 3
> make[2]: Leaving directory '/home/ilia/p/qtwebengine/src/core'
> Makefile:48: recipe for target 'sub-core-make_first' failed
> make[1]: *** [sub-core-make_first] Error 2
> make[1]: Leaving directory '/home/ilia/p/qtwebengine/src'
> Makefile:44: recipe for target 'sub-src-make_first' failed
> make: *** [sub-src-make_first] Error 2
>
> Any suggestions how to fix it?
>
>
> On Tue, Oct 13, 2015 at 1:05 PM, Bruning Michael <
> Michael.Bruning at theqtcompany.com> wrote:
>
>> Hello Ilia,
>>
>>
>> both your messages where just delivered to me, no clue why the first one
>> seems to have been stuck.
>>
>>
>> Coincidentally, we fixed the problem that you are seeing on the 5.6 git
>> branch. You can also find the patch here:
>> https://codereview.qt-project.org/#/c/127323/
>>
>>
>> Best regards,
>>
>> Michael
>>
>>
>> ------------------------------
>> *From:* qtwebengine-bounces+michael.bruning=
>> theqtcompany.com at qt-project.org <qtwebengine-bounces+michael.bruning=
>> theqtcompany.com at qt-project.org> on behalf of Ilia K <ki.stfu at gmail.com>
>> *Sent:* Friday, October 9, 2015 13:18
>> *To:* qtwebengine at qt-project.org
>> *Subject:* Re: [Qtwebengine] configure error on Ubuntu 15.04
>>
>> ping
>>
>> On Tue, Oct 6, 2015 at 7:14 PM, Ilia K <ki.stfu at gmail.com> wrote:
>>
>>> Hi!
>>>
>>> I tried to build qtwebengine on Linux pc, but got the following:
>>> ```
>>> $ qmake -r
>>> Running configure tests
>>> Checking for khr... yes
>>> Checking for libcap... yes
>>> Checking for snappy... no
>>> Checking for srtp... no
>>> System zlib or minizip not found. Using Chromium's copies.
>>> System libwebp or libwebpdemux not found. Using Chromium's copies.
>>> System libevent not found. Using Chromium's copy.
>>> System flac not found. Using Chromium's copy.
>>> System jsoncpp not found. Using Chromium's copy.
>>> System opus not found. Using Chromium's copy.
>>> System speex not found. Using Chromium's copy.
>>> System vpx >= 1.4 not found. Using Chromium's copy.
>>> System libsrtp not found. Using Chromium's copy.
>>> System snappy not found. Using Chromium's copy.
>>> ICU............................... Using internal copy (Default, force
>>> system ICU with WEBENGINE_CONFIG += use_system_icu)
>>> FFMPEG............................ Using internal copy (Default, force
>>> system FFMPEG with WEBENGINE_CONFIG += use_system_ffmpeg)
>>> Proprietary codecs (H264, MP3).... Not enabled         (Default, enable
>>> with WEBENGINE_CONFIG += use_proprietary_codecs)
>>>
>>> Unmet dependency: libjpeg
>>> QtWebEngine will not be built.
>>> ```
>>>
>>> Unfortunately I installed all libjpeg* packages that I found in repo,
>>> but am still getting that error.
>>>
>>> Could you help me?
>>>
>>> --
>>> - Ilia
>>>
>>
>>
>>
>> --
>> - Ilia
>>
>
>
>
> --
> - Ilia
>



-- 
- Ilia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qtwebengine/attachments/20151013/b7bce2de/attachment.html>


More information about the QtWebEngine mailing list