Как исправить ошибку cmake при попытке установить portmidi?

Я следую инструкциям по установке portmidi в Ubuntu 18.04

README_LINUX.txt for PortMidi
Roger Dannenberg
14 Oct 2009

To make PortMidi, you need cmake and the Java SDK.
Go back up to the portmidi directory and type:

ccmake .

Type 'c' (configure) and then 'g' (generate). You may have
to manually set JAVA_INCLUDE_PATH and JAVA_JVM_LIBRARY
by typing 't' (toggle to advanced mode) and using the 
editor to change the fields. You can find possible values
for JAVA_INCLUDE_PATH by typing "locate jni.h", and for
JAVA_JVM_LIBRARY by typing locate libjvm".

You also need JAVA_INCLUDE_PATH2, but this will normally
be set automatically after you set JAVA_INCLUDE_PATH and
run "configure" (type "c" to ccmake). Normally,
JAVA_INCLUDE_PATH2 is the linux subdirectory within
JAVA_INCLUDE_PATH.

, но я получаю сообщение об ошибке

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)

Я попытался установить Java с помощью sudo apt install default-jre и установить переменную JAVA_HOME с export JAVA_HOME=/usr/bin/java

, но я все еще получаю эту ошибку

0
задан 27 April 2019 в 18:02

0 ответов

Другие вопросы по тегам:

Похожие вопросы: