Re: Build fails at graphics:linkWinFont
Good to know. -- Kevin On 8/25/2018 12:47 AM, John Hendrikx wrote: There should have been a gdi32.lib in the x64 folder as well, but there wasn't. Downloading a Windows SDK (10.0.16299) and installing it solved this. --John On 25/08/2018 00:24, Kevin Rushforth wrote: C:/Program Files (x86)/Windows Kits/10/lib/10.0.16299.0/um/x86\gdi32.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64' This looks like a problem where the tools are confused about 32-bit versus 64-bit. It might be something missing from your Visual Studio installation, but it's hard to say without more information. Take a look at build/windows_tools.properties and see if anything looks odd. One thing you could try is to 'rm -rf build', then run 'gradle clean' then try the build again. -- Kevin On 8/24/2018 3:07 PM, John Hendrikx wrote: Hi, I'm trying to get openjfx build on Windows, but I've run into an issue I haven't been able to resolve. Any tips I can try? --John > Task :graphics:linkWinFont FAILED Creating library P:\Dev\git\openjdk-jfx\modules\javafx.graphics\build\libs\font\win\javafx_font.lib and object P:\Dev\git\openjdk-jfx\modules\javafx.graphics\build\libs\font\win\javafx_font.exp fontpath.obj : error LNK2019: unresolved external symbol __imp_EnumFontFamiliesExW referenced in function DifferentFamily fontpath.obj : error LNK2019: unresolved external symbol __imp_GetDeviceCaps referenced in function Java_com_sun_javafx_font_PrismFontFactory_getSystemFontSizeNative C:/Program Files (x86)/Windows Kits/10/lib/10.0.16299.0/um/x86\gdi32.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64' P:\Dev\git\openjdk-jfx\modules\javafx.graphics\build\libs\font\win\javafx_font.dll : fatal error LNK1120: 2 unresolved externals FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':graphics:linkWinFont'. > Process 'command 'C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/link.exe'' finished with non-zero exit value 1120
Re: Build fails at graphics:linkWinFont
There should have been a gdi32.lib in the x64 folder as well, but there wasn't. Downloading a Windows SDK (10.0.16299) and installing it solved this. --John On 25/08/2018 00:24, Kevin Rushforth wrote: C:/Program Files (x86)/Windows Kits/10/lib/10.0.16299.0/um/x86\gdi32.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64' This looks like a problem where the tools are confused about 32-bit versus 64-bit. It might be something missing from your Visual Studio installation, but it's hard to say without more information. Take a look at build/windows_tools.properties and see if anything looks odd. One thing you could try is to 'rm -rf build', then run 'gradle clean' then try the build again. -- Kevin On 8/24/2018 3:07 PM, John Hendrikx wrote: Hi, I'm trying to get openjfx build on Windows, but I've run into an issue I haven't been able to resolve. Any tips I can try? --John > Task :graphics:linkWinFont FAILED Creating library P:\Dev\git\openjdk-jfx\modules\javafx.graphics\build\libs\font\win\javafx_font.lib and object P:\Dev\git\openjdk-jfx\modules\javafx.graphics\build\libs\font\win\javafx_font.exp fontpath.obj : error LNK2019: unresolved external symbol __imp_EnumFontFamiliesExW referenced in function DifferentFamily fontpath.obj : error LNK2019: unresolved external symbol __imp_GetDeviceCaps referenced in function Java_com_sun_javafx_font_PrismFontFactory_getSystemFontSizeNative C:/Program Files (x86)/Windows Kits/10/lib/10.0.16299.0/um/x86\gdi32.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64' P:\Dev\git\openjdk-jfx\modules\javafx.graphics\build\libs\font\win\javafx_font.dll : fatal error LNK1120: 2 unresolved externals FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':graphics:linkWinFont'. > Process 'command 'C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/link.exe'' finished with non-zero exit value 1120
Re: Build fails at graphics:linkWinFont
C:/Program Files (x86)/Windows Kits/10/lib/10.0.16299.0/um/x86\gdi32.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64' This looks like a problem where the tools are confused about 32-bit versus 64-bit. It might be something missing from your Visual Studio installation, but it's hard to say without more information. Take a look at build/windows_tools.properties and see if anything looks odd. One thing you could try is to 'rm -rf build', then run 'gradle clean' then try the build again. -- Kevin On 8/24/2018 3:07 PM, John Hendrikx wrote: Hi, I'm trying to get openjfx build on Windows, but I've run into an issue I haven't been able to resolve. Any tips I can try? --John > Task :graphics:linkWinFont FAILED Creating library P:\Dev\git\openjdk-jfx\modules\javafx.graphics\build\libs\font\win\javafx_font.lib and object P:\Dev\git\openjdk-jfx\modules\javafx.graphics\build\libs\font\win\javafx_font.exp fontpath.obj : error LNK2019: unresolved external symbol __imp_EnumFontFamiliesExW referenced in function DifferentFamily fontpath.obj : error LNK2019: unresolved external symbol __imp_GetDeviceCaps referenced in function Java_com_sun_javafx_font_PrismFontFactory_getSystemFontSizeNative C:/Program Files (x86)/Windows Kits/10/lib/10.0.16299.0/um/x86\gdi32.lib : warning LNK4272: library machine type 'X86' conflicts with target machine type 'x64' P:\Dev\git\openjdk-jfx\modules\javafx.graphics\build\libs\font\win\javafx_font.dll : fatal error LNK1120: 2 unresolved externals FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':graphics:linkWinFont'. > Process 'command 'C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.10.25017/bin/HostX64/x64/link.exe'' finished with non-zero exit value 1120