Dinesh966 / jnativehook

Automatically exported from code.google.com/p/jnativehook
0 stars 0 forks source link

Missing file for JNativeHook.dll lib compilication #79

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, I'm trying to compile the JNativeHook.dll lib file on windows with C++ but 
I'm having some missing files.

Here's the missing files names:
- org_jnativehook_GlobalScreen.h
- uiohook.h
- stdbool.h

Please let me know where I can get those files from.

Thanks a lot for this awesome project.

Note: I have already added the java JDK include folder (G:\Program Files 
(x86)\Java\jdk1.7.0_03\include) to my project.

Original issue reported on code.google.com by abusee...@gmail.com on 1 Feb 2014 at 9:14

GoogleCodeExporter commented 9 years ago
Hi,

You should be using Apache's Ant and the GCC 'c99' compiler provided by mingw 
to compile the project. Other compilers should work but they may require some 
build script patching.  Here are the general instructions for installing mingw 
on 64-bit Windows:

   Extract a fresh copy of msys2-base-x86_64-20131208.tar.xz to c:\msys64
   Run mingw64_shell.bat
   Close the terminal and relaunch mingw64_shell.bat
   Run pacman -S autoconf automake gcc make pkg-config libtool
   mingw-w64-x86_64-gcc mingw-w64-x86_64-libtool mingw-w64-x86_64-make
   mingw-w64-x86_64-pkgconf
   remove the jnitasks and libuiohook src folders
   ant distclean compile jar

org_jnativehook_GlobalScreen.h
Is generated by javah from the org/jnativehook/GlobalScreen.class file.  Ant 
will generate this file for you.

uiohook.h
This header comes from the libuiohook <https://github.com/kwhat/libuiohook> 
project which is again downloaded and compiled for you buy ant.

stdbool.h
Should be provided by your compiler.  What compiler are you using? If its msvc 
you need to run the env setup script first.

Original comment by a...@1stleg.com on 1 Feb 2014 at 4:15