Open Nayak1234 opened 7 years ago
See if you can also get x11-xcb and libxkbcommon-x11
I will try to make this dependency an optional runtime dependency.
As long as you have an xcb-proto package (PECL) I should be able to statically link the missing depends. That wont help you compile from src, but it should solve the runtime depends.
xkbcommon will be a runtime dependency in 3.0.
I plan on rewriting the keyboard stuff for X11 in 2.3 which should address this problem.
Hi I am new to Ubuntu, I am getting this error while trying to compile JNativeHook
[autoreconf] autoreconf: running: /usr/bin/autoheader --force [autoreconf] autoreconf: running: automake --add-missing --copy --force-missing [autoreconf] autoreconf: Leaving directory
.'configure-libuiohook: [echo] Configuring libUIOHook source... [mkdir] Created dir: /home/auro/jnativehook-2.1.0/bin/libuiohook [configure] /home/auro/jnativehook-2.1.0/src/libuiohook/configure --prefix=/home/auro/jnativehook-2.1.0/bin --libdir=/home/auro/jnativehook-2.1.0/bin/lib --enable-debug --enable-quiet --enable-static --disable-shared --with-pic [configure] checking build system type... x86_64-unknown-linux-gnu [configure] checking host system type... x86_64-unknown-linux-gnu [configure] checking target system type... x86_64-unknown-linux-gnu [configure] checking for a BSD-compatible install... /usr/bin/install -c [configure] checking whether build environment is sane... yes [configure] checking for a thread-safe mkdir -p... /bin/mkdir -p [configure] checking for gawk... no [configure] checking for mawk... mawk [configure] checking whether make sets $(MAKE)... yes [configure] checking whether make supports nested variables... yes [configure] checking for gcc... gcc [configure] checking whether the C compiler works... yes [configure] checking for C compiler default output file name... a.out [configure] checking for suffix of executables... [configure] checking whether we are cross compiling... no [configure] checking for suffix of object files... o [configure] checking whether we are using the GNU C compiler... yes [configure] checking whether gcc accepts -g... yes [configure] checking for gcc option to accept ISO C89... none needed [configure] checking whether gcc understands -c and -o together... yes [configure] checking for style of include used by make... GNU [configure] checking dependency style of gcc... gcc3 [configure] checking for ar... ar [configure] checking the archiver (ar) interface... ar [configure] checking for gcc option to accept ISO C99... -std=gnu99 [configure] checking for an ANSI C-conforming const... yes [configure] checking how to run the C preprocessor... gcc -std=gnu99 -E [configure] checking for grep that handles long lines and -e... /bin/grep [configure] checking for egrep... /bin/grep -E [configure] checking for ANSI C header files... yes [configure] checking for sys/types.h... yes [configure] checking for sys/stat.h... yes [configure] checking for stdlib.h... yes [configure] checking for string.h... yes [configure] checking for memory.h... yes [configure] checking for strings.h... yes [configure] checking for inttypes.h... yes [configure] checking for stdint.h... yes [configure] checking for unistd.h... yes [configure] checking for stdbool.h that conforms to C99... yes [configure] checking for _Bool... yes [configure] checking for stdint.h... (cached) yes [configure] checking for uint64_t... yes [configure] checking how to print strings... printf [configure] checking for a sed that does not truncate output... /bin/sed [configure] checking for fgrep... /bin/grep -F [configure] checking for ld used by gcc -std=gnu99... /usr/bin/ld [configure] checking if the linker (/usr/bin/ld) is GNU ld... yes [configure] checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B [configure] checking the name lister (/usr/bin/nm -B) interface... BSD nm [configure] checking whether ln -s works... yes [configure] checking the maximum length of command line arguments... 1572864 [configure] checking whether the shell understands some XSI constructs... yes [configure] checking whether the shell understands "+="... yes [configure] checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop [configure] checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop [configure] checking for /usr/bin/ld option to reload object files... -r [configure] checking for objdump... objdump [configure] checking how to recognize dependent libraries... pass_all [configure] checking for dlltool... no [configure] checking how to associate runtime and link libraries... printf %s\n [configure] checking for archiver @FILE support... @ [configure] checking for strip... strip [configure] checking for ranlib... ranlib [configure] checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok [configure] checking for sysroot... no [configure] checking for mt... mt [configure] checking if mt is a manifest tool... no [configure] checking for dlfcn.h... yes [configure] checking for objdir... .libs [configure] checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no [configure] checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC [configure] checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes [configure] checking if gcc -std=gnu99 static flag -static works... yes [configure] checking if gcc -std=gnu99 supports -c -o file.o... yes [configure] checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes [configure] checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes [configure] checking dynamic linker characteristics... GNU/Linux ld.so [configure] checking how to hardcode library paths into programs... immediate [configure] checking whether stripping libraries is possible... yes [configure] checking if libtool supports shared libraries... yes [configure] checking whether to build shared libraries... no [configure] checking whether to build static libraries... yes [configure] checking operating system... x86_64-unknown-linux-gnu (Linux Compatible) [configure] checking for pkg-config... /usr/bin/pkg-config [configure] checking pkg-config is at least version 0.9.0... yes [configure] checking for X11... yes [configure] checking for XTST... yes [configure] checking for XRecordQueryVersion in -lXtst... yes [configure] checking for X11/extensions/record.h... yes [configure] checking for XT... yes [configure] checking for XTestQueryExtension in -lXtst... yes [configure] checking for X11/extensions/XTest.h... yes [configure] checking for XINERAMA... yes [configure] checking for X11_XCB... yes [configure] checking for XKBCOMMON... no [configure] configure: error: Package requirements (xkbcommon) were not met: [configure] [configure] No package 'xkbcommon' found [configure] [configure] Consider adjusting the PKG_CONFIG_PATH environment variable if you [configure] installed software in a non-standard prefix. [configure] [configure] Alternatively, you may set the environment variables XKBCOMMON_CFLAGS [configure] and XKBCOMMON_LIBS to avoid the need to call pkg-config. [configure] See the pkg-config man page for more details.
BUILD FAILED /home/auro/jnativehook-2.1.0/build.xml:355: exec returned: 1 `
Please note I have already installed package 'xkbcommon' I have checked this using
apt-file search xkbcommon.pc libxkbcommon-dev: /usr/lib/x86_64-linux-gnu/pkgconfig/xkbcommon.pc
Please help on build steps Thanks