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

When Building Snips NLU, crfsuite is missing #25

Open
utkarshx opened this issue Aug 17, 2020 · 0 comments
Open

When Building Snips NLU, crfsuite is missing #25

utkarshx opened this issue Aug 17, 2020 · 0 comments

Comments

@utkarshx
Copy link

While building snips, it is showing the following error message. I tried putting extern also but no help.

error[E0432]: unresolved import crfsuite_sys::crfsuite_create_instance_from_memory
--> /home/utkarsh/.cargo/git/checkouts/crfsuite-rs-f6b1ef64eb0006ea/8ade2f8/src/lib.rs:12:5
|
12 | use crfsuite_sys::crfsuite_create_instance_from_memory;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no crfsuite_create_instance_from_memory in the root

error[E0425]: cannot find function crfsuite_instance_init_n in crate crfsuite_sys
--> /home/utkarsh/.cargo/git/checkouts/crfsuite-rs-f6b1ef64eb0006ea/8ade2f8/src/lib.rs:140:27
|
140 | crfsuite_sys::crfsuite_instance_init_n(&mut inst, input.len() as libc::c_int);
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in crfsuite_sys

error[E0412]: cannot find type c_int in crate libc
--> /home/utkarsh/.cargo/git/checkouts/crfsuite-rs-f6b1ef64eb0006ea/8ade2f8/src/lib.rs:140:84
|
140 | crfsuite_sys::crfsuite_instance_init_n(&mut inst, input.len() as libc::c_int);
| ^^^^^ not found in libc
|
help: consider importing this type alias
|
1 | use std::os::raw::c_int;
|

error[E0425]: cannot find function crfsuite_item_init in crate crfsuite_sys
--> /home/utkarsh/.cargo/git/checkouts/crfsuite-rs-f6b1ef64eb0006ea/8ade2f8/src/lib.rs:148:36
|
148 | unsafe { crfsuite_sys::crfsuite_item_init(inst_item) };
| ^^^^^^^^^^^^^^^^^^ not found in crfsuite_sys

error[E0425]: cannot find function crfsuite_attribute_set in crate crfsuite_sys
--> /home/utkarsh/.cargo/git/checkouts/crfsuite-rs-f6b1ef64eb0006ea/8ade2f8/src/lib.rs:157:39
|
157 | crfsuite_sys::crfsuite_attribute_set(cont, aid, inner_item.get_value())
| ^^^^^^^^^^^^^^^^^^^^^^ not found in crfsuite_sys

error[E0425]: cannot find function crfsuite_item_append_attribute in crate crfsuite_sys
--> /home/utkarsh/.cargo/git/checkouts/crfsuite-rs-f6b1ef64eb0006ea/8ade2f8/src/lib.rs:159:44
|
159 | unsafe { crfsuite_sys::crfsuite_item_append_attribute(inst_item, cont) };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in crfsuite_sys

error[E0425]: cannot find function crfsuite_instance_finish in crate crfsuite_sys
--> /home/utkarsh/.cargo/git/checkouts/crfsuite-rs-f6b1ef64eb0006ea/8ade2f8/src/lib.rs:170:31
|
170 | crfsuite_sys::crfsuite_instance_finish(&mut inst);
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in crfsuite_sys

error[E0425]: cannot find function crfsuite_instance_finish in crate crfsuite_sys
--> /home/utkarsh/.cargo/git/checkouts/crfsuite-rs-f6b1ef64eb0006ea/8ade2f8/src/lib.rs:176:27
|
176 | crfsuite_sys::crfsuite_instance_finish(&mut inst);
| ^^^^^^^^^^^^^^^^^^^^^^^^ not found in crfsuite_sys

error: aborting due to 8 previous errors

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