Great catch - I have both IDEs installed. Prior to installing VS2010, I had changed rt/buildSrc/genVSproperties.bat to reference VS120COMNTOOLS instead of VS100COMNTOOLS and forgot to back out that change. I did have to make some changes to win.gradle to adjust the windows sdk tool paths: Further, VS2010 express failed to compile, so I installed Pro.
--- a/buildSrc/win.gradle Thu Mar 06 17:50:58 2014 -0500 +++ b/buildSrc/win.gradle Fri Mar 07 21:32:49 2014 +0000 @@ -131,10 +131,18 @@ : "$WINDOWS_VS_VSINSTALLDIR/VC/BIN") def compiler = IS_COMPILE_PARFAIT ? "cl.exe" : cygpath("$msvcBinDir/cl.exe") def linker = IS_COMPILE_PARFAIT ? "link.exe" : cygpath("$msvcBinDir/link.exe") -ext.RC = cygpath("$WINDOWS_SDK_DIR/Bin/RC.Exe") -def rcCompiler = cygpath("$WINDOWS_SDK_DIR/Bin/RC.Exe") +ext.RC = (IS_64 + ? cygpath("$WINDOWS_SDK_DIR/Bin/x64/RC.Exe") + : cygpath("$WINDOWS_SDK_DIR/Bin/x86/RC.Exe")) +def rcCompiler = (IS_64 + ? cygpath("$WINDOWS_SDK_DIR/Bin/x64/RC.Exe") + : cygpath("$WINDOWS_SDK_DIR/Bin/x86/RC.Exe")) + ext.FXC = cygpath("$WINDOWS_DXSDK_DIR/utilities/bin/x86/fxc.exe") -ext.MC = cygpath("$WINDOWS_SDK_DIR/Bin/mt.exe") +ext.MC = (IS_64 + ? cygpath("$WINDOWS_SDK_DIR/Bin/x64/mt.exe") + : cygpath("$WINDOWS_SDK_DIR/Bin/x86/mt.exe")) + // This next line is based on a line in the ant build scripts, but doesn't seem to point to the right place //ext.MSVCR = cygpath("${WINDOWS_VS_MSVCDIR}/redist/${IS_64 ? 'x64' : 'x86'}/Microsoft.VC${WINDOWS_VS_VER}.CRT/msvcr${WINDOWS_VS_VER}.dll") On Fri, Mar 7, 2014 at 1:04 PM, Kevin Rushforth <kevin.rushfo...@oracle.com>wrote: > Hi Kay, > > It looks like you are using VS2012 not 2010. We build JavaFX with VS 2010, > and have some issues with 2012. However, we will need to resolve them at > some point. > > Maybe someone else on the list has had luck building with VS 2012? > > -- Kevin > > > Kay McCormick wrote: > >> Here is what I see as the relevant portions of the build log. This is >> beyond my ability to fix easily at this point. I would attach the entire >> compile log but I compiled with --debug and its 4mb. Let me know if I >> should provide more information, file a bug, or direct my problem to >> another forum. >> >> Kay >> >> 12:35:16.275 [INFO] [org.gradle.process.internal.DefaultExecHandle] >> Successfully started process 'command 'C:/Program Files (x86)/Microsoft >> Visual Studio 12.0/VC/BIN/amd64/link.exe'' >> 12:35:16.329 [QUIET] [system.out] libcpmt.lib(xthrow.obj) : error LNK2038: >> mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't >> match value 'MD_DynamicRelease' in directwrite.obj >> 12:35:16.332 [QUIET] [system.out] libcpmt.lib(syserror.obj) : error >> LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' >> doesn't match value 'MD_DynamicRelease' in directwrite.obj >> 12:35:16.336 [QUIET] [system.out] Creating library >> C:\Users\kay\Documents\current\openjfx\rt\modules\ >> graphics\build\libs\font\win\javafx_font.lib >> and object >> C:\Users\kay\Documents\current\openjfx\rt\modules\ >> graphics\build\libs\font\win\javafx_font.exp >> 12:35:16.362 [QUIET] [system.out] >> C:\Users\kay\Documents\current\openjfx\rt\modules\ >> graphics\build\libs\font\win\javafx_font.dll >> : fatal error LNK1319: 2 mismatches detected >> 12:35:16.368 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] >> Changing state to: FAILED >> 12:35:16.368 [INFO] [org.gradle.process.internal.DefaultExecHandle] >> Process >> 'command 'C:/Program Files (x86)/Microsoft Visual Studio >> 12.0/VC/BIN/amd64/link.exe'' finished with exit value 1319 (state: FAILED) >> 12:35:16.368 [DEBUG] [org.gradle.logging.internal. >> DefaultLoggingConfigurer] >> Finished configuring with level: DEBUG, configurers: >> [org.gradle.logging.internal.OutputEventRenderer@1593948d, >> org.gradle.logging.internal.logback.LogbackLoggingConfigurer@1b604f19, >> org.gradle.logging.internal.JavaUtilLoggingConfigurer@7823a2f9] >> 12:35:16.369 [DEBUG] >> [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] >> Finished executing task ':graphics:linkWinFont' >> 12:35:16.369 [LIFECYCLE] [org.gradle.TaskExecutionLogger] >> :graphics:linkWinFont FAILED >> 12:35:16.369 [INFO] >> [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] >> :graphics:linkWinFont (Thread[main,5,main]) completed. Took 0.104 secs. >> 12:35:16.369 [DEBUG] >> [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] Task worker >> [Thread[main,5,main]] finished, busy: 3 mins 14.44 secs, idle: 0.017 secs >> 12:35:16.390 [LIFECYCLE] [org.gradle.BuildResultLogger] >> 12:35:16.390 [LIFECYCLE] [org.gradle.BuildResultLogger] BUILD FAILED >> 12:35:16.390 [LIFECYCLE] [org.gradle.BuildResultLogger] >> 12:35:16.390 [LIFECYCLE] [org.gradle.BuildResultLogger] Total time: 3 mins >> 29.213 secs >> >> >