Skip to content

desktop support for freebsd #2701

@yurivict

Description

@yurivict

Build fails:

error[E0425]: cannot find function `init` in crate `lb_pdf`
  --> libs/content/workspace/src/tab/pdf_viewer.rs:58:30
   |
58 |         let pdfium = lb_pdf::init(&pdfium_binary_path);
   |                              ^^^^ not found in `lb_pdf`
   |
note: found an item that was configured out
  --> /usr/ports/deskutils/lockbook/work/lb-pdf-220d771d43d682c646e5110506224ddc7a7b1448/src/lib.rs:4:8
   |
4  | pub fn init(_statically_linked: &str) -> Pdfium {
   |        ^^^^
   = note: the item is gated behind the `apple` feature
note: found an item that was configured out
  --> /usr/ports/deskutils/lockbook/work/lb-pdf-220d771d43d682c646e5110506224ddc7a7b1448/src/lib.rs:26:8
   |
26 | pub fn init(binary_folder: &String) -> Pdfium {
   |        ^^^^
note: found an item that was configured out
  --> /usr/ports/deskutils/lockbook/work/lb-pdf-220d771d43d682c646e5110506224ddc7a7b1448/src/lib.rs:33:8
   |
33 | pub fn init(binary_folder: &String) -> Pdfium {
   |        ^^^^
note: found an item that was configured out
  --> /usr/ports/deskutils/lockbook/work/lb-pdf-220d771d43d682c646e5110506224ddc7a7b1448/src/lib.rs:40:8
   |
40 | pub fn init(binary_folder: &String) -> Pdfium {
   |        ^^^^
   = note: the item is gated behind the `linux` feature
note: found an item that was configured out
  --> /usr/ports/deskutils/lockbook/work/lb-pdf-220d771d43d682c646e5110506224ddc7a7b1448/src/lib.rs:47:8
   |
47 | pub fn init(binary_folder: &String) -> Pdfium {
   |        ^^^^
   = note: the item is gated behind the `android` feature
help: consider importing one of these items
   |
1  + use crate::theme::visuals::init;
   |
1  + use lb_rs::service::log_service::init;
   |
help: if you import `init`, refer to it directly
   |
58 -         let pdfium = lb_pdf::init(&pdfium_binary_path);
58 +         let pdfium = init(&pdfium_binary_path);
   |

Version: 0.9.3
rust: 1.79.0
FreeBSD 14.1

Metadata

Metadata

Assignees

Labels

eguiUI shared by Linux and Windows clientsgood first issuesee docs/CONTRIBUTING.mdrequestchange requested by a user

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions