[webkit-qt] Build and Install QtWebKit
Charles-Elie Gentil
mail at jiyuusoft.net
Fri Feb 10 11:14:58 PST 2017
Configuring incomplete, errors occurred!
But I think that an error with the patch of
Source/cmake/ECMGeneratePriFile.cmake <https://github.com/annulen/webkit/pull/388/files/f1c8914d5aca972879f18c4db2a4978f348375d6#diff-462c2fb6b51367028375382a4b55721b>
and
Source/cmake/ECMGeneratePkgConfigFile.cmake <https://github.com/annulen/webkit/pull/388/files/f1c8914d5aca972879f18c4db2a4978f348375d6#diff-edfba8c525a826e4adf2be41db348812>
<https://github.com/annulen/webkit/pull/388/files/f1c8914d5aca972879f18c4db2a4978f348375d6#diff-462c2fb6b51367028375382a4b55721b>
Best regards,
Charlie
mail at jiyuusoft.net
http://blog.jiyuusoft.net
> Le 10 févr. 2017 à 18:44, Konstantin Tokarev <annulen at yandex.ru> a écrit :
>
>
>
> 10.02.2017, 10:33, "Charles-Elie Gentil" <mail at jiyuusoft.net>:
>> Hi,
>>
>>
>> Yes … I do it.
>> I have just rebuild from qtwebkit-tp5.tar.xz with debug and release option.
>>
>> Firstly I notice that the building of QtWebkit don’t produce the same element that a standard installation of Qt. For example (on my mac) :
>>
>> 5.8
>> |___lib
>> |____QtCore.framework
>> |_____Headers
>> |_____QtCore
>> |_____QtCore_debug
>> |_____QtCore_debug.prl
>> |_____QtCore.prl
>> |_____Resources
>> |_____Versions
>> |____QtCore.framework.dSYM
>> |____QtWebKit.framework
>> |_____Headers
>> |_____QtCore
>> |_____Resources
>> |_____Versions
>>
>>
>> So, *_debug, *.prl, *_debug.prl and *.dSYM are missing.
>>
>>
>>
>> Secondly, the error is :
>> library not found for -lQt5WebKit
>>
>> but the lib should not be lQtWebKit ?
>
> It actually should be -framework QtWebKit
> Please try patch https://github.com/annulen/webkit/pull/388
>
>>
>>
>> Best regards,
>>
>> Charlie
>>
>> mail at jiyuusoft.net <mailto:mail at jiyuusoft.net>
>> http://blog.jiyuusoft.net <http://blog.jiyuusoft.net/>
>>> Le 9 févr. 2017 à 18:23, Konstantin Tokarev <annulen at yandex.ru <mailto:annulen at yandex.ru>> a écrit :
>>>
>>>
>>>
>>> 09.02.2017, 20:00, "Charles-Élie G" <mail at jiyuusoft.net <mailto:mail at jiyuusoft.net>>:
>>>>
>>>> Hi,
>>>>
>>>> Unfortunately, I have the same problem if I do it. :-(
>>>
>>> Oops, looks like my instruction was too sloppy, and you followed it verbatimly
>>>
>>> qtwebkit-tp5-qt58-darwin-x64.tar.xz contains wrapping directory "qtwebkit-tp5-qt58-darwin-x64" to avoid tarbombing, so it's structure looks like
>>>
>>> qtwebkit-tp5-qt58-darwin-x64
>>> ├── include
>>> ├── lib
>>> └── mkspecs
>>>
>>> Structure of Qt looks like
>>>
>>> 5.8
>>> └── clang_64
>>> ├── bin
>>> ├── doc
>>> ├── include
>>> ├── lib
>>> ├── mkspecs
>>> ├── phrasebooks
>>> ├── plugins
>>> ├── qml
>>> └── translations
>>>
>>> As you could guess, to work properly contents of "include" need to be unpacked to "include" and so on
>>>
>>> So right unpack command is
>>>
>>> cd ....5.8/clang_64 && tar --strip-components=1 -xJf ..../qtwebkit-tp5-qt58-darwin-x64.tar.xz
>>>
>>> (where .... are paths on your system that I don't know)
>>>
>>> I guess I should write detailed installation instruction :)
>>>
>>>
>>>>
>>>> Envoyé de mon Galaxy S6 Orange
>>>>
>>>> -------- Message d'origine --------
>>>> De : Konstantin Tokarev <annulen at yandex.ru <mailto:annulen at yandex.ru>>
>>>> Date : 09/02/2017 08:43 (GMT+01:00)
>>>> À : Charles-Elie Gentil <mail at jiyuusoft.net <mailto:mail at jiyuusoft.net>>
>>>> Cc : webkit-qt at lists.webkit.org <mailto:webkit-qt at lists.webkit.org>
>>>> Objet : Re: [webkit-qt] Build and Install QtWebKit
>>>>
>>>> 09.02.2017, 10:41, "Charles-Elie Gentil" <mail at jiyuusoft.net <mailto:mail at jiyuusoft.net>>:
>>>>>
>>>>> I have just tested with the contents of qtwebkit-tp5-qt58-darwin-x64.tar.xz, pasted in /Users/charlie/qtwebkit.
>>>>
>>>> You need to unpack this archive into prefix of your Qt installation, n this case it should be something like ..../5.8/clang_64
>>>>
>>>>
>>>>>
>>>>> In my .pro file, I have added
>>>>>
>>>>> QMAKEPATH += /Users/charlie/qtwebkit
>>>>>
>>>>> QT += webkit
>>>>>
>>>>> I have the same problem.
>>>>>
>>>>> I will test this morning with rebuilding my own QtWebkit from qtwebkit-tp5.tar.xz (The construction is relatively slow with my computer ;-) )
>>>>>
>>>>> Thank
>>>>>
>>>>> Best regards,
>>>>>
>>>>> Charlie
>>>>>
>>>>> mail at jiyuusoft.net <mailto:mail at jiyuusoft.net>
>>>>> http://blog.jiyuusoft.net <http://blog.jiyuusoft.net/>
>>>>>
>>>>>>
>>>>>> Le 9 févr. 2017 à 08:25, Konstantin Tokarev <annulen at yandex.ru <mailto:annulen at yandex.ru>> a écrit :
>>>>>>
>>>>>> 09.02.2017, 10:13, "Charles-Elie Gentil" <mail at jiyuusoft.net <mailto:mail at jiyuusoft.net>>:
>>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> @Konstantin : Thank you for your help.
>>>>>>>
>>>>>>> I did two tests :
>>>>>>> 1°) with QtWebKit form here : https://github.com/annulen/webkit/releases/tag/qtwebkit-tp5 <https://github.com/annulen/webkit/releases/tag/qtwebkit-tp5> (qtwebkit-tp5.tar.xz)
>>>>>>> 2°) with QtWebKit from qt Community : http://download.qt.io/community_releases/5.8/5.8.0-final/ <http://download.qt.io/community_releases/5.8/5.8.0-final/>
>>>>>>>
>>>>>>> Note :
>>>>>>> - with 1°) CMAKE_INSTALL_PREFIX doesn’t work, and I use « —prefix » option. ninja_install works.
>>>>>>
>>>>>> Indeed, --prefix is a correct option
>>>>>>
>>>>>>>
>>>>>>> - with 2°) ninja_install doesn’t work.
>>>>>>
>>>>>> Right, because this is a legacy QtWebKit that uses qmake-based build system, which does not support ninja
>>>>>>
>>>>>>>
>>>>>>> In the 2 cases I have, in WebKitBuild/Release several folders including libs and include. These 2 folders are similar to those included in qtwebkit-tp5-qt58-darwin-x64.tar.xz (https://github.com/annulen/webkit/releases/tag/qtwebkit-tp5 <https://github.com/annulen/webkit/releases/tag/qtwebkit-tp5>).
>>>>>>> Currently, I only use the first solution (with tp5 of WebKit)
>>>>>>>
>>>>>>> I work with Qt5.8 and qmake. I have installed QtWebKit in my Qt installation. I add webkit in my project :
>>>>>>> QT+= webkit
>>>>>>>
>>>>>>> Unfortunately, when I want compile my project, lQt5WebKit isn’t found.
>>>>>>>
>>>>>>> Have you an idea ?
>>>>>>
>>>>>> If you use custom prefix, read
>>>>>> https://github.com/annulen/webkit/wiki/Using-QtWebKit-in-your-project <https://github.com/annulen/webkit/wiki/Using-QtWebKit-in-your-project>
>>>>>>
>>>>>> By default, TP5 installs into Qt prefix, in this case QT+=webkit should work out of the box
>>>>>>
>>>>>>>
>>>>>>> Best regards,
>>>>>>>
>>>>>>> Charlie
>>>>>>>
>>>>>>> mail at jiyuusoft.net <mailto:mail at jiyuusoft.net>
>>>>>>> http://blog.jiyuusoft.net <http://blog.jiyuusoft.net/>
>>>>>>>
>>>>>>>>
>>>>>>>> Le 8 févr. 2017 à 08:41, Konstantin Tokarev <annulen at yandex.ru <mailto:annulen at yandex.ru>> a écrit :
>>>>>>>>
>>>>>>>> 08.02.2017, 08:31, "Charles-Elie Gentil" <mail at jiyuusoft.net <mailto:mail at jiyuusoft.net>>:
>>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> I want use QtWebKit and so, I build it following these instructions : https://github.com/annulen/webkit/wiki/Building-QtWebKit-on-OS-X <https://github.com/annulen/webkit/wiki/Building-QtWebKit-on-OS-X>
>>>>>>>>> I add a CMAKE_INSTALL_PREFIX to have this command :
>>>>>>>>>
>>>>>>>>> ./Tools/Scripts/build-webkit --qt --cmakeargs="-Wno-dev -CMAKE_INSTALL_PREFIX=/path/to/my/dir »
>>>>>>>>>
>>>>>>>>> The build correctly run but I can’t find the way to run the « install » command.
>>>>>>>>>
>>>>>>>>> I try « ninja install », but I've this message
>>>>>>>>>
>>>>>>>>> ninja: error: loading 'build.ninja': No such file or directory
>>>>>>>>>
>>>>>>>>> Can you help me ?
>>>>>>>>>
>>>>>>>>> Thank you very much.
>>>>>>>>
>>>>>>>> cd WebKitBuild/Release && ninja install
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Best regards,
>>>>>>>>>
>>>>>>>>> Charlie
>>>>>>>>>
>>>>>>>>> mail at jiyuusoft.net <mailto:mail at jiyuusoft.net>
>>>>>>>>> http://blog.jiyuusoft.net <http://blog.jiyuusoft.net/>
>>>>>>>>> ,
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> webkit-qt mailing list
>>>>>>>>> webkit-qt at lists.webkit.org <mailto:webkit-qt at lists.webkit.org>
>>>>>>>>> https://lists.webkit.org/mailman/listinfo/webkit-qt <https://lists.webkit.org/mailman/listinfo/webkit-qt>
>>>>>>>> --
>>>>>>>> Regards,
>>>>>>>> Konstantin
>>>>>>> ,
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> webkit-qt mailing list
>>>>>>> webkit-qt at lists.webkit.org <mailto:webkit-qt at lists.webkit.org>
>>>>>>> https://lists.webkit.org/mailman/listinfo/webkit-qt <https://lists.webkit.org/mailman/listinfo/webkit-qt>
>>>>>> --
>>>>>> Regards,
>>>>>> Konstantin
>>>>
>>>> --
>>>> Regards,
>>>> Konstantin
>>>
>>>
>>> --
>>> Regards,
>>> Konstantin
>
>
> --
> Regards,
> Konstantin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-qt/attachments/20170210/c224cd2c/attachment-0001.html>
More information about the webkit-qt
mailing list