Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add native Webkit libraries #2

Open
sgerrand opened this issue Feb 9, 2018 · 6 comments
Open

Add native Webkit libraries #2

sgerrand opened this issue Feb 9, 2018 · 6 comments

Comments

@sgerrand
Copy link
Owner

sgerrand commented Feb 9, 2018

The native Webkit libraries will be needed. Enable their compilation by setting COMPILE_WEBKIT = true in gradle.properties.

@sgerrand
Copy link
Owner Author

sgerrand commented Feb 9, 2018

The following packages are required by the web:compileNativeLinux build:

  • gperf
  • libxslt
  • ruby

@sgerrand
Copy link
Owner Author

sgerrand commented Feb 9, 2018

Throwing an error during the build:

In file included from /home/builder/package/src/rt-8u151-b12/modules/web/src/main/native/Source/ThirdParty/icu/source/common/putil.cpp:48:0:
/home/builder/package/src/rt-8u151-b12/modules/web/src/main/native/Source/ThirdParty/icu/source/common/putil.cpp: In function 'int32_t uprv_timezone_51()':
/home/builder/package/src/rt-8u151-b12/modules/web/src/main/native/Source/ThirdParty/icu/source/common/putilimp.h:121:27: error: '__timezone' was not declared in this scope
 #       define U_TIMEZONE __timezone                                                               
                           ^
/home/builder/package/src/rt-8u151-b12/modules/web/src/main/native/Source/ThirdParty/icu/source/common/putil.cpp:638:12: note: in expansion of macro 'U_TIMEZONE'
     return U_TIMEZONE;
            ^~~~~~~~~~       

@aclowkey
Copy link

Any workaround for this? I created an image with OpenJDK 8 and the OpenJFX, and getting the error:

Exception in thread "JavaFX Application Thread" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/libjfxwebkit.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1827)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:201)
at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:94)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:39)
at com.sun.webkit.WebPage.lambda$static$0(WebPage.java:131)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.webkit.WebPage.(WebPage.java:130)
at javafx.scene.web.WebEngine.(WebEngine.java:881)
at javafx.scene.web.WebEngine.(WebEngine.java:868)
at javafx.scene.web.WebView.(WebView.java:273)
at io.webfolder.ui4j.webkit.WebKitBrowser$WebViewCreator.run(WebKitBrowser.java:250)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "JavaFX Application Thread" io.webfolder.ui4j.api.util.Ui4jException: java.lang.NullPointerException
at io.webfolder.ui4j.webkit.aspect.WebKitAspect$CallableExecutor.run(WebKitAspect.java:41)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at io.webfolder.ui4j.webkit.dom.WebKitPage.addDocumentListener_aroundBody4(WebKitPage.java:159)
at io.webfolder.ui4j.webkit.dom.WebKitPage$AjcClosure5.run(WebKitPage.java:1)
at io.webfolder.ui4j.internal.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at io.webfolder.ui4j.webkit.aspect.WebKitAspect$CallableExecutor.run(WebKitAspect.java:39)
... 6 more

@alvarofernandezavalos
Copy link

alvarofernandezavalos commented Apr 1, 2020

Any workaround for this? I created an image with OpenJDK 8 and the OpenJFX, and getting the error:

Exception in thread "JavaFX Application Thread" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/libjfxwebkit.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1827)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:201)
at com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:94)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:39)
at com.sun.webkit.WebPage.lambda$static$0(WebPage.java:131)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.webkit.WebPage.(WebPage.java:130)
at javafx.scene.web.WebEngine.(WebEngine.java:881)
at javafx.scene.web.WebEngine.(WebEngine.java:868)
at javafx.scene.web.WebView.(WebView.java:273)
at io.webfolder.ui4j.webkit.WebKitBrowser$WebViewCreator.run(WebKitBrowser.java:250)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "JavaFX Application Thread" io.webfolder.ui4j.api.util.Ui4jException: java.lang.NullPointerException
at io.webfolder.ui4j.webkit.aspect.WebKitAspect$CallableExecutor.run(WebKitAspect.java:41)
at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(RunnableProcessor.java:92)
at com.sun.glass.ui.monocle.RunnableProcessor.run(RunnableProcessor.java:51)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at io.webfolder.ui4j.webkit.dom.WebKitPage.addDocumentListener_aroundBody4(WebKitPage.java:159)
at io.webfolder.ui4j.webkit.dom.WebKitPage$AjcClosure5.run(WebKitPage.java:1)
at io.webfolder.ui4j.internal.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)
at io.webfolder.ui4j.webkit.aspect.WebKitAspect$CallableExecutor.run(WebKitAspect.java:39)
... 6 more

Did you solve the issue?

@sgerrand
Copy link
Owner Author

sgerrand commented Apr 8, 2020

Did you solve the issue?

I'm afraid not. 😞

@alvarofernandezavalos
Copy link

I didn't.
I can't compile because de APKBUILDER is borken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants