PortMidi / portmidi

portmidi is a cross-platform MIDI input/output library
Other
116 stars 31 forks source link

build fails without Java #5

Closed Be-ing closed 2 years ago

Be-ing commented 2 years ago
portmidi on  HEAD (ddabfca) [$] via △ v3.22.0 
❯ cmake -D CMAKE_EXPORT_COMPILE_COMMANDS=ON -D CMAKE_PREFIX_PATH=/home/be/local -D CMAKE_INSTALL_PREFIX=/home/be/local -D CMAKE_BUILD_TYPE=Debug -S . -B build
CMake Deprecation Warning at CMakeLists.txt:5 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- The C compiler identification is GNU 11.2.1
-- The CXX compiler identification is GNU 11.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
-- JAVA_JVM_LIB_PATH is 
-- JAVA_INCLUDE_PATH is JAVA_INCLUDE_PATH-NOTFOUND
-- JAVA_INCLUDE_PATH2 is JAVA_INCLUDE_PATH2-NOTFOUND
-- JAVA_JVM_LIBRARY is /usr/lib/jvm/jre/lib/server/libjvm.so
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH) 
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
JAVA_INCLUDE_PATH (ADVANCED)
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
JAVA_INCLUDE_PATH2 (ADVANCED)
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common
   used as include directory in directory /home/be/sw/portmidi/pm_common

CMake Warning (dev) at pm_common/CMakeLists.txt:108 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/pm_linux/pmlinuxalsa.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_common/CMakeLists.txt:108 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/pm_linux/pmlinux.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_common/CMakeLists.txt:108 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/pm_linux/finddefault.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_common/CMakeLists.txt:108 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/porttime/ptlinux.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_common/CMakeLists.txt:108 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/pm_common/pmutil.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_common/CMakeLists.txt:108 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/pm_common/portmidi.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_dylib/CMakeLists.txt:116 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/pm_linux/pmlinuxalsa.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_dylib/CMakeLists.txt:116 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/pm_linux/pmlinux.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_dylib/CMakeLists.txt:116 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/pm_linux/finddefault.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_dylib/CMakeLists.txt:116 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/porttime/ptlinux.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_dylib/CMakeLists.txt:116 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/pm_common/pmutil.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at pm_dylib/CMakeLists.txt:116 (add_library):
  Policy CMP0115 is not set: Source file extensions must be explicit.  Run
  "cmake --help-policy CMP0115" for policy details.  Use the cmake_policy
  command to set the policy and suppress this warning.

  File:

    /home/be/sw/portmidi/pm_common/portmidi.c
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in pm_common/CMakeLists.txt:
  Policy CMP0021 is not set: Fatal error on relative paths in
  INCLUDE_DIRECTORIES target property.  Run "cmake --help-policy CMP0021" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  Found relative path while evaluating include directories of
  "portmidi-static":

    "JAVA_INCLUDE_PATH-NOTFOUND"

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in pm_common/CMakeLists.txt:
  Policy CMP0021 is not set: Fatal error on relative paths in
  INCLUDE_DIRECTORIES target property.  Run "cmake --help-policy CMP0021" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  Found relative path while evaluating include directories of
  "portmidi-static":

    "JAVA_INCLUDE_PATH2-NOTFOUND"

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in pm_common/CMakeLists.txt:
  Policy CMP0021 is not set: Fatal error on relative paths in
  INCLUDE_DIRECTORIES target property.  Run "cmake --help-policy CMP0021" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  Found relative path while evaluating include directories of "pmjni":

    "JAVA_INCLUDE_PATH-NOTFOUND"

This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in pm_common/CMakeLists.txt:
  Policy CMP0021 is not set: Fatal error on relative paths in
  INCLUDE_DIRECTORIES target property.  Run "cmake --help-policy CMP0021" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.

  Found relative path while evaluating include directories of "pmjni":

    "JAVA_INCLUDE_PATH2-NOTFOUND"

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Generating done
CMake Warning (dev):
  Policy CMP0058 is not set: Ninja requires custom command byproducts to be
  explicit.  Run "cmake --help-policy CMP0058" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

  This project specifies custom command DEPENDS on files in the build tree
  that are not specified as the OUTPUT or BYPRODUCTS of any
  add_custom_command or add_custom_target:

   pm_java/jportmidi/JPortMidi.class
   pm_java/jportmidi/JPortMidiApi.class
   pm_java/jportmidi/JPortMidiException.class

  For compatibility with versions of CMake that did not have the BYPRODUCTS
  option, CMake is generating phony rules for such files to convince 'ninja'
  to build.

  Project authors should add the missing BYPRODUCTS or OUTPUT options to the
  custom commands that produce these files.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Generate step failed.  Build files cannot be regenerated correctly.
Be-ing commented 2 years ago

My bad, I checked out the master branch of the wrong remote... hard to keep track of them since the remote has changed multiple times.