Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation of swig wrappers requires installation of library #23

Open
garfieldnate opened this issue Feb 12, 2016 · 3 comments
Open

Compilation of swig wrappers requires installation of library #23

garfieldnate opened this issue Feb 12, 2016 · 3 comments

Comments

@garfieldnate
Copy link

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
@garfieldnate
Copy link
Author

This was a problem with Swig. I was using an outdated version, and using the latest solved the problem.

@garfieldnate
Copy link
Author

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 garfieldnate reopened this Feb 18, 2016
@garfieldnate garfieldnate changed the title missing get_template prevents compilation of swig wrappers Compilation of swig wrappers requires installation of library Feb 19, 2016
@garfieldnate
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant