[webkit-qt] SVGElement Errror

Alexis Menard alexis.menard at openbossa.org
Fri Oct 14 04:20:27 PDT 2011


On Oct 14, 2011, at 4:59 AM, gloridel malingin wrote:

> Hello Everyone,
> 
> I am a newbie with QTWebkit and now I am lost on how to fix my compile errors.
> 
> I am trying to cross-compile under Ubuntu linux for x86 architecture.
> 
> I configure qt like this:
> 
> ./configure -release -embedded x86 -opensource -little-endian
> -openssl-linked -reduce-exports -reduce-relocations -qt-gfx-directfb
> -no-dbus -depths 32 -webkit -qt-gif -platform linux-g++ -xplatform
> linux-g++ -qt-libpng -qt-libjpeg -qt-freetype -qt-zlib
> -no-sql-postgres -no-sql-mysql -no-sql-oracle -no-phonon
> -no-phonon-backend -no-nis -no-libtiff -no-iconv -no-libmng -nomake
> translations -nomake demos -nomake examples -nomake tools -nomake docs
> -no-glib -no-javascript-jit -no-svg -no-declarative -no-scripttools
> -no-xmlpatterns -no-multimedia -no-accessibility  -no-exceptions
> -no-script -no-sql-odbc -no-sql-tds -no-sql-sqlite2 -no-qt3support
> -no-mmx -no-cups -no-3dnow -no-sse -no-sse2
> 
> and Disable the SVG related flags in the Makefile under
> 3rdParty\qt\src\3rdparty\webkit\WebCore
> 
> DENABLE_SVG=0 -DENABLE_SVG_FONTS=0 -DENABLE_SVG_FOREIGN_OBJECT=0
> -DENABLE_SVG_ANIMATION=0 -DENABLE_SVG_AS_IMAGE=0 -DENABLE_SVG_USE=0

This is not enough.

If you want a custom tailored QtWebKit you need to checkout the qtwebkit branch and the last released version (2.2) and build it separately.

https://gitorious.org/+qtwebkit-developers/webkit/qtwebkit

and read http://trac.webkit.org/wiki/BuildingQtOnLinux

> 
> But then I got the Errors below:
> 
> -o .obj/release-shared-emb-x86/SVGElementFactory.o
> generated/SVGElementFactory.cpp
> generated/SVGElementFactory.cpp:587: warning: unused parameter 'qName'
> generated/SVGElementFactory.cpp:587: warning: unused parameter 'document'
> generated/SVGElementFactory.cpp:587: warning: unused parameter 'createdByParser'
> ../JavaScriptCore/wtf/PassRefPtr.h: In function 'void
> WTF::refIfNotNull(T*) [with T = WebCore::SVGElement]':
> ../JavaScriptCore/wtf/PassRefPtr.h:59:   instantiated from
> 'WTF::PassRefPtr<T>::PassRefPtr(T*) [with T = WebCore::SVGElement]'
> generated/SVGElementFactory.cpp:604:   instantiated from here
> ../JavaScriptCore/wtf/PassRefPtr.h:43: error: invalid use of
> incomplete type 'struct WebCore::SVGElement'
> generated/SVGElementFactory.h:44: error: forward declaration of
> 'struct WebCore::SVGElement'
> ../JavaScriptCore/wtf/PassRefPtr.h: In function 'void
> WTF::derefIfNotNull(T*) [with T = WebCore::SVGElement]':
> ../JavaScriptCore/wtf/PassRefPtr.h:67:   instantiated from
> 'WTF::PassRefPtr<T>::~PassRefPtr() [with T = WebCore::SVGElement]'
> generated/SVGElementFactory.cpp:604:   instantiated from here
> ../JavaScriptCore/wtf/PassRefPtr.h:53: error: invalid use of
> incomplete type 'struct WebCore::SVGElement'
> generated/SVGElementFactory.h:44: error: forward declaration of
> 'struct WebCore::SVGElement'
> generated/SVGElementFactory.cpp: At global scope:
> generated/SVGElementFactory.cpp:122: warning: 'WebCore::gFunctionMap'
> defined but not used
> make[1]: *** [.obj/release-shared-emb-x86/SVGElementFactory.o]
> 
> So I am lost now, any help/assistance would be greatly appreciated.
> 
> 
> Regards
> gloridel
> _______________________________________________
> webkit-qt mailing list
> webkit-qt at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt



More information about the webkit-qt mailing list