Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build win64 JNI? #104

Open
blschatz opened this issue Apr 19, 2021 · 1 comment
Open

How to build win64 JNI? #104

blschatz opened this issue Apr 19, 2021 · 1 comment

Comments

@blschatz
Copy link

Hi, I'm attempting to build the JNI library on win64, and cant seem to find any instructions on how to build.

Reading the GNUMakefile, I've managed to setup appropriate links to the win32 JDK JNI headers, but compilation is failing

Trying the cross-compile option on linux, I get the following failure:

/XXXX/git/jffi2/jni/jffi/Library.c: In function ‘Java_com_kenai_jffi_Foreign_dlopen’:
/XXXX/git/jffi2/jni/jffi/Library.c:91:19: error: implicit declaration of function ‘PathIsRelativeW’ [-Werror=implicit-function-declaration]
dwFlags = PathIsRelativeW(path) ? 0 : LOAD_WITH_ALTERED_SEARCH_PATH;
^~~~~~~~~~~~~~~

I've tried adding the following include, but that then gives a slew of other errors per the further below:
-I/usr/i686-w64-mingw32/include/

Any suggestions on how to resolve the above?

Thanks!

#if __INTRINSIC_PROLOG(__movsd)
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/i686-w64-mingw32/include/psdk_inc/intrin-impl.h:1932:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]
/usr/i686-w64-mingw32/include/psdk_inc/intrin-impl.h:1932:1: error: this use of "defined" may not be portable [-Werror=expansion-to-defined]

@headius
Copy link
Member

headius commented May 5, 2021

Hey there, sorry for the delay in responding!

The native builds are run by Ant, based on the instructions in the readme. Did you try that first?

FWIW we do have an x86_64 build for Windows located in the archive dir. Is it not working for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants