c ++,Voce - 如何编译项目?

时间:2016-03-17 18:38:04

标签: c++ linux

我的问题是我想尝试Voce,但是我无法启动示例程序。我不得不调整很多东西,因为我可以看到我和Voce之间唯一剩下的障碍是以下错误(希望如此): 每当我编译示例程序时,它都会成功编译,但是当我想启动它时,它会给我以下错误:

[Voce] Java virtual machine created
[Voce ERROR] The requested Java class: voce/SpeechInterface could not be found.  Make sure the class path correctly points to the Voce classes.
This is a speech recognition test. Speak digits from 0-9 into the microphone. Speak 'quit' to quit.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f0824ffcbd2, pid=7537, tid=139672968279936
#
# JRE version: OpenJDK Runtime Environment (8.0_72-b15) (build 1.8.0_72-internal-b15)
# Java VM: OpenJDK 64-Bit Server VM (25.72-b15 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# V  [libjvm.so+0x651bd2]
#
# Core dump written. Default location: /home/username/testAudio/folder/core or core.7537
#
# An error report file with more information is saved as:
# /home/username/testAudio/folder/enter code herehs_err_pid7537.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
#

这是整个输出。

更多信息:我正在使用Kubuntu作为操作系统(基本上是Linux)。

提前谢谢!

1 个答案:

答案 0 :(得分:0)

与此同时,我能够解决这个问题。 如果有人遇到同样的问题,我会发布解决方案: 我只需编辑cpp文件以匹配lib文件夹的位置,因为我的程序无法找到它。