Discussion:
OpenJFX Build Setup
Bryce Glover
2018-11-09 20:37:41 UTC
Permalink
To Whom It May Concern,

While going through the process of setting up an OpenJFX package to be
distributed via Homebrew in
https://github.com/Homebrew/homebrew-core/pull/32864, I noticed that the
results of running either plain 'gradle' or task-qualified 'gradle all'
don't include the following build products:

- 'libfxplugins.dylib'
- 'libglib-lite.dylib'
- 'libgstreamer-lite.dylib'
- 'libjfxmedia.dylib'
- 'libjfxmedia_avf.dylib'
- 'libjfxwebkit.dylib'

under '"$BUILD_PATH/build/artifacts/javafx-sdk-$VERSION/lib/"' (where '
$BUILD_PATH' is a temporary directory and '$VERSION' is the version being
built, currently v11.0.1+1, the latest release as of this writing) as
compared to the SDK archives you distribute on your download page
<https://gluonhq.com/products/javafx/>. It's not immediately obvious from your
build instructions
<https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX> what
additional 'gradle' options and/or properties I might need to set in order
to fix this. Given the presence of those dynamic libraries mentioning
GStreamer, it looks like I might be missing a dependency, too. How might I
build these additional artifacts like you do for the pre-compiled releases?


Thanks in advance,
Bryce Glover
***@gmail.com
Philip Race
2018-11-10 16:28:34 UTC
Permalink
try
gradle -PCOMPILE_MEDIA=true -PCOMPILE_WEBKIT=true

-phil.
Post by Bryce Glover
To Whom It May Concern,
While going through the process of setting up an OpenJFX package to be
distributed via Homebrew in
https://github.com/Homebrew/homebrew-core/pull/32864, I noticed that the
results of running either plain 'gradle' or task-qualified 'gradle all'
- 'libfxplugins.dylib'
- 'libglib-lite.dylib'
- 'libgstreamer-lite.dylib'
- 'libjfxmedia.dylib'
- 'libjfxmedia_avf.dylib'
- 'libjfxwebkit.dylib'
under '"$BUILD_PATH/build/artifacts/javafx-sdk-$VERSION/lib/"' (where '
$BUILD_PATH' is a temporary directory and '$VERSION' is the version being
built, currently v11.0.1+1, the latest release as of this writing) as
compared to the SDK archives you distribute on your download page
<https://gluonhq.com/products/javafx/>. It's not immediately obvious from your
build instructions
<https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX> what
additional 'gradle' options and/or properties I might need to set in order
to fix this. Given the presence of those dynamic libraries mentioning
GStreamer, it looks like I might be missing a dependency, too. How might I
build these additional artifacts like you do for the pre-compiled releases?
Thanks in advance,
Bryce Glover
Bryce Glover
2018-11-10 18:15:12 UTC
Permalink
Whoops; forgot to CC the list:

---------- Forwarded message ---------
From: Bryce Glover <***@gmail.com>
Date: Sat, Nov 10, 2018 at 1:11 PM
Subject: Re: OpenJFX Build Setup
Post by Philip Race
try
gradle -PCOMPILE_MEDIA=true -PCOMPILE_WEBKIT=true
-phil.
(*Snipped…*)
Dear Phil,

Ah; if those options really only control building those sub-projects'
associated '.dylib's, then you might want to change those properties' names
or document them more explicitly within your build instructions. I didn't
think I'd need to set those because everything aside from those dynamic
libraries was already getting built for those components, hence why I
overlooked doing that.

Thanks,
Bryce

Loading...