Build failure on ubuntu 11.04

54 views
Skip to first unread message

psanford

unread,
Jun 24, 2011, 11:27:47 AM6/24/11
to webkitdriver
Hi,

I'm trying to build on ubuntu 11.04 at r92. This is the error I'm
getting:

[797 / 1589] WebCore/platform/text/TextBreakIteratorICU.cpp
WebCore/platform/text/TextBreakIteratorICU.cpp: In function
‘WebCore::TextBreakIterator* WebCore::setUpIterator(bool&,
WebCore::TextBreakIterator*&, UBreakIteratorType, const UChar*, int)’:
WebCore/platform/text/TextBreakIteratorICU.cpp:41:114: error: invalid
static_cast from type ‘UBreakIterator*’ to type
‘WebCore::TextBreakIterator*’
WebCore/platform/text/TextBreakIteratorICU.cpp:49:58: error: cannot
convert ‘WebCore::TextBreakIterator*’ to ‘UBreakIterator*’ for
argument ‘1’ to ‘void ubrk_setText_44(UBreakIterator*, const UChar*,
int32_t, UErrorCode*)’
WebCore/platform/text/TextBreakIteratorICU.cpp: In function ‘int
WebCore::textBreakFirst(WebCore::TextBreakIterator*)’:
WebCore/platform/text/TextBreakIteratorICU.cpp:90:25: error: cannot
convert ‘WebCore::TextBreakIterator*’ to ‘UBreakIterator*’ for
argument ‘1’ to ‘int32_t ubrk_first_44(UBreakIterator*)’
WebCore/platform/text/TextBreakIteratorICU.cpp: In function ‘int
WebCore::textBreakLast(WebCore::TextBreakIterator*)’:
WebCore/platform/text/TextBreakIteratorICU.cpp:95:24: error: cannot
convert ‘WebCore::TextBreakIterator*’ to ‘UBreakIterator*’ for
argument ‘1’ to ‘int32_t ubrk_last_44(UBreakIterator*)’
WebCore/platform/text/TextBreakIteratorICU.cpp: In function ‘int
WebCore::textBreakNext(WebCore::TextBreakIterator*)’:
WebCore/platform/text/TextBreakIteratorICU.cpp:100:24: error: cannot
convert ‘WebCore::TextBreakIterator*’ to ‘UBreakIterator*’ for
argument ‘1’ to ‘int32_t ubrk_next_44(UBreakIterator*)’
WebCore/platform/text/TextBreakIteratorICU.cpp: In function ‘int
WebCore::textBreakPrevious(WebCore::TextBreakIterator*)’:
WebCore/platform/text/TextBreakIteratorICU.cpp:105:28: error: cannot
convert ‘WebCore::TextBreakIterator*’ to ‘UBreakIterator*’ for
argument ‘1’ to ‘int32_t ubrk_previous_44(UBreakIterator*)’
WebCore/platform/text/TextBreakIteratorICU.cpp: In function ‘int
WebCore::textBreakPreceding(WebCore::TextBreakIterator*, int)’:
WebCore/platform/text/TextBreakIteratorICU.cpp:110:34: error: cannot
convert ‘WebCore::TextBreakIterator*’ to ‘UBreakIterator*’ for
argument ‘1’ to ‘int32_t ubrk_preceding_44(UBreakIterator*, int32_t)’
WebCore/platform/text/TextBreakIteratorICU.cpp: In function ‘int
WebCore::textBreakFollowing(WebCore::TextBreakIterator*, int)’:
WebCore/platform/text/TextBreakIteratorICU.cpp:115:34: error: cannot
convert ‘WebCore::TextBreakIterator*’ to ‘UBreakIterator*’ for
argument ‘1’ to ‘int32_t ubrk_following_44(UBreakIterator*, int32_t)’
WebCore/platform/text/TextBreakIteratorICU.cpp: In function ‘int
WebCore::textBreakCurrent(WebCore::TextBreakIterator*)’:
WebCore/platform/text/TextBreakIteratorICU.cpp:120:27: error: cannot
convert ‘WebCore::TextBreakIterator*’ to ‘const UBreakIterator*’ for
argument ‘1’ to ‘int32_t ubrk_current_44(const UBreakIterator*)’
WebCore/platform/text/TextBreakIteratorICU.cpp: In function ‘bool
WebCore::isTextBreak(WebCore::TextBreakIterator*, int)’:
WebCore/platform/text/TextBreakIteratorICU.cpp:125:35: error: cannot
convert ‘WebCore::TextBreakIterator*’ to ‘UBreakIterator*’ for
argument ‘1’ to ‘UBool ubrk_isBoundary_44(UBreakIterator*, int32_t)’
WebCore/platform/text/TextBreakIteratorICU.cpp: In function
‘WebCore::TextBreakIterator* WebCore::setUpIteratorWithRules(bool&,
WebCore::TextBreakIterator*&, const char*, const UChar*, int)’:
WebCore/platform/text/TextBreakIteratorICU.cpp:139:135: error: invalid
static_cast from type ‘UBreakIterator*’ to type
‘WebCore::TextBreakIterator*’
WebCore/platform/text/TextBreakIteratorICU.cpp:147:58: error: cannot
convert ‘WebCore::TextBreakIterator*’ to ‘UBreakIterator*’ for
argument ‘1’ to ‘void ubrk_setText_44(UBreakIterator*, const UChar*,
int32_t, UErrorCode*)’
rake aborted!
Command failed with status (1): [g++ -c -o WebKitBuild/Release/
TextBreakIte...]


Thanks for any help,

-psanford

Igor Viarheichyk

unread,
Jun 27, 2011, 12:11:34 PM6/27/11
to webkit...@googlegroups.com
Hi,

This is an issue with newer version of libicu (4.4), which is fixed in recent versions of WebKit, but still presents in a snaptshot used by webkitdriver. Please try older version (4.0 or 4.2) or apply this patch:

--- WebCore/platform/text/TextBreakIterator.h.orig  2009-09-22 18:29:21.000000000 +0300 
+++ WebCore/platform/text/TextBreakIterator.h   2010-02-10 08:49:59.000000000 +0200 
@@ -26,7 +26,7 @@ 

 namespace WebCore {

-    class TextBreakIterator; 
+    typedef struct UBreakIterator TextBreakIterator; 

     // Note: The returned iterator is good only until you get another iterator.




--
You received this message because you are subscribed to the Google Groups "webkitdriver" group.
To post to this group, send email to webkit...@googlegroups.com.
To unsubscribe from this group, send email to webkitdriver...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/webkitdriver?hl=en.


Peter Sanford

unread,
Jun 27, 2011, 4:43:03 PM6/27/11
to webkit...@googlegroups.com
Thanks. With that I was able to build hlwk part of the project, but
now I get a java build error:

Building: webdriver_hlwk as build/webdriver_hlwk.jar
javac -cp /home/psanford/tmp/thirdparty/webkitdriver/WebDriver/build/java/client/src/org/openqa/selenium/base.jar:/home/psanford/tmp/thirdparty/webkitdriver/WebDriver/build/java/client/src/org/openqa/selenium/internal/codecs.jar:/home/psanford/tmp/thirdparty/webkitdriver/WebDriver/build/java/client/src/org/openqa/selenium/webdriver-api.jar:/home/psanford/tmp/thirdparty/webkitdriver/third_party/java/guava/guava-r05.jar:build/webdriver_hlwk.jar
-g -source 5 -target 5 -d build/webdriver_hlwk.jar_classes @src.txt
../driver/src/java/org/openqa/selenium/webkit/WebKitWebElement.java:51:
cannot find symbol
symbol : class RenderedWebElement
location: package org.openqa.selenium
import org.openqa.selenium.RenderedWebElement;
^
../driver/src/java/org/openqa/selenium/webkit/WebKitWebElement.java:74:
cannot find symbol
symbol: class RenderedWebElement
public class WebKitWebElement implements WebElement, RenderedWebElement,
^
../driver/src/java/org/openqa/selenium/webkit/WebKitWebElement.java:432:
cannot find symbol
symbol : class RenderedWebElement
location: class org.openqa.selenium.webkit.WebKitWebElement
public void dragAndDropOn(RenderedWebElement element) {
^
../driver/src/java/org/openqa/selenium/webkit/WebKitWebElement.java:74:
org.openqa.selenium.webkit.WebKitWebElement is not abstract and does
not override abstract method getCssValue(java.lang.String) in
org.openqa.selenium.WebElement
public class WebKitWebElement implements WebElement, RenderedWebElement,
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
4 errors
rake aborted!

Igor Viarheichyk

unread,
Jun 29, 2011, 12:56:47 PM6/29/11
to webkit...@googlegroups.com
Looks like recent WebDriver source code structure has changed, please check /home/psanford/tmp/thirdparty/webkitdriver/WebDriver/build/java/client/src/org/openqa/selenium/webdriver-api.jar is present, otherwise need to change path to jar files.

Peter Sanford

unread,
Jun 29, 2011, 3:34:18 PM6/29/11
to webkit...@googlegroups.com
It looks like the RenderedWebElement class was removed in r12331:

------------------------------------------------------------------------
r12331 | simon.m.stewart | 2011-06-02 08:14:28 -0700 (Thu, 02 Jun 2011) | 1 line

SimonStewart: Deleting rendered web element. May she rest in pieces
------------------------------------------------------------------------

I removed that interface from WebKitWebElement, replaced the one
method sig with a WebElement, added a stub method for getCssValue and
then was able to compile it.

-psanford

On Wed, Jun 29, 2011 at 9:56 AM, Igor Viarheichyk

Alex Camargo

unread,
Jul 29, 2011, 4:37:01 PM7/29/11
to webkitdriver
Thanks for the tip.
Did you pass the test phase?

On 29 jun, 16:34, Peter Sanford <psanf...@nearbuysystems.com> wrote:
> It looks like the RenderedWebElement class was removed in r12331:
>
> ------------------------------------------------------------------------
> r12331 | simon.m.stewart | 2011-06-02 08:14:28 -0700 (Thu, 02 Jun 2011) | 1 line
>
> SimonStewart: Deleting rendered web element. May she rest in pieces
> ------------------------------------------------------------------------
>
> I removed that interface from WebKitWebElement, replaced the one
> method sig with a WebElement, added a stub method for getCssValue and
> then was able to compile it.
>
> -psanford
>
> On Wed, Jun 29, 2011 at 9:56 AM, Igor Viarheichyk
>
>
>
>
>
>
>
> <viarheic...@google.com> wrote:
> > Looks like recent WebDriver source code structure has changed, please
> > check /home/psanford/tmp/thirdparty/webkitdriver/WebDriver/build/java/client/src/ org/openqa/selenium/webdriver-api.jar
> > is present, otherwise need to change path to jar files.
>
> > On Mon, Jun 27, 2011 at 11:43 PM, Peter Sanford
> > <psanf...@nearbuysystems.com> wrote:
>
> >> Thanks. With that I was able to build hlwk part of the project, but
> >> now I get a java build error:
>
> >> Building: webdriver_hlwk as build/webdriver_hlwk.jar
> >> javac -cp
> >> /home/psanford/tmp/thirdparty/webkitdriver/WebDriver/build/java/client/src/ org/openqa/selenium/base.jar:/home/psanford/tmp/thirdparty/webkitdriver/Web Driver/build/java/client/src/org/openqa/selenium/internal/codecs.jar:/home/ psanford/tmp/thirdparty/webkitdriver/WebDriver/build/java/client/src/org/op enqa/selenium/webdriver-api.jar:/home/psanford/tmp/thirdparty/webkitdriver/ third_party/java/guava/guava-r05.jar:build/webdriver_hlwk.jar
> >> > On Fri, Jun 24, 2011 at 6:27 PM, psanford <psanf...@nearbuysystems.com>
> ...
>
> mais »

Peter Sanford

unread,
Aug 1, 2011, 11:44:20 PM8/1/11
to webkit...@googlegroups.com
I didn't. I was mostly interested in playing around with libhlwk.so.

Mark

unread,
Sep 15, 2011, 10:40:33 AM9/15/11
to webkitdriver
Hello,

Is there another way to build webkitdriver without the
RenderedWebElement? Can't I just replace the selenium with an older
one?
I would like to use the Selenium part and removing all does not solve
my problems...

Thanks, Mark
> ...
>
> read more »

Igor Viarheichyk

unread,
Sep 15, 2011, 12:15:23 PM9/15/11
to webkit...@googlegroups.com
Sure, downgrading selenium to revision e.g. 10336 should work.
Reply all
Reply to author
Forward
0 new messages