If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: How to Setup VOCE (Voice Recognition API) C++

You're also supposed to give the name of the library to the linker, not just give the path where libraries are found. Nowhere in your description of what you did says anything about giving the name of the library to the linker.

Re: How to Setup VOCE (Voice Recognition API) C++

Originally Posted by Paul McKenzie

You're also supposed to give the name of the library to the linker, not just give the path where libraries are found. Nowhere in your description of what you did says anything about giving the name of the library to the linker.

And what if in your source code, you never #included any of the files that are associated with VOCE? See the similarities? If you just give an #include path and never actually state in your source code to #include a file that is needed, you get a compiler error. Same here -- you never stated to the linker what library you want to link -- you only gave the path to where the library files are found.

Re: How to Setup VOCE (Voice Recognition API) C++

So how is the linker to know the name of the library it needs to open, find your functions, and link? A directory isn't going to give that information.

Linker->Input->Additional Dependencies

There is where you give the name of the library.
And what if in your source code, you never #included any of the files that are associated with VOCE? See the similarities? If you just give an #include path and never actually state in your source code to #include a file that is needed, you get a compiler error. Same here -- you never stated to the linker what library you want to link -- you only gave the path to where the library files are found.

Regards,

Paul McKenzie

I did what you said. I put: (C:\voce-0.9.1\src\c++, C:\Program Files\Java\jdk1.7.0_45\include, C:\Program Files\Java\jdk1.7.0_45\include\win32) in
Linker -> Additional library directories and it still not working.
):
What about: "I didn't get what i suppose to do with C:\voce-0.9.1\lib everything there is winrars"
I really appreciate your help, thank you!

Re: How to Setup VOCE (Voice Recognition API) C++

Originally Posted by robi9011235

I did what you said. I put: (C:\voce-0.9.1\src\c++, C:\Program Files\Java\jdk1.7.0_45\include, C:\Program Files\Java\jdk1.7.0_45\include\win32) in
Linker -> Additional library directories and it still not working.
):
What about: "I didn't get what i suppose to do with C:\voce-0.9.1\lib everything there is winrars"
I really appreciate your help, thank you!

That's not what he said. He said you need to tell it specifically which .lib files.

Re: How to Setup VOCE (Voice Recognition API) C++

I'm having exactly the same issue. I have no experience with JNI.
Following the above steps, I have managed to reach the point that jvm.dll is needed.
I copied inside the folder where the .exe file is, but now I get the message that JVM cannot be initialized.
Any thoughts?