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

errors when attempting to install tinyspine #170

Closed
dabeegmon opened this issue Nov 13, 2020 · 7 comments
Closed

errors when attempting to install tinyspine #170

dabeegmon opened this issue Nov 13, 2020 · 7 comments

Comments

@dabeegmon
Copy link

dabeegmon commented Nov 13, 2020

Trying to install tinyspine

(running on a debian testing (bullseye) system that is as up to date as I'm allowed by apt)

> /tinyspline/build# cmake ..
CMake Warning (dev) at /usr/share/cmake-3.16/Modules/UseSWIG.cmake:607 (message):
Policy CMP0078 is not set: UseSWIG generates standard target names. Run
"cmake --help-policy CMP0078" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Call Stack (most recent call first):
src/CMakeLists.txt:968 (swig_add_library)
src/CMakeLists.txt:1025 (tinyspline_add_swig_library)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake-3.16/Modules/UseSWIG.cmake:460 (message):
Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
flag. Run "cmake --help-policy CMP0086" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/UseSWIG.cmake:702 (SWIG_ADD_SOURCE_TO_MODULE)
src/CMakeLists.txt:968 (swig_add_library)
src/CMakeLists.txt:1025 (tinyspline_add_swig_library)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake-3.16/Modules/UseSWIG.cmake:607 (message):
Policy CMP0078 is not set: UseSWIG generates standard target names. Run
"cmake --help-policy CMP0078" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Call Stack (most recent call first):
src/CMakeLists.txt:968 (swig_add_library)
src/CMakeLists.txt:1089 (tinyspline_add_swig_library)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake-3.16/Modules/UseSWIG.cmake:460 (message):
Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
flag. Run "cmake --help-policy CMP0086" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/UseSWIG.cmake:702 (SWIG_ADD_SOURCE_TO_MODULE)
src/CMakeLists.txt:968 (swig_add_library)
src/CMakeLists.txt:1089 (tinyspline_add_swig_library)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake-3.16/Modules/UseSWIG.cmake:607 (message):
Policy CMP0078 is not set: UseSWIG generates standard target names. Run
"cmake --help-policy CMP0078" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

Call Stack (most recent call first):
src/CMakeLists.txt:968 (swig_add_library)
src/CMakeLists.txt:1113 (tinyspline_add_swig_library)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/cmake-3.16/Modules/UseSWIG.cmake:460 (message):
Policy CMP0086 is not set: UseSWIG honors SWIG_MODULE_NAME via -module
flag. Run "cmake --help-policy CMP0086" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.

Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/UseSWIG.cmake:702 (SWIG_ADD_SOURCE_TO_MODULE)
src/CMakeLists.txt:968 (swig_add_library)
src/CMakeLists.txt:1113 (tinyspline_add_swig_library)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2
JAVA_AWT_INCLUDE_PATH)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindJNI.cmake:372 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
src/CMakeLists.txt:1130 (find_package)root@debiantestingtestbed:/tinyspline/build# cmake --build .
gmake: *** No targets specified and no makefile found. Stop.
root@debiantestingtestbed:/tinyspline/build#

-- Configuring incomplete, errors occurred!
See also "/tinyspline/build/CMakeFiles/CMakeOutput.log". `
root@debiantestingtestbed:/tinyspline/build# cmake --build .
gmake: *** No targets specified and no makefile found. Stop.
root@debiantestingtestbed:/tinyspline/build#

I read the policy but what's written doesn't help me figure out what to do.

Hopefully someone will have a fix for this.

(I find the formatting options here quite confusing so hopefully I haven't made a dog's breakfast of things!)

TIA

@msteinbeck
Copy link
Owner

Hi @dabeegmon,

I read the policy but what's written doesn't help me figure out what to do.

the CMake policy warnings are not the reason your build fails. The actual error is:

CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2
JAVA_AWT_INCLUDE_PATH)
Call Stack (most recent call first):
/usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.16/Modules/FindJNI.cmake:372 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
src/CMakeLists.txt:1130 (find_package)root@debiantestingtestbed:/tinyspline/build# cmake --build .
gmake: *** No targets specified and no makefile found. Stop.
root@debiantestingtestbed:/tinyspline/build#

You are trying to build the Java interface but CMake cannot find the required include paths (JAVA_INCLUDE_PATH, JAVA_INCLUDE_PATH2, and JAVA_AWT_INCLUDE_PATH).

@dabeegmon
Copy link
Author

dabeegmon commented Nov 13, 2020 via email

@msteinbeck
Copy link
Owner

The Java interface is enabled only if TINYSPLINE_ENABLE_JAVA is enabled, i.e., set to True, On etc.

@msteinbeck
Copy link
Owner

Maybe you enabled this option as follows:

cmake -DTINYSPLINE_ENABLE_JAVA=True ..

@msteinbeck
Copy link
Owner

FYI: I removed the CMake policy warnings with bbdc511.

@dabeegmon
Copy link
Author

dabeegmon commented Nov 13, 2020 via email

@msteinbeck
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants