Re: Compiling OpenJFX + WebKit

2015-05-28 Thread Anton V. Tarasov

Hi Michael,

[Sorry for the delay...]

On 11.05.2015 19:12, Michael Hoffer wrote:

Hi,

I just tried to compile OpenJFX from the 8u-dev branch on OS X and Ubuntu.
Unfortunately, I'm experiencing several problems. Without WebKit everything
works fine. But with WebKit there are several problems:

1. the build script has a webview-deps:1.3 dependency which has not been
published on maven central.

If I revert the version number of the dependency to the 1.2 version (newest
version that is available) I run into the next problem:


As Kevin mentioned you can't build it with webview-deps 1.2 (except may be for OSX where the new 
deps weren't changed).


On Linux webview-deps 1.3 additionally contain ICU 48 libs for static linking:

lib/
  libicudata.a
  libicui18n.a
  libicuio.a
  libicuuc.a

include/unicode/
  a list of related headers

You can take the sources from here and try to build them on your own:

http://site.icu-project.org/download/48



2. WebKit does not compile on Ubuntu because of missing libraries (can be
fixed via sudo apt-get install libqt4-dev)

If I add the missing dependencies I can compile WebKit, but


Does it mean you found the missing ICU static libs in libqt4-dev?...



3. the generated Java code contains errors (also happens on OS X), starting
with

openjfx/rt-8u-dev/modules/web/build/linux/Release/WebCore/generated/java/com/sun/webkit/dom/CounterImpl.java:5:
error: cannot find symbol
import com.sun.webkit.Disposer;
  ^
   symbol:   class Disposer
   location: package com.sun.webkit


The sources in:

rt/modules/web/build/linux/Release/WebCore/generated/java

are copied from:

rt/modules/web/src/main/java-wrappers.

These sources depend on the main sources in: rt/modules/web/src/main/java.

The build process goes in the following order:

1. java sources: rt/modules/web/src/main/java
2. native sources: rt/modules/web/src/main/native
3. generated java sources: 
rt/modules/web/build/linux/Release/WebCore/generated/java

So, on the 3rd step all the main java compiled sources should already be put 
into:

rt/modules/web/build/classes/main

including the com.sun.webkit.Disposer class. So, please check you have it there.

Also, please make sure you have Gradle v1.8 as recommended on the wiki page.

In case you continue facing issues with the generated java sources, please send me the full build 
log file...




Are these known problems? I'd really love to compile my own OpenJFX version
as I did with the first Java 8 preview version where the compilation was
relatively easy to accomplish.

4. In my opinion the wiki should be updated with more recent information on
which os/library/compiler version is needed. On OS X for example, I needed
to use qtmake from qt5 since the qt4 version was missing the correct spec
file for clang. And it was generally unclear whether building on OS X 10.9
or 10.10 is supported.

Any help is appreciated! And I'm also willing to contribute documentation/
fixes if necessary.


(Kevin already responded to this point.)


Thank you for the reporting problems!

With regards,
Anton.



Regards,
Michael Hoffer





Re: Compiling OpenJFX + WebKit

2015-05-28 Thread Anton V. Tarasov

On 11.05.2015 20:06, Kevin Rushforth wrote:

Hi Michael,

Thanks for pointing this out. I'm not sure what we did last time to get the webview-deps into 
maven, but Anton can probably check into it. It will not build successfully with the older version 
of webview-deps so I don't recommend wasting any time trying.


Delivering to Maven Central is still in progress. The activity was suspended for a while (sorry 
about that...) but I'm planning to resume it ASAP.


With regards,
Anton.



In addition, we now rely on upgraded compilers with C++11 support, and also Qt 5.2, to build 
WebView. We can update the Wiki. If you can help (or at least point out all the places that you 
found that are now out of date), that would be great.


Our supported build platforms, which also need to be specified on the Wiki are:

Windows:  Windows 7 or later, VS 2013
Mac: OS X 10.9.5 or later, Xcode 5.1.1
Linux: Ubuntu 14.04 or later (we use Oracle Linux 6.4 with devtoolset-3 gcc 4.9 
compilers)

-- Kevin


Michael Hoffer wrote:

Hi,

I just tried to compile OpenJFX from the 8u-dev branch on OS X and Ubuntu.
Unfortunately, I'm experiencing several problems. Without WebKit everything
works fine. But with WebKit there are several problems:

1. the build script has a webview-deps:1.3 dependency which has not been
published on maven central.

If I revert the version number of the dependency to the 1.2 version (newest
version that is available) I run into the next problem:

2. WebKit does not compile on Ubuntu because of missing libraries (can be
fixed via sudo apt-get install libqt4-dev)

If I add the missing dependencies I can compile WebKit, but

3. the generated Java code contains errors (also happens on OS X), starting
with

openjfx/rt-8u-dev/modules/web/build/linux/Release/WebCore/generated/java/com/sun/webkit/dom/CounterImpl.java:5: 


error: cannot find symbol
import com.sun.webkit.Disposer;
 ^
  symbol:   class Disposer
  location: package com.sun.webkit

Are these known problems? I'd really love to compile my own OpenJFX version
as I did with the first Java 8 preview version where the compilation was
relatively easy to accomplish.

4. In my opinion the wiki should be updated with more recent information on
which os/library/compiler version is needed. On OS X for example, I needed
to use qtmake from qt5 since the qt4 version was missing the correct spec
file for clang. And it was generally unclear whether building on OS X 10.9
or 10.10 is supported.

Any help is appreciated! And I'm also willing to contribute documentation/
fixes if necessary.

Regards,
Michael Hoffer





Re: Compiling OpenJFX + WebKit

2015-05-11 Thread Kevin Rushforth

Hi Michael,

Thanks for pointing this out. I'm not sure what we did last time to get 
the webview-deps into maven, but Anton can probably check into it. It 
will not build successfully with the older version of webview-deps so I 
don't recommend wasting any time trying.


In addition, we now rely on upgraded compilers with C++11 support, and 
also Qt 5.2, to build WebView. We can update the Wiki. If you can help 
(or at least point out all the places that you found that are now out of 
date), that would be great.


Our supported build platforms, which also need to be specified on the 
Wiki are:


Windows:  Windows 7 or later, VS 2013
Mac: OS X 10.9.5 or later, Xcode 5.1.1
Linux: Ubuntu 14.04 or later (we use Oracle Linux 6.4 with devtoolset-3 
gcc 4.9 compilers)


-- Kevin


Michael Hoffer wrote:

Hi,

I just tried to compile OpenJFX from the 8u-dev branch on OS X and Ubuntu.
Unfortunately, I'm experiencing several problems. Without WebKit everything
works fine. But with WebKit there are several problems:

1. the build script has a webview-deps:1.3 dependency which has not been
published on maven central.

If I revert the version number of the dependency to the 1.2 version (newest
version that is available) I run into the next problem:

2. WebKit does not compile on Ubuntu because of missing libraries (can be
fixed via sudo apt-get install libqt4-dev)

If I add the missing dependencies I can compile WebKit, but

3. the generated Java code contains errors (also happens on OS X), starting
with

openjfx/rt-8u-dev/modules/web/build/linux/Release/WebCore/generated/java/com/sun/webkit/dom/CounterImpl.java:5:
error: cannot find symbol
import com.sun.webkit.Disposer;
 ^
  symbol:   class Disposer
  location: package com.sun.webkit

Are these known problems? I'd really love to compile my own OpenJFX version
as I did with the first Java 8 preview version where the compilation was
relatively easy to accomplish.

4. In my opinion the wiki should be updated with more recent information on
which os/library/compiler version is needed. On OS X for example, I needed
to use qtmake from qt5 since the qt4 version was missing the correct spec
file for clang. And it was generally unclear whether building on OS X 10.9
or 10.10 is supported.

Any help is appreciated! And I'm also willing to contribute documentation/
fixes if necessary.

Regards,
Michael Hoffer