You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm new to NAR plugin, just wanting to compile a JNI dll for jMTPe with maven...
I finally could compile 32 and 64 bits without using all variable of vcvars34/64...
I work with VC14.0 x86 community, installed standard-way on Win10 amd64
latest problem was that
toolPathWindowsSDK property in msvc was replaced by a wrong guess using windowsSdkHome in com.github.maven_nar.Msvc.addWindowsSDKPaths()
the result was that "mt.exe" was called but not found in the path.
I patched locally this method, just to do the toolPathWindowsSDK=new File(windowsSdkHome,...) only if toolPathWindowsSDK is null or empty
The plugin in the pom is configured through few of the usual VC14.0 variables, and I had only to set the cited environment variables in windows, no path, no lib, no include... It uses the x86 tool chain to cross generate amd64 and x86 binaries, and runs OK on my 64bit windows (should work on 32bits).
I'm new, so maybe I did mistake, so feel free to explain me.
Hi,
I'm new to NAR plugin, just wanting to compile a JNI dll for jMTPe with maven...
I finally could compile 32 and 64 bits without using all variable of vcvars34/64...
I work with VC14.0 x86 community, installed standard-way on Win10 amd64
latest problem was that
toolPathWindowsSDK property in msvc was replaced by a wrong guess using windowsSdkHome in com.github.maven_nar.Msvc.addWindowsSDKPaths()
the result was that "mt.exe" was called but not found in the path.
I patched locally this method, just to do the toolPathWindowsSDK=new File(windowsSdkHome,...) only if toolPathWindowsSDK is null or empty
The plugin in the pom is configured through few of the usual VC14.0 variables, and I had only to set the cited environment variables in windows, no path, no lib, no include... It uses the x86 tool chain to cross generate amd64 and x86 binaries, and runs OK on my 64bit windows (should work on 32bits).
I'm new, so maybe I did mistake, so feel free to explain me.
Here is the POM extract
The code I edited is in method com.github.maven_nar.Msvc.addWindowsSDKPaths(), only an if() is added :
for the variables I have set:
maybe there is a problem between 8.1 SDK and 10.0 UCRT, but I did not install Windows 10 SDK as it is said not compatible with VC14.0.
I hope this helps...
The text was updated successfully, but these errors were encountered: