2013-01-02 83 views
2

我試圖安裝portmidi庫:http://sourceforge.net/apps/trac/portmedia/wiki/Installing%20portmidi%20on%20Linux安裝portmidi庫

我也跟着指示,但是當我做「讓」,下面我得到這個消息。我嘗試過不同的Javapaths,我不知道它現在是否正確。有人能告訴我這裏出了什麼問題嗎?

[email protected]:~/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 
[email protected]:~/workspace/portmidi$ 

謝謝!

+0

恰好碰到了同樣的問題,請從Release目錄pmdefaults。感謝發佈! – krlmlr

回答

1

顯然,由ccmake生成的Makefile之一被破壞。我可以通過運行

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所有出現。)

編譯的一切,我甚至可以用

java -Djava.library.path=. -jar pmdefaults.jar 
+0

這也適用於Debian的「wheezy」發行版。 – aoeu