[webkit-qt] How to Cross-Compile WebKit 2.3?

"Sárkány, István" sarkany.istvan at gmail.com
Tue Aug 20 02:06:36 PDT 2013


Hi Hua,

I have no support for OpenGl so I've removed the feature which I don't 
need from Tools/qmake/mkspecs/features/features.pri.
If you need it though, look for 
PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC, it should be defined in 
glext.h so maybe something's wrong there.

Best regards,
Istvan

On 08/20/2013 10:59 AM, Hua Hsing wrote:
> Hi Istvan,
>
> Thanks for the advice. I manage to get it running (the build script 
> ie.) with the cross-compiler correctly. The sqlite headers are not a 
> problem after I set the pkg-config variables properly to use the pc 
> files from the target root filesystem and point to the headers in it.
>
> I'm currently getting errors like these:
> /home/huahsing/work/source/QT-RPM-BUILD/qt-webkit-2.3/webkit-qtwebkit-23/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:120:5: 
> error: ‘PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMG’ does not name a type
> /home/huahsing/work/source/QT-RPM-BUILD/qt-webkit-2.3/webkit-qtwebkit-23/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h:121:5: 
> error: ‘PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMG’ does not name a type
>
> By the way, it seems like ANGLE is enabled by default. I have my own 
> set of OpenGLES 2 / EGL libraries and headers; so how do I disable 
> ANGLE? I already added opengles2 to the CONFIG/QT_CONFIG via qmakearg, 
> but apparently ANGLE still seems to be enabled??
>
> In my gl2ext.h, it already has these:
> typedef void (GL_APIENTRYP PFNGLRENDERBUFFERSTORAGEMULTISAMPLEIMGPROC) 
> (GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, 
> GLsizei height);
> typedef void (GL_APIENTRYP 
> PFNGLFRAMEBUFFERTEXTURE2DMULTISAMPLEIMGPROC) (GLenum target, GLenum 
> attachment, GLenum textarget, GLuint texture, GLint level, GLsizei 
> samples);
>
> enabled, so I'm guessing I should not encounter the above errors if 
> I'm using my own headers.
>
> Any ideas will be much appreciated :)
>
>
> Cheers
> Hua-Hsing
>
>
>
>
>
> /<> Hua Hsing/
>
>
> On 19 August 2013 16:34, "Sárkány, István" <sarkany.istvan at gmail.com 
> <mailto:sarkany.istvan at gmail.com>> wrote:
>
>     Hi Hua,
>
>     You can cross-compile using the build-webkit script, but if I
>     remember right your prefix has to point to the cross-compiled
>     QT_INSTALL_DIR, from where it'll take the qmake.conf which it will
>     use then to cross-compile. So call something like:
>     Tools/Scripts/build-webkit --qt \
>                 --release \
>                 --no-webkit2 \
>                 --no-force-sse2 \
>                 --qmakearg="CONFIG+=production_build" \
>                 --prefix=$(QT_INSTALL_DIR)
>     Also you might need to set the SQLITE3SRCDIR manually to point to
>     the headers already available in qt/src/3rdparty/sqlite
>
>     Best regards,
>     Istvan
>
>
>     On 08/15/2013 12:31 PM, Hua Hsing wrote:
>>     Hi,
>>
>>     I'm trying out qt-webkit 2.3 with qt-4.8. The problem is,
>>     Tools/Scripts/build-webkit does not work for me as I'm working in
>>     Fedora host cross-compiling for ARM target. I've been
>>     cross-compiling my qt-embedded-4.8 all this while, and right now
>>     I'm kind of at a loss as to how to build this qt-webkit 2.3
>>     alongside the rest of my Qt package.
>>
>>
>>     /Cheers,/
>>     /Hua-Hsing/
>>
>>
>>     _______________________________________________
>>     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
>
>
>     _______________________________________________
>     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
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20130820/324d7ce3/attachment.html>


More information about the webkit-qt mailing list