Git Product home page Git Product logo

cef-rs's Issues

cef::initialize(&args, &settings, Some(app)) = false

When I run demo, I get the following error

[examples/demo.rs:45:5] cef::initialize(&args, &settings, Some(app)) = false
[examples/demo.rs:46:5] cef::execute_process(&args, Some(app)) = -1
[examples/demo.rs:53:24] cef::create_browser_view(Some(client), url, browser_settings) = BrowserView(
    RefGuard {
        object: 0x0000000000000000,
    },
)

cannot find -lcef

When I try to run demo, I get the following error

LD_LIBRARY_PATH=~/.local/share/cef cargo r --example demo
   Compiling cef v117.2.6 (/home/yeauty/cef-rs)
warning: unused variable: `view`
  --> examples/demo.rs:22:37
   |
22 |     fn on_child_view_changed(&self, view: cef::View, _added: bool, _child: cef::View) {
   |                                     ^^^^ help: if this is intentional, prefix it with an underscore: `_view`
   |
   = note: `#[warn(unused_variables)]` on by default

error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/yeauty/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustcBjvw5Z/symbols.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.18p53d4h2ptj4u82.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.1ayshqnbljvhbbj3.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.1gfkv62qvls1psx7.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.1i35pyic8a7nt9m7.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.1idq1v1783k6qs4s.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.1karitxjr2chukyt.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.1kgf4d3utpfvc0kx.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.1qddda3swoqefua4.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.2222fv5k06w1efgi.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.24nah0l800w7f1ou.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.2dwij1anasd5vxic.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.2dypv65wdj3w487z.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.2smdy4kg3c6powpy.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.2sxoynrlklb326y4.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.39siaeudk9t9qe11.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.3dfnrl5zubg8bggw.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.3gnzu3b507xvo2h7.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.3jqvcm51yipeaj8q.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.3mwhyz9r2gd5ncby.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.3n7drut0ztmd5gk7.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.3nqv8tmteql4mvd9.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.3of7o8ga6e4jw7k7.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.3qu4qg2c5ifwcft5.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.3z1cla20sjodzgf4.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.4azu6fb6y7uiz5rr.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.4cjlz25zzkt14n2u.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.4l6cqjeopot5rv34.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.4nzp1qdy2r4a60j1.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.4p6paipkwkpavyd1.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.4srs7ckoa9izzdy7.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.5089z58de8stfcyx.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.54f4p4mttbqg84mb.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.58c413qy23c5upyi.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.5g32qy4f0uz6loni.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.79hpcce8vpx2ms4.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.9mzcltqile51s42.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.h5zzejyiu2omhwl.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.hwot6ujifjge1gz.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.njl3awyfw47ztkm.rcgu.o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420.g8rjcwlb1x115li.rcgu.o" "-Wl,--as-needed" "-L" "/home/yeauty/cef-rs/target/debug/deps" "-L" "/home/yeauty/.local/share/cef" "-L" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/yeauty/cef-rs/target/debug/deps/libcef-c23f1ce32c081f6f.rlib" "/home/yeauty/cef-rs/target/debug/deps/libwidestring-40f2ac907034b270.rlib" "/home/yeauty/cef-rs/target/debug/deps/libcef_sys-c1c2b7530da4356e.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-320ebc7037fb8f95.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-5c5363659220970d.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-bec15aa2c4312c4c.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-fe71d6e60bf77974.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-0f5608a77595bf7e.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-b8b7c25fe3bad107.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-0f75b33b546e9dfc.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-2c2d79a7fce0ec84.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-d29140320fecac62.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-9274a8eb44eefdb5.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-4c1e8c7ac02fe45d.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-0f62d6b334d8a8b9.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-56f5161b8051bb71.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-659f33ab33d4b7a0.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-194ca45e594e82cf.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-8de8e7171366ad5b.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-dd54ac19f2116694.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-7466f872aeeff38e.rlib" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-9886ca42a5954174.rlib" "-Wl,-Bdynamic" "-lcef" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/yeauty/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/yeauty/cef-rs/target/debug/examples/demo-89d6cca9f26f3420" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: /usr/bin/ld: cannot find -lcef
          collect2: error: ld returned 1 exit status


warning: `cef` (example "demo") generated 1 warning
error: could not compile `cef` (example "demo") due to 1 previous error; 1 warning emitted

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.