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

Unable to compile on Linux #250

Closed
xeruf opened this issue Jan 8, 2019 · 7 comments
Closed

Unable to compile on Linux #250

xeruf opened this issue Jan 8, 2019 · 7 comments
Labels

Comments

@xeruf
Copy link

xeruf commented Jan 8, 2019

bootstrap-libuiohook:
     [echo] Bootstrapping libUIOHook...
[autoreconf] autoreconf --verbose --force --install
[autoreconf] autoreconf: Entering directory `.'
[autoreconf] autoreconf: configure.ac: not using Gettext
[autoreconf] autoreconf: running: aclocal --force -I m4
[autoreconf] autoreconf: configure.ac: tracing
[autoreconf] autoreconf: configure.ac: creating directory config
[autoreconf] autoreconf: configure.ac: not using Libtool
[autoreconf] autoreconf: running: /usr/bin/autoconf --force
[autoreconf] configure.ac:76: error: possibly undefined macro: AC_PROG_LIBTOOL
[autoreconf]       If this token and others are legitimate, please use m4_pattern_allow.
[autoreconf]       See the Autoconf documentation.
[autoreconf] configure.ac:99: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL
[autoreconf] autoreconf: /usr/bin/autoconf failed with exit status: 1

BUILD FAILED
/home/janek/daten/projects/_forks/jnativehook/build.xml:345: exec returned: 1

Total time: 6 seconds
$ ant all
Buildfile: /home/janek/daten/projects/_forks/jnativehook/build.xml

init:
     [echo] Initializing local build environment...
     [echo] Project:            jnativehook 2.1.20190108
     [echo] Debug:              false
     [echo] Java Compiler:      modern
     [echo] Java Source:        1.8
     [echo] Java Target:        1.8
     [echo] Java Include:       /usr/lib/jvm/java-8-oracle/jre/../include
     [echo] Java Args:          
     [echo] Native Lib:         libJNativeHook.so
     [echo] Native OS:          linux
     [echo] Native Arch:        x86_64
     [echo] Native Toolchain:   gcc
     [echo] Native CFLAGS:      -O2 -pipe
     [echo] Native LDFLAGS:     
[propertyfile] Updating property file: /home/janek/daten/projects/_forks/jnativehook/build.properties

compile-java:
     [echo] Compiling Java source...

download-libuiohook:

bootstrap-libuiohook:

configure-libuiohook:
     [echo] Configuring libUIOHook source...
    [mkdir] Created dir: /home/janek/daten/projects/_forks/jnativehook/bin/libuiohook
[configure] /home/janek/daten/projects/_forks/jnativehook/src/libuiohook/configure --prefix=/home/janek/daten/projects/_forks/jnativehook/bin --libdir=/home/janek/daten/projects/_forks/jnativehook/bin/lib --enable-debug --enable-quiet --enable-static --disable-shared --with-pic
[configure] configure: WARNING: unrecognized options: --enable-static, --disable-shared, --with-pic
[configure] configure: error: cannot find install-sh, install.sh, or shtool in config "/home/janek/daten/projects/_forks/jnativehook/src/libuiohook"/config

BUILD FAILED
/home/janek/daten/projects/_forks/jnativehook/build.xml:355: exec returned: 1

Total time: 0 seconds

All dependencies listed in the wiki are installed. I am on the latest 2.1 branch.

@kwhat
Copy link
Owner

kwhat commented Jan 8, 2019 via email

@xeruf
Copy link
Author

xeruf commented Jan 9, 2019

I am using KDE Neon, which is based on Ubuntu 18 LTS

@xeruf
Copy link
Author

xeruf commented Jan 9, 2019

I installed libtool from the Ubuntu repos, but the same error occurs.

@xeruf
Copy link
Author

xeruf commented Mar 19, 2019

I now get a different error on master:

Buildfile: /home/janek/daten/projects/_forks/jnativehook/build.xml

init:
     [echo] Initializing local build environment...
     [echo] Project:            jnativehook 2.1.20190319
     [echo] Debug:              false
     [echo] Java Compiler:      modern
     [echo] Java Source:        1.8
     [echo] Java Target:        1.8
     [echo] Java Include:       /usr/lib/jvm/java-8-oracle/jre/../include
     [echo] Java Args:          
     [echo] Native Lib:         libJNativeHook.so
     [echo] Native OS:          linux
     [echo] Native Arch:        x86_64
     [echo] Native Toolchain:   gcc
     [echo] Native CFLAGS:      -O2 -pipe
     [echo] Native LDFLAGS:     
[propertyfile] Updating property file: /home/janek/daten/projects/_forks/jnativehook/build.properties

compile-java:
     [echo] Compiling Java source...
    [javac] Compiling 28 source files to /home/janek/daten/projects/_forks/jnativehook/bin/class/java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/AbstractSwingInputAdapter.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/DefaultLibraryLocator.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/GlobalScreen.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/NativeHookException.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/NativeInputEvent.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/NativeLibraryLocator.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/NativeMonitorInfo.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/NativeSystem.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/dispatcher/DefaultDispatchService.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/dispatcher/SwingDispatchService.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/example/NativeHookDemo.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/keyboard/JavaFXKeyAdapter.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/keyboard/NativeKeyAdapter.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/keyboard/NativeKeyEvent.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/keyboard/NativeKeyListener.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/keyboard/SwingKeyAdapter.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/NativeMouseAdapter.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/NativeMouseEvent.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/NativeMouseInputAdapter.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/NativeMouseInputListener.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/NativeMouseListener.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/NativeMouseMotionAdapter.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/NativeMouseMotionListener.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/NativeMouseWheelAdapter.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/NativeMouseWheelEvent.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/NativeMouseWheelListener.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/SwingMouseAdapter.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/mouse/SwingMouseWheelAdapter.java
    [javac] /home/janek/daten/projects/_forks/jnativehook/src/java/org/jnativehook/keyboard/JavaFXKeyAdapter.java:566: error: illegal start of expression
    [javac]         if (eventType.equals(KeyEvent.KEY_TYPED))){
    [javac]                                                  ^
    [javac] 1 error

BUILD FAILED
/home/janek/daten/projects/_forks/jnativehook/build.xml:388: Compile failed; see the compiler error output for details.

@kwhat
Copy link
Owner

kwhat commented May 9, 2019

master is broken, try building the 2.1 branch. Make sure you run a make distclean between platforms.

@kwhat kwhat added the question label May 9, 2019
@kwhat
Copy link
Owner

kwhat commented Jul 25, 2019

you seem to be missing libtool. There should be a package. I am putting a container together to make building easier.

@kwhat
Copy link
Owner

kwhat commented Aug 26, 2020

This has gone though extensive changes for 2.2. CMake should make building easier, but famous last words.

@kwhat kwhat closed this as completed Aug 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants