Javafxpackager build error on Win7 64

Vadim Pakhnushev vadim.pakhnushev at oracle.com
Mon Dec 16 03:45:38 PST 2013


Artem,

That was exactly the case, as we discussed off-list.
I've asked Francisco to follow up on the list about that and file a JIRA.
The problem seems to be that the build system doesn't pick up WinSDK 7.1 
installed with the VS2010 Express.

Thanks,
Vadim

On 16.12.2013 13:06, Artem Ananiev wrote:
> Francisco,
>
> it can also be caused by using Windows SDK 7.0A, which is bundled with 
> Visual Studio 2010 Express. It can't be used to build 64-bit FX, you 
> need either VS 2010 Pro, or Windows SDK 7.1 (downloaded as a separate 
> bundle from MS site).
>
> Thanks,
>
> Artem
>
> On 12/14/2013 2:07 PM, Vadim Pakhnushev wrote:
>> Francisco,
>>
>> It seems that somehow /machine:X86 got added to the command line.
>> Please make sure that your environment is consistent, that is you have
>> JAVA_HOME and PATH set to x64 JDK.
>> Then try to gradle clean sdk.
>>
>> Hope this helps,
>> Vadim
>>
>> On 14.12.2013 4:12, Francisco Javier Godino wrote:
>>> Hello:
>>>
>>> I ran the build process "gradle sdk" and I'm receiving the following
>>> error:
>>>
>>> LNK1112 module machine type X86 conflicts with target machine type x64
>>>
>>> Part of the log:
>>>
>>> Compiling native files: []
>>> Starting process 'command 'C:/Program Files (x86)/Microsoft
>>> SDKs/Windows/v7.0A/Bin/RC.Exe''. Working directory:
>>> C:\Desarrollos\javafxopen\rt\modules\fxpackager Command: C:/Program
>>> Files (x86)/Microsoft SDKs/Windows/v7.0A/Bin/RC.Exe /nologo /l 0x409
>>> /r /dJFX_DVERSION=8 /dJFX_VERSION=8
>>> /foC:\Desarrollos\javafxopen\rt\modules\fxpackager\build/native/javafxpackager/javafxpackager.res 
>>>
>>> src/main/native/javafxpackager/win/javafxpackager.rc
>>> Successfully started process 'command 'C:/Program Files
>>> (x86)/Microsoft SDKs/Windows/v7.0A/Bin/RC.Exe''
>>> Process 'command 'C:/Program Files (x86)/Microsoft
>>> SDKs/Windows/v7.0A/Bin/RC.Exe'' finished with exit value 0 (state:
>>> SUCCEEDED)
>>> Starting process 'command 'C:/Program Files (x86)/Microsoft Visual
>>> Studio 10.0/VC/BIN/amd64/link.exe''. Working directory:
>>> C:\Desarrollos\javafxopen\rt\modules\fxpackager Command: C:/Program
>>> Files (x86)/Microsoft Visual Studio 10.0/VC/BIN/amd64/link.exe
>>> /machine:X86 /nologo /opt:REF /incremental:no /manifest kernel32.lib
>>> advapi32.lib
>>> /out:C:\Desarrollos\javafxopen\rt\modules\fxpackager\build/native/javafxpackager/javafxpackager.exe 
>>>
>>> C:\Desarrollos\javafxopen\rt\modules\fxpackager\build/native/javafxpackager/javafxpackager.obj 
>>>
>>> C:\Desarrollos\javafxopen\rt\modules\fxpackager\build/native/javafxpackager/javafxpackager.res 
>>>
>>>
>>> Successfully started process 'command 'C:/Program Files
>>> (x86)/Microsoft Visual Studio 10.0/VC/BIN/amd64/link.exe''
>>> C:\Desarrollos\javafxopen\rt\modules\fxpackager\build/native/javafxpackager/javafxpackager.obj 
>>>
>>> : fatal error LNK1112: module machine type 'x64' conflicts with target
>>> machine type 'X86'
>>> Process 'command 'C:/Program Files (x86)/Microsoft Visual Studio
>>> 10.0/VC/BIN/amd64/link.exe'' finished with exit value 1112 (state:
>>> FAILED)
>>> :fxpackager:buildJavaFXPackager FAILED
>>>
>>> The line in build.gradle is:
>>>
>>>
>>>
>>> doLast {
>>>                  mkdir "$buildDir/javafxpackager"
>>>                  exec({
>>>                      commandLine("$WIN.fxpackager.linker", "/nologo",
>>> "/opt:REF", "/incremental:no", "/manifest", "kernel32.lib",
>>> "advapi32.lib",
>>>
>>> "/out:$buildDir/native/javafxpackager/javafxpackager.exe",
>>>
>>> "$buildDir/native/javafxpackager/javafxpackager.obj",
>>>
>>> "$buildDir/native/javafxpackager/javafxpackager.res")
>>> environment(WINDOWS_NATIVE_COMPILE_ENVIRONMENT)
>>>                  })
>>>              }
>>>
>>> Do I need to change something?
>>>
>>> Thanks in advance!!
>>>
>>> Javier
>>



More information about the openjfx-dev mailing list