ochafik/nativelibs4java — Issue #275: JNAERATOR: -arch win32 not effective on Windows invocation
Author: gjwiley
Created: 2012-02-29 02:40:19+00:00
State: open

Hi-

First, thanks for developing JNAerator. If I can get it to work, it should be a big time-saver.

The problem...

invoking with this:

`java -jar jnaerator.jar -o . config.jnaerator`

results in this:

`No arch defined for file Bin\ippaca6-5.3.dll !
Please use the option -arch with one of win32, win64`

`-arch win32` is in config, but I get the same result if I put it on the command line. I have tried many variations of option order. If I do something like `-arch Bogus` I get a syntax error so it seems to recognize the -arch flag--it just doesn't seem to apply it.

My libraries are 32-bit, I have tried invoking with 32-bit and 64-bit java

I have set the VISUAL_STUDIO_HOME and WINDOWS_SDK_HOME environment variables to point to the 32-bit runtimes:

`Feb 28, 2012 6:20:08 PM com.ochafik.admin.visualstudio.VisualStudioUtils getProp
INFO: [environment] ProgramFiles(x86)=C:\Program Files (x86)
Feb 28, 2012 6:20:08 PM com.ochafik.admin.visualstudio.VisualStudioUtils getProp
INFO: [environment] VISUAL_STUDIO_HOME=c:\Program Files (x86)\Microsoft Visual Studio 10.0
Feb 28, 2012 6:20:08 PM com.ochafik.admin.visualstudio.VisualStudioUtils getProp
INFO: [environment] ProgramFiles(x86)=C:\Program Files (x86)
Feb 28, 2012 6:20:08 PM com.ochafik.admin.visualstudio.VisualStudioUtils getProp
INFO: [environment] WINDOWS_SDK_HOME=c:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A
Feb 28, 2012 6:20:08 PM com.ochafik.admin.visualstudio.VisualStudioUtils getProp
INFO: [environment] VISUAL_STUDIO_INCLUDES=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include;c:\Program Files (x86)\Microsoft SDKs
\Windows\v7.0A\Include
No arch defined for file Bin\ippaca6-5.3.dll !
Please use the option -arch with one of win32, win64`

Configuration is:

```
-library Test

-runtime JNA

-arch win32

Bin\ippac-5.3.dll
Bin\ippaca6-5.3.dll
// .. there are more, 23 total .. //
Bin\MSVCP71.DLL
Bin\MSVCR71.DLL

Inc\AppErrCode.h
Inc\AudioErrCode.h
Inc\DefineErrString.h
//... there are more, 14 total ... //
Inc\DefineParams.h
Inc\WavFileErrCode.h
```

OS is Windows 7
Java is 1.6 u31
jnaerater jar is 0.9.10-SNAPSHOT-20120222 from github download

TIA, -=greg