Re: Windows (32bit) build problems
After restarting from scratch (on a different machine) the build problems described below simply went away :-). So there was probably something in my environment or I changed something inadvertently. Best regards, Robert Am 08.07.19 um 08:13 schrieb Robert Lichtenberger: > Am 05.07.19 um 11:32 schrieb Dan Howard: >> You will need Windows 7 or later (Windows 10 is recommended) 64-bit OS > I have Windows 7 64-bit OS, but my target platform is Windows 32-bit ;-). > > > From a first cursory look it seems that in win.gradle: > > def winSdkBinDir = "$WINDOWS_SDK_DIR/Bin" > if (WINDOWS_VS_VER != "100") { > winSdkBinDir += "/$CPU_BITS" > } > > appends x86 to the winSdkBinDir and thus cannot find rc.exe which is > located at C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin and not in > C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\x86.
Re: Windows (32bit) build problems
Am 05.07.19 um 11:32 schrieb Dan Howard: > You will need Windows 7 or later (Windows 10 is recommended) 64-bit OS I have Windows 7 64-bit OS, but my target platform is Windows 32-bit ;-). From a first cursory look it seems that in win.gradle: def winSdkBinDir = "$WINDOWS_SDK_DIR/Bin" if (WINDOWS_VS_VER != "100") { winSdkBinDir += "/$CPU_BITS" } appends x86 to the winSdkBinDir and thus cannot find rc.exe which is located at C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin and not in C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\x86. If I change that to: if (WINDOWS_VS_VER != "100" && IS_64) { winSdkBinDir += "/$CPU_BITS" } gradlew tasks works. Building it still has problems though. I'll try and look into further details, maybe I can come up with a patch that'll make JavaFX compile again on win32. Robert > > > On 7/4/2019 11:01 AM, Robert Lichtenberger wrote: >> Hello everyone, >> >> I try to build JavaFX-12 mods for Windows-32. >> >> For that I cloned http://hg.openjdk.java.net/openjfx/12-dev/rt/ >> (correct?) >> and read the build instructions at >> https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-Windows >> >> . >> >> First question: >> * The build instructions tell me that gradle 5.3 is used but the >> gradle-wrapper actually downloads 4.8. My guess is that the build >> instructions refer to the current head version. >> * A simple ./gradlew tasks gives the following error: >> >>> * What went wrong: >>> A problem occurred evaluating script. FAIL: WINSDK_DIR not defined >> There's no such environment variable in the build instructions. By >> looking >> around in win.gradle I guessed that this should point to the "Microsoft >> DirectShow header files", but it is not really well documented. >> I could only make the build continue by patching win.gradle, setting an >> environment variable did not help. >> >> If I add WINDOWS_SDK_DIR="C:\\Program Files\\Microsoft >> SDKs\\Windows\\v7.1" >> in win.gradle right above the checking code, I can execute gradlew >> tasks. >> >> However If I just start gradlew to really build JavaFX I get: >> >> FAILURE: Build failed with an exception. >>> * What went wrong: >>> Execution failed for task ':graphics:compileDecoraNativeShadersWin'. java.util.concurrent.ExecutionException: >>> org.gradle.process.internal.ExecException: A problem occurred starting >>> process 'command '/VC/BIN/cl.exe'' >>> >> Any help/hints welcome :-) >>
Re: Windows (32bit) build problems
I recommend using https://github.com/javafxports/openjdk-jfx/blob/develop/tools/scripts/build.ps1 when trying to build OpenJFX locally on Windows. I personally use it with the "-nocygwin" argument so that it does not try and auto-install cygwin. On Fri, Jul 5, 2019 at 5:31 AM Robert Lichtenberger < r.lichtenber...@gmail.com> wrote: > I've started from scratch and one obvious problem in win.gradle is this > line: > > > > defineProperty("WINDOWS_VS_VSINSTALLDIR", properties, "c:/Program > > Files (x86)/Microsoft Visual Studio/2017/Professional"); > > as it hardcodes the Professional version of VS. > > I've also found [1] which indicates that this kind of problem isn't > uncommon or new :-). > > It also seems to me that the environment variable WINSDK_DIR has to be set > (before launching any gradle task) on windows which should be added to the > documentation. > > So after setting the environment varialbe and patching win.gradle to point > to the Community Edition I've installed I now get a new error: > > > * What went wrong: > > A problem occurred evaluating script. > > > FAIL: cannot find RC: C:/Program Files/Microsoft > > SDKs/Windows/v7.1/Bin/10.0.17134.0/x86/rc.exe > > > I'll try and find out why that happens... > > [1] > http://mail.openjdk.java.net/pipermail/openjfx-dev/2017-October/020861.html > > Am Do., 4. Juli 2019 um 17:29 Uhr schrieb Nir Lisker : > > > Hi Robert, > > > > My guess is that the build > >> instructions refer to the current head version. > > > > > > Correct. > > > > Gradle version was changed from 4.8 to 5.3 during the development of > > OpenJFX 13 [1], so for 12 you will need 4.8. > > > > I don't have time right now to look at the WinSDK issue, but you can look > > at the build instructions page at the time of OpenJFX 12 release [2]. > > > > - Nir > > > > [1] https://bugs.openjdk.java.net/browse/JDK-8218172 > > > > [2] > > > https://wiki.openjdk.java.net/pages/viewpreviousversions.action?pageId=8257548 > > > > On Thu, Jul 4, 2019 at 6:02 PM Robert Lichtenberger < > > r.lichtenber...@gmail.com> wrote: > > > >> Hello everyone, > >> > >> I try to build JavaFX-12 mods for Windows-32. > >> > >> For that I cloned http://hg.openjdk.java.net/openjfx/12-dev/rt/ > >> (correct?) > >> and read the build instructions at > >> > >> > https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-Windows > >> . > >> > >> First question: > >> * The build instructions tell me that gradle 5.3 is used but the > >> gradle-wrapper actually downloads 4.8. My guess is that the build > >> instructions refer to the current head version. > >> * A simple ./gradlew tasks gives the following error: > >> > >> > * What went wrong: > >> > A problem occurred evaluating script. > >> > > FAIL: WINSDK_DIR not defined > >> > > >> There's no such environment variable in the build instructions. By > looking > >> around in win.gradle I guessed that this should point to the "Microsoft > >> DirectShow header files", but it is not really well documented. > >> I could only make the build continue by patching win.gradle, setting an > >> environment variable did not help. > >> > >> If I add WINDOWS_SDK_DIR="C:\\Program Files\\Microsoft > >> SDKs\\Windows\\v7.1" > >> in win.gradle right above the checking code, I can execute gradlew > tasks. > >> > >> However If I just start gradlew to really build JavaFX I get: > >> > >> FAILURE: Build failed with an exception. > >> > > >> > * What went wrong: > >> > Execution failed for task ':graphics:compileDecoraNativeShadersWin'. > >> > > java.util.concurrent.ExecutionException: > >> > org.gradle.process.internal.ExecException: A problem occurred starting > >> > process 'command '/VC/BIN/cl.exe'' > >> > > >> > >> Any help/hints welcome :-) > >> > > > -- Michael Ennen
Re: Windows (32bit) build problems
You will need Windows 7 or later (Windows 10 is recommended) 64-bit OS On 7/4/2019 11:01 AM, Robert Lichtenberger wrote: Hello everyone, I try to build JavaFX-12 mods for Windows-32. For that I cloned http://hg.openjdk.java.net/openjfx/12-dev/rt/ (correct?) and read the build instructions at https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-Windows . First question: * The build instructions tell me that gradle 5.3 is used but the gradle-wrapper actually downloads 4.8. My guess is that the build instructions refer to the current head version. * A simple ./gradlew tasks gives the following error: * What went wrong: A problem occurred evaluating script. FAIL: WINSDK_DIR not defined There's no such environment variable in the build instructions. By looking around in win.gradle I guessed that this should point to the "Microsoft DirectShow header files", but it is not really well documented. I could only make the build continue by patching win.gradle, setting an environment variable did not help. If I add WINDOWS_SDK_DIR="C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1" in win.gradle right above the checking code, I can execute gradlew tasks. However If I just start gradlew to really build JavaFX I get: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':graphics:compileDecoraNativeShadersWin'. java.util.concurrent.ExecutionException: org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/VC/BIN/cl.exe'' Any help/hints welcome :-)
Re: Windows (32bit) build problems
I've started from scratch and one obvious problem in win.gradle is this line: > > defineProperty("WINDOWS_VS_VSINSTALLDIR", properties, "c:/Program > Files (x86)/Microsoft Visual Studio/2017/Professional"); as it hardcodes the Professional version of VS. I've also found [1] which indicates that this kind of problem isn't uncommon or new :-). It also seems to me that the environment variable WINSDK_DIR has to be set (before launching any gradle task) on windows which should be added to the documentation. So after setting the environment varialbe and patching win.gradle to point to the Community Edition I've installed I now get a new error: > * What went wrong: > A problem occurred evaluating script. > > FAIL: cannot find RC: C:/Program Files/Microsoft > SDKs/Windows/v7.1/Bin/10.0.17134.0/x86/rc.exe I'll try and find out why that happens... [1] http://mail.openjdk.java.net/pipermail/openjfx-dev/2017-October/020861.html Am Do., 4. Juli 2019 um 17:29 Uhr schrieb Nir Lisker : > Hi Robert, > > My guess is that the build >> instructions refer to the current head version. > > > Correct. > > Gradle version was changed from 4.8 to 5.3 during the development of > OpenJFX 13 [1], so for 12 you will need 4.8. > > I don't have time right now to look at the WinSDK issue, but you can look > at the build instructions page at the time of OpenJFX 12 release [2]. > > - Nir > > [1] https://bugs.openjdk.java.net/browse/JDK-8218172 > > [2] > https://wiki.openjdk.java.net/pages/viewpreviousversions.action?pageId=8257548 > > On Thu, Jul 4, 2019 at 6:02 PM Robert Lichtenberger < > r.lichtenber...@gmail.com> wrote: > >> Hello everyone, >> >> I try to build JavaFX-12 mods for Windows-32. >> >> For that I cloned http://hg.openjdk.java.net/openjfx/12-dev/rt/ >> (correct?) >> and read the build instructions at >> >> https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-Windows >> . >> >> First question: >> * The build instructions tell me that gradle 5.3 is used but the >> gradle-wrapper actually downloads 4.8. My guess is that the build >> instructions refer to the current head version. >> * A simple ./gradlew tasks gives the following error: >> >> > * What went wrong: >> > A problem occurred evaluating script. >> > > FAIL: WINSDK_DIR not defined >> > >> There's no such environment variable in the build instructions. By looking >> around in win.gradle I guessed that this should point to the "Microsoft >> DirectShow header files", but it is not really well documented. >> I could only make the build continue by patching win.gradle, setting an >> environment variable did not help. >> >> If I add WINDOWS_SDK_DIR="C:\\Program Files\\Microsoft >> SDKs\\Windows\\v7.1" >> in win.gradle right above the checking code, I can execute gradlew tasks. >> >> However If I just start gradlew to really build JavaFX I get: >> >> FAILURE: Build failed with an exception. >> > >> > * What went wrong: >> > Execution failed for task ':graphics:compileDecoraNativeShadersWin'. >> > > java.util.concurrent.ExecutionException: >> > org.gradle.process.internal.ExecException: A problem occurred starting >> > process 'command '/VC/BIN/cl.exe'' >> > >> >> Any help/hints welcome :-) >> >
Re: Windows (32bit) build problems
Hi Robert, My guess is that the build > instructions refer to the current head version. Correct. Gradle version was changed from 4.8 to 5.3 during the development of OpenJFX 13 [1], so for 12 you will need 4.8. I don't have time right now to look at the WinSDK issue, but you can look at the build instructions page at the time of OpenJFX 12 release [2]. - Nir [1] https://bugs.openjdk.java.net/browse/JDK-8218172 [2] https://wiki.openjdk.java.net/pages/viewpreviousversions.action?pageId=8257548 On Thu, Jul 4, 2019 at 6:02 PM Robert Lichtenberger < r.lichtenber...@gmail.com> wrote: > Hello everyone, > > I try to build JavaFX-12 mods for Windows-32. > > For that I cloned http://hg.openjdk.java.net/openjfx/12-dev/rt/ (correct?) > and read the build instructions at > > https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-Windows > . > > First question: > * The build instructions tell me that gradle 5.3 is used but the > gradle-wrapper actually downloads 4.8. My guess is that the build > instructions refer to the current head version. > * A simple ./gradlew tasks gives the following error: > > > * What went wrong: > > A problem occurred evaluating script. > > > FAIL: WINSDK_DIR not defined > > > There's no such environment variable in the build instructions. By looking > around in win.gradle I guessed that this should point to the "Microsoft > DirectShow header files", but it is not really well documented. > I could only make the build continue by patching win.gradle, setting an > environment variable did not help. > > If I add WINDOWS_SDK_DIR="C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1" > in win.gradle right above the checking code, I can execute gradlew tasks. > > However If I just start gradlew to really build JavaFX I get: > > FAILURE: Build failed with an exception. > > > > * What went wrong: > > Execution failed for task ':graphics:compileDecoraNativeShadersWin'. > > > java.util.concurrent.ExecutionException: > > org.gradle.process.internal.ExecException: A problem occurred starting > > process 'command '/VC/BIN/cl.exe'' > > > > Any help/hints welcome :-) >
Windows (32bit) build problems
Hello everyone, I try to build JavaFX-12 mods for Windows-32. For that I cloned http://hg.openjdk.java.net/openjfx/12-dev/rt/ (correct?) and read the build instructions at https://wiki.openjdk.java.net/display/OpenJFX/Building+OpenJFX#BuildingOpenJFX-Windows . First question: * The build instructions tell me that gradle 5.3 is used but the gradle-wrapper actually downloads 4.8. My guess is that the build instructions refer to the current head version. * A simple ./gradlew tasks gives the following error: > * What went wrong: > A problem occurred evaluating script. > > FAIL: WINSDK_DIR not defined > There's no such environment variable in the build instructions. By looking around in win.gradle I guessed that this should point to the "Microsoft DirectShow header files", but it is not really well documented. I could only make the build continue by patching win.gradle, setting an environment variable did not help. If I add WINDOWS_SDK_DIR="C:\\Program Files\\Microsoft SDKs\\Windows\\v7.1" in win.gradle right above the checking code, I can execute gradlew tasks. However If I just start gradlew to really build JavaFX I get: FAILURE: Build failed with an exception. > > * What went wrong: > Execution failed for task ':graphics:compileDecoraNativeShadersWin'. > > java.util.concurrent.ExecutionException: > org.gradle.process.internal.ExecException: A problem occurred starting > process 'command '/VC/BIN/cl.exe'' > Any help/hints welcome :-)