You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Swig wrappers can't be compiled right now because the link to CRFPP::Model::get_template is missing. Here's what happens when you run make in the java directory:
c++ -O3 -c -fpic CRFPP_wrap.cxx -I/usr/lib/jvm/oracle-jdk-bin-1.8/include/ -I/usr/lib/jvm/oracle-jdk-bin-1.8/include/linux
CRFPP_wrap.cxx: In function ‘_jstring* Java_org_chasen_crfpp_CRFPPJNI_Model_1getTemplate(JNIEnv*, jclass, jlong, jobject)’:
CRFPP_wrap.cxx:311:54: error: ‘const class CRFPP::Model’ has no member named ‘getTemplate’
Makefile:14: recipe for target 'all' failed
make: *** [all] Error 1
The text was updated successfully, but these errors were encountered:
I'm reopening this because the problem persists on Linux with the latest version of Swig (3.0.8). The problem did not occur on Windows with the same version.
garfieldnate
changed the title
missing get_template prevents compilation of swig wrappers
Compilation of swig wrappers requires installation of library
Feb 19, 2016
I realized the (very silly) problem, which was that I had not installed the library, and the makefile requires it. I don't think installation should be required, since the result of this compilation is also a portable library, and the user may just want the library without installing anything.
The Swig wrappers can't be compiled right now because the link to
CRFPP::Model::get_template
is missing. Here's what happens when you runmake
in the java directory:The text was updated successfully, but these errors were encountered: