Skip to content

Instantly share code, notes, and snippets.

View sonOfRa's full-sized avatar

Simon Levermann sonOfRa

View GitHub Profile
../toxcore/DHT.c: In function 'addto_lists':
../toxcore/DHT.c:459:5: warning: passing argument 1 of 'IN6_IS_ADDR_V4MAPPED' from incompatible pointer type [enabled by default]
In file included from ../toxcore/network.h:40:0,
from ../toxcore/Lossless_UDP.h:27,
from ../toxcore/net_crypto.h:27,
from ../toxcore/DHT.h:27,
from ../toxcore/DHT.c:30:
/usr/x86_64-w64-mingw32/mingw/include/ws2tcpip.h:99:5: note: expected 'const struct in6_addr *' but argument is of type 'union IP6 *'
libtool: link: warning: library `/usr/x86_64-w64-mingw32/lib/libsodium.la' was moved.
In file included from ../other/DHT_bootstrap.c:36:0:
cd . && /bin/sh ./config.status libtoxcore.pc
config.status: creating libtoxcore.pc
make all-recursive
make[1]: Entering directory `/home/simon/repos/tox'
Making all in build
make[2]: Entering directory `/home/simon/repos/tox/build'
CC ../toxcore/libtoxcore_la-DHT.lo
../toxcore/DHT.c: In function 'addto_lists':
../toxcore/DHT.c:459:5: warning: passing argument 1 of 'IN6_IS_ADDR_V4MAPPED' from incompatible pointer type [enabled by default]
In file included from ../toxcore/network.h:40:0,
cd . && /bin/sh ./config.status libtoxcore.pc
config.status: creating libtoxcore.pc
make all-recursive
make[1]: Entering directory `/home/simon/repos/tox'
Making all in build
make[2]: Entering directory `/home/simon/repos/tox/build'
CC ../toxcore/libtoxcore_la-DHT.lo
../toxcore/DHT.c: In function 'addto_lists':
../toxcore/DHT.c:459:5: warning: passing argument 1 of 'IN6_IS_ADDR_V4MAPPED' from incompatible pointer type [enabled by default]
In file included from ../toxcore/network.h:40:0,
simon@Locutus test % ls *.so && java -jar jToxtest.jar -Djava.library.path=.
jtoxcore.so libjtoxcore.so
Exception in thread "main" java.lang.UnsatisfiedLinkError: no jtoxcore in java.library.path
simon@Locutus build % cmake ../ -DCMAKE_TOOLCHAIN_FILE=/home/simon/cmake-toolchains/win64
-- The C compiler identification is GNU 4.7.3
-- The CXX compiler identification is GNU 4.7.3
-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc
-- Check for working C compiler: /usr/bin/x86_64-w64-mingw32-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++
-- Check for working CXX compiler: /usr/bin/x86_64-w64-mingw32-g++ -- works
-- Detecting CXX compiler ABI info
CMake Error at cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (message):
Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY
JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
Call Stack (most recent call first):
cmake/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindJNI.cmake:270 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
jni/CMakeLists.txt:1 (find_package)
-- Configuring incomplete, errors occurred!
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
find_package(JNI REQUIRED)
set(NEED_JNI_MD y)
else()
if(NOT DEFINED NEED_JNI_MD)
set(NEED_JNI_MD y)
endif()
if(NOT DEFINED JNI_H)
message(FATAL_ERROR "Need to specify jni.h location when cross-compiling. Please specify location with -DJNI_H=/path/to/jni.h")
endif()
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
find_package(JNI REQUIRED)
set(NEED_JNI_MD y)
else()
if(NOT DEFINED NEED_JNI_MD)
set(NEED_JNI_MD y)
endif()
if(NOT DEFINED JNI_H)
message(FATAL_ERROR "Need to specify jni.h location when cross-compiling. Please specify location with -DJNI_H=/path/to/jni.h")
endif()
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
find_package(JNI REQUIRED)
set(NEED_JNI_MD y)
else()
if(NOT DEFINED NEED_JNI_MD)
set(NEED_JNI_MD y)
endif()
if(NOT DEFINED JNI_H)
message(FATAL_ERROR "Need to specify jni.h location when cross-compiling. Please specify location with -DJNI_H=/path/to/jni.h")
endif()
if(NOT DEFINED CMAKE_TOOLCHAIN_FILE)
find_package(JNI REQUIRED)
set(NEED_JNI_MD y)
else()
if(NOT DEFINED NEED_JNI_MD)
set(NEED_JNI_MD y)
endif()
if(NOT DEFINED JNI_H)
message(FATAL_ERROR "Need to specify jni.h location when cross-compiling. Please specify location with -DJNI_H=/path/to/jni.h")
endif()