Build Errors on Windows 8.1 / VS2012 Pro / JDK 1.8.0-b132 [was: Build Errors on Windows 8.1 / VS2010 Pro / JDK 1.8.0-b132]
Stephen F Northover
steve.x.northover at oracle.com
Tue Mar 11 14:53:11 UTC 2014
I tried the other day and failed because some standard windows desktop
include files were not visible. I suspect that somewhere we were
targetting the WinRT desktop or that a #defined was needed to force
files to be included. The missing .h files were some OLE stuff that
allowed FX to integrate with desktop.
Steve
On 2014-03-11 8:03 AM, Kevin Rushforth wrote:
> Thanks, Artem.
>
> Yes, the version of Visual Studio that we build JavaFX with must be
> tied to that of the JDK. VS 2010 SP1 for JDK 8 and 8u. Probably VS
> 2013 for JDK 9.
>
> Prior to that, we may want to fix any issues that prevent developers
> from building on VS 2012 or 2013.
>
> -- Kevin
>
>
> Artem Ananiev wrote:
>>
>> On 3/8/2014 1:04 AM, Kevin Rushforth 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?
>>
>> I was able to build FX with VS 2012 some time ago. The changes were
>> mostly cosmetic (caused by different Visual Studio and Platform SDK
>> directory layouts), except static C++ runtime linkage. And, of
>> course, FX should be aligned with JDK, which is shipped with VS 2010
>> runtime (will it be changed in JDK9?), otherwise FX will have to ship
>> with its own runtime libraries.
>>
>> Thanks,
>>
>> Artem
>>
>>> -- 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 at 1593948d,
>>>> org.gradle.logging.internal.logback.LogbackLoggingConfigurer at 1b604f19,
>>>> org.gradle.logging.internal.JavaUtilLoggingConfigurer at 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
More information about the openjfx-dev
mailing list