msteinbeck / tinyspline

ANSI C library for NURBS, B-Splines, and Bézier curves with interfaces for C++, C#, D, Go, Java, Javascript, Lua, Octave, PHP, Python, R, and Ruby.
MIT License
1.18k stars 204 forks source link

errors when attempting to install tinyspine #170

Closed dabeegmon closed 3 years ago

dabeegmon commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

On Fri, Nov 13, 2020 at 3:08 PM Marcel Steinbeck notifications@github.com wrote:

Hi @dabeegmon https://github.com/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).

So - - - if I don't care if java is usable then how do I point the software to ignore it- - - please?

Regards

msteinbeck commented 3 years ago

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

msteinbeck commented 3 years ago

Maybe you enabled this option as follows:

cmake -DTINYSPLINE_ENABLE_JAVA=True ..
msteinbeck commented 3 years ago

FYI: I removed the CMake policy warnings with bbdc511.

dabeegmon commented 3 years ago

On Fri, Nov 13, 2020 at 4:56 PM Marcel Steinbeck notifications@github.com wrote:

FYI: I removed the CMake policy warnings with bbdc511 https://github.com/msteinbeck/tinyspline/commit/bbdc51120c16899b52c0ce55f9a6802d84c642e0 .

Thank you very much! I used rm -r and dumped existing tinyspline next used git to clone the new version works!!!!!!!!!!!

Now if I could only get LibreCad3 to install. Its puking the same warning!!!!!!!!!!!!!!!!

Regards

msteinbeck commented 3 years ago

See https://github.com/LibreCAD/LibreCAD_3/issues/363#issuecomment-727173669.