Hi.
@Freso, you can delete Gradle7 dependency and use Gradle wrapper instead. Gradle wrapper is included in the source code. You can read this here.
build() {
cd jfx${pkgver//.*}u-${pkgver//.u/-}
# cd jfx${pkgver%%.*}u-${pkgver//.u/-}
# build against ffmpeg4.4
export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
chmod u+x ./gradlew
./gradlew zips
}
@Bitals, I've had the same problem in Manjaro, it is related with cstdio library. I've added the library into 2 header files and it has worked.
This is the patch file (java-openjfx-cstdio.patch):
--- a/modules/javafx.web/src/main/native/Source/bmalloc/bmalloc/IsoPage.h
+++ b/modules/javafx.web/src/main/native/Source/bmalloc/bmalloc/IsoPage.h
@@ -31,6 +31,7 @@
#include "Mutex.h"
#include <climits>
#include <mutex>
+#include <cstdio>
#if !BUSE(LIBPAS)
--- a/modules/javafx.web/src/main/native/Source/bmalloc/bmalloc/Heap.h
--- a/modules/javafx.web/src/main/native/Source/bmalloc/bmalloc/Heap.h
@@ -44,6 +44,7 @@
#include <condition_variable>
#include <mutex>
#include <vector>
+#include <cstdio>
#if !BUSE(LIBPAS)
And this is the prepare section:
prepare() {
cd jfx${pkgver//.*}u-${pkgver//.u/-}
# cd jfx${pkgver%%.*}u-${pkgver//.u/-}
ln -sf ../gradle.properties .
patch -Np1 -i ../java-openjfx-flags.patch
patch -Np1 -i ../java-openjfx-no-xlocale.patch
patch -Np1 -i ../java-openjfx-cstdio.patch
sed 's|, "-Werror"||g' -i buildSrc/linux.gradle
}
Don't forget adding the patch b2sum to the b2sums section.
Best regards.
Pinned Comments
patlefort commented on 2025-05-03 18:24 (UTC) (edited on 2025-05-03 18:24 (UTC) by patlefort)
I've bumped the version but also modified the install locations:
It will require java 23, which requires java 22 to build. I have also removed webkit support.