gpt4 book ai didi

java - 安装 portmidi 库

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:54:11 24 4
gpt4 key购买 nike

我正在尝试安装 portmidi 库:http://sourceforge.net/apps/trac/portmedia/wiki/Installing%20portmidi%20on%20Linux

我已按照说明进行操作,但是当我执行“make”时,我在下面收到此消息。我尝试过不同的 Javapaths,我不知道现在是否合适。有人能告诉我这里出了什么问题吗?

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$

谢谢!

最佳答案

显然,由 ccmake 生成的 Makefile 之一已损坏。我能够通过运行来解决问题

sed -i 's/pm_java\/pm_java/pm_java/' build.make

在项目的 pm_java/CMakeFiles/pmdefaults_target.dir/ 子目录中 after 运行 ccmake .(不过在 Ubuntu 上)。 (sed 命令将所有出现的 pm_java/pm_java 替换为 pm_java。)

一切都会编译,我什至可以使用 Release 目录运行 pmdefaults

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

关于java - 安装 portmidi 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14127821/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com