我正在尝试安装portmidi库:http://sourceforge.net/apps/trac/portmedia/wiki/Installing%20portmidi%20on%20Linux
我已经按照说明进行操作,但是当我执行“make”操作时,会在下面收到此消息。我尝试了不同的Javapath,我不知道现在是否正确。有人可以告诉我这里出了什么问题吗?
natanael@natanael-iMac:~/workspace/portmidi$ make
-- JAVA_JVM_LIB_PATH is
-- JAVA_INCLUDE_PATH is /usr/lib/jvm/java-6-openjdk/include
-- JAVA_INCLUDE_PATH2 is /usr/lib/jvm/java-6-openjdk/include/linux
-- JAVA_JVM_LIBRARY is /usr/lib/jvm/java-6-openjdk/jre/lib/i386/client/libjvm.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/natanael/workspace/portmidi
[ 93%] Built target pmjni
[ 93%] Built target portmidi-static
[ 93%] Built target latency
[ 93%] Built target midiclock
[ 93%] Built target midithread
[ 93%] Built target midithru
[ 93%] Built target mm
[ 93%] Built target qtest
[ 93%] Built target sysex
[ 93%] Built target test
[ 93%] Built target portmidi-dynamic
[ 93%] Generating pmdefaults/PmDefaults.class
/bin/sh: 1: cd: can't cd to /home/natanael/workspace/portmidi/pm_java/pm_java
make[2]: *** [pm_java/pmdefaults/PmDefaults.class] Fehler 2
make[1]: *** [pm_java/CMakeFiles/pmdefaults_target.dir/all] Fehler 2
make: *** [all] Fehler 2
natanael@natanael-iMac:~/workspace/portmidi$
谢谢 !
最佳答案
显然,由Makefile
生成的ccmake
之一被破坏了。我可以通过运行来解决此问题
sed -i 's/pm_java\/pm_java/pm_java/' build.make
运行
pm_java/CMakeFiles/pmdefaults_target.dir/
后,在项目的ccmake .
子目录中(尽管在Ubuntu上)。 (sed
命令将所有出现的pm_java/pm_java
替换为pm_java
。)一切都会编译,我什至可以使用以下命令从
pmdefaults
目录运行Release
java -Djava.library.path=. -jar pmdefaults.jar