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
Using libuiohook library dynamically #51
Comments
Hi @ufoscout, I have no idea how to use a C library with GoLang ;) I do know that you cannot use the binary from JNativeHook because it has been linked against the Java runtime. You should be able to compile this library using autotools without to much trouble. For more compilation instructions, you can follow the Wiki article from JNativeHook and just skip the Java portions. Let me know if you have issues or need further assistance. Best, |
P.S. The binary public interface you are looking for is uiohook.h |
Hi @kwhat |
You dont need the ant part, just the dependencies like gcc or other C99 compiler, autotools, pkgconfig & libtool for your platform. After you have installed what is required for your platform, you should be able to run the 3 commands in the read me to compile. All of the default options will be selected for you; you can customize the build using --enable / --disable or --with / --without. Use
|
Hi @kwhat
|
Hi @ufoscout, Cross compiling is far more challenging than targeting your local platform. Lets start with the easy stuff, you can switch between x86 / amd64 on a 64 bit system that supports 32 bit execution with I do most of my cross compiling on Gentoo Linux as they have many tools to help with this process, some of which are also in my repository. Hope that helps. |
Hi @kwhat you are providing a great support but I understood that cross compiling is too far from my actual level...
One question:
how should I use the "-m" option? something like: |
Now I have another issue :( |
Hi @ufoscout, For the first post, you probably want to use the mingw32 and mingw64 consoles to compile. This should also solve the msys-2.0.dll problem. The -m options are just like you described. |
Hi @kwhat
I would like to use your library from a golang application. I have no knowledge of C so I have extracted the the compiled version of this library from the jnativehook.jar file. However, to use them I need the related header files and I don't which one to use. Could you please help me identifying the correct ones?
The text was updated successfully, but these errors were encountered: