[External] : Re: Failing to build JavaFX

Kevin Rushforth kevin.rushforth at oracle.com
Fri Aug 30 21:51:08 UTC 2024


Good to know it works. I had forgotten that the "-PSTUB_RUNTIME_OPENJFX" 
option would run into the gradle verification issue, but I see you were 
able to work around it.

So, it seems you are running into a problem with the media build 
Makefiles or scripts. At some point it would be good to know what that 
is, but for now, you can build without it.

-- Kevin


On 8/30/2024 2:41 PM, Knee Snap wrote:
> By following Kevin's suggestion, I was able to successfully build 
> JavaFX and run the unit tests.
>
> Thanks Kevin!
>
> On Fri, Aug 30, 2024 at 12:51 PM Knee Snap <kneester77 at gmail.com> wrote:
>
>     I tried this suggestion (the one Kevin has suggested) but I got
>     warnings about Gradle verification failures, and it listed
>     specifically the JavaFX version I had specified. Tried with a few
>     different  modern versions to no avail. Perhaps I'll try again and
>     see if I can ignore those warnings.
>
>     On Fri, Aug 30, 2024, 8:08 AM Kevin Rushforth
>     <kevin.rushforth at oracle.com> wrote:
>
>         It looks like cygwin might not be in your path when that media
>         shell script is being executed. Maybe it's getting reset by
>         your .bashrc or .profile script?
>
>         You might try building without media and webkit, although
>         you'll need to download a fairly recent version of those
>         libraries if you don't. Try replacing " -PCOMPILE_WEBKIT=true
>         -PCOMPILE_MEDIA=true" with "-PSTUB_RUNTIME_OPENJFX=24-ea+5".
>
>         -- Kevin
>
>
>         On 8/30/2024 7:49 AM, Nir Lisker wrote:
>>         I have WSL 2 and I didn't get this error. For Windows, you're
>>         not supposed to use WSL at all for the building process, so
>>         no reason for it to be involved. I suggest that you just run
>>         "./gradlew :media:buildWINGlib" (which is where the error is
>>         occurring) with --debug or --info.
>>
>>         Did you set up Visual Studio? It's required
>>         for WINDOWS_NATIVE_COMPILE_ENVIRONMENT.
>>
>>         - Nir
>>
>>         On Fri, Aug 30, 2024 at 8:23 AM Knee Snap
>>         <kneester77 at gmail.com> wrote:
>>
>>             Upon trying to run "./gradlew -PFULL_TEST=true
>>             -PUSE_ROBOT=true -PCOMPILE_WEBKIT=true
>>             -PCOMPILE_MEDIA=true all test", I am eventually
>>             confronted with the following output:
>>
>>             "
>>             > Task :media:buildWinGlib
>>             make: Entering directory
>>             '/cygdrive/g/Playground/jfx/modules/javafx.media/src/main/native/gstreamer/projects/win/glib-lite'
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             make TARGET=/libffi.lib -f Makefile.ffi
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             /bin/sh: line 1: cygpath: command not found
>>             make: make: Not a directory
>>             make: *** [Makefile:65: /libffi.lib] Error 127
>>             make: Leaving directory
>>             '/cygdrive/g/Playground/jfx/modules/javafx.media/src/main/native/gstreamer/projects/win/glib-lite'
>>             "
>>
>>             However, if I immediately run "cygpath", it does run
>>             successfully. (See screenshot below).
>>             I'm not really sure what's going on, but I suspect that
>>             either somehow my WSL installation is getting used by
>>             gradle instead (not sure if that's even possible, but
>>             maybe? I don't know enough about how cygwin works), or
>>             something even more difficult to pinpoint is going on.
>>
>>             Can someone help me resolve this issue? I've gotten a bit
>>             stuck. Thanks!
>>
>>             image.png
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/openjfx-dev/attachments/20240830/adcaa7c6/attachment-0001.htm>


More information about the openjfx-dev mailing list