Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error Linking VOCE library in Qt

Error Linking VOCE library in Qt

Scheduled Pinned Locked Moved Installation and Deployment
1 Posts 0 Posters 862 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? This user is from outside of this forum
    ? This user is from outside of this forum
    Guest
    wrote on last edited by
    #1

    I am trying to use the C++ version of VOCE voice recognition API. It is an API built in Java, with support to C++ as well.

    It works totally fine when I am working with VC2010. In vc2010 I have put all the necessary include files in the Vc++ Directories->Include Directories, and the library D:\Program Files\Java\jdk1.7.0_45\lib in Linker->Additional Library Directories, and i added jvm.lib in *Linker->input * And everything works great

    However, whenever I am trying to execute it in Qt, I am getting the error:

    @thread.obj:-1: error: LNK2019: unresolved external symbol __imp__JNI_CreateJavaVM@12 referenced in function "void __cdecl voce::init(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool,bool,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?init@voce@@YAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@_N100@Z)
    @

    This is my .pro content:

    @QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = ProjectX
    TEMPLATE = app

    INCLUDEPATH += D:\boost_1_55_0
    D:\voce-0.9.1\src\c++
    "D:\Program Files\Java\jdk1.7.0_45\include"
    "D:\Program Files\Java\jdk1.7.0_45\include\win32"

    LIBS += -LD:\boost_1_55_0\stage\lib
    -L"D:\Program Files\Java\jdk1.7.0_45\lib"
    @

    How can I get rid of this error? I am using QT, the latest version which use the Visual c++ 2010 compiler.

    Please help!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved