Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Doesn't compile on Debian #42

Open
IoaNNUwU opened this issue Sep 26, 2023 · 1 comment
Open

Doesn't compile on Debian #42

IoaNNUwU opened this issue Sep 26, 2023 · 1 comment

Comments

@IoaNNUwU
Copy link

Hi, I'm unable to compile example plugins on Debian 12.

image

Full compiler output ~/rust/rust-obs-plugins/plugins/scroll-focus-filter $ cargo build

Compiling libc v0.2.148
Compiling memchr v2.6.3
Compiling proc-macro2 v1.0.67
Compiling unicode-ident v1.0.12
Compiling glob v0.3.1
Compiling autocfg v1.1.0
Compiling prettyplease v0.2.15
Compiling rustix v0.38.14
Compiling lazy_static v1.4.0
Compiling linux-raw-sys v0.4.7
Compiling cfg-if v1.0.0
Compiling regex-syntax v0.7.5
Compiling log v0.4.20
Compiling bitflags v2.4.0
Compiling minimal-lexical v0.2.1
Compiling libloading v0.7.4
Compiling bindgen v0.65.1
Compiling either v1.9.0
Compiling home v0.5.5
Compiling lazycell v1.3.0
Compiling proc-macro-hack v0.5.20+deprecated
Compiling rustc-hash v1.1.0
Compiling peeking_take_while v0.1.2
Compiling shlex v1.2.0
Compiling clang-sys v1.6.1
Compiling bitflags v1.3.2
Compiling serde v1.0.188
Compiling num-traits v0.2.16
Compiling crossbeam-utils v0.7.2
Compiling serde_json v1.0.107
Compiling maybe-uninit v2.0.0
Compiling aho-corasick v1.1.1
Compiling nom v7.1.3
Compiling quote v1.0.33
Compiling cfg-if v0.1.10
Compiling syn v2.0.37
Compiling ryu v1.0.15
Compiling itoa v1.0.9
Compiling crossbeam-channel v0.4.4
Compiling paste-impl v0.1.18
Compiling xcb v0.9.0
Compiling regex-automata v0.3.8
Compiling paste v0.1.18
Compiling which v4.4.2
Compiling cexpr v0.6.0
Compiling regex v1.9.5
Compiling obs-sys v0.3.0 (/home/ioann/rust/rust-obs-plugins/obs-sys)
Compiling xcb-util v0.3.0
warning: Could not find obs headers - using pre-compiled.
warning: This could result in a library that doesn't work.
Compiling obs-wrapper v0.4.1 (/home/ioann/rust/rust-obs-plugins)
Compiling scroll-focus-filter v0.1.0 (/home/ioann/rust/rust-obs-plugins/plugins/scroll-focus-filter)
error: linking with cc failed: exit status: 1
|
= note: LC_ALL="C" PATH="/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/ioann/.cargo/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" VSLANG="1033" "cc" "-Wl,--version-script=/tmp/rustcYnz5nJ/list" "-Wl,--no-undefined-version" "-m64" "/tmp/rustcYnz5nJ/symbols.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.120dlw301pgb49uf.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.15iwwukc14eicjce.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.16r20jvizd9h9lre.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1b33qx4axuhh6g16.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1cup3i7hxzl8l1ir.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1dh8tpdxmuh85t9i.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1f9u6zb42b995u0p.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1ipv3gvla9papubq.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1l7jg3ayiwuarb1q.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1nijg87i0vyrdy7x.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1ose2g40k1sl88r3.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1pjd6sxj6qmbpmfc.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1q0g9i5ncfk2vr07.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1qb1g2nj7rth94lw.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1vbcs4stdwt99ypm.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1yayul1o081po5il.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1ybxiyws5v0fnbir.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.212cekp0yvbc252v.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.21nh6xgs4x6xcwoy.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.220e8eai8cqemz95.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.22n7am67nxrihzl7.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.22p4l61mym6cnhc0.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.29goh8b4vknv1ax5.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2b77tlsk77ihj3il.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2bnlshp0ybu6x4k7.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2dch6okose12axhz.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2g9hcrci0bbr7cx5.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2gjxjy2lqajjhr5l.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2hmfg4b1sgwxojwx.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2m9ujbom6pz8fhb7.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2mm36c6vygdb98vp.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2py2w07vw1kj43ry.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2s2rao47bmcu20vy.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2t1vffmz15744fqd.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2u2nb00yzq0ah73k.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2ywjpnee0dsszaua.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.2zwi2ikwbtp1kt04.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.306mxgfz1oqr64mj.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3441xv357noy53dw.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3fx8xarwqm0mlc6c.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3ni3zkmn7au58wz1.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3o36ku0ycmouaf3.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3ojkb76gyqqvznfu.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3pe6z9fznv7zwou5.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3q14310fbynoyluk.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3qczjpatj07h4udu.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3tucysc65l6jb4yq.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3uutt8bwh1sjy89q.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3v867h60is2w93jd.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3ytt1ffibcocx10l.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3z49eu0dm3pxy6f8.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.3zam25l305hg60cf.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.43y3pt22pnf43h23.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.44ezsxsyzg2gumry.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.45wpdrcg3qow0b1v.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.461pwpl0x0eobqzw.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.46fn25g079dyy7h.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.490e9b3gy8uauv1l.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.49jr0s3qnozlstrs.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4eouhyu68mpbdooi.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4fuqmlrf23ub8ew0.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4fz102kywycrp29q.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4gc3qldxqwwyr15d.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4gfltwcyjou2xjp5.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4hbvua3xrb1f5mo9.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4i3x21wgk39noskm.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4lmfvfavpd8uuj5v.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4mmhce1jgcv1vr2w.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4qa6rive40yj9s6y.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4rukwgo9jxklpcik.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4thfr97somre3p2i.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4v5z27stov8vc5kf.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4yza5hosq4fiw2qv.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.4z6nad5vhpgz5f1w.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.51s0g7abc9pb1hsj.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.51vld3y7bgjknl26.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.533g83n613m9bhts.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.54b2z9m4ugv3vw56.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.54zl7m3o2tzjsp1f.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.5bmwm36fa6p24bwt.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.5cfd3mou4kl431qg.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.5crazg8pq98libic.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.6gp94jd80gmf39l.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.753wzgszvtk1vo4.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.91gk2lsywad7lsh.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.9rro2ffj2g2w5mr.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.asl9tk97duz0r5s.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.e4dk2fcl280t7ej.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.g8qmhke3nbohr0k.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.irq382awwlmfrcm.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.ktx5mmmw9t59mpm.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.kys2dhnqlve5nh7.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.ld7iacze3yjmcmq.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.m5plceaa5x7cb3n.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.n5za2h0ed5es9rk.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.oa07ejhqmfyet0n.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.obm8w6qdmkhzfhc.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.qe99jpvdp84x03j.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.r2bzavitg7phhr3.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.rfm5mevs7y7hp4v.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.y3n39dpsrichrvd.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.ysxb76sqkho8bav.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.zdgng2ha26owqxq.rcgu.o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/scrollfocus.1juk520oraorvd46.rcgu.o" "-Wl,--as-needed" "-L" "/home/ioann/rust/rust-obs-plugins/target/debug/deps" "-L" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libcrossbeam_channel-16895e261db507e3.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libmaybe_uninit-32ef4f3e28d77828.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libcrossbeam_utils-02284e1e82422f37.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/liblazy_static-ea967ec45ae077a3.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libcfg_if-747b03c4ddc718bc.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libobs_wrapper-59a2383c71852763.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libnum_traits-9b4795cefd04bea4.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libpaste-0874ca32b194aade.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libobs_sys-6a142e14287b35ea.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libxcb_util-e7f0ad1d62ef8961.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libxcb-75f040a999ee2580.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/liblog-bdcf9f693d28b597.rlib" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/liblibc-aacc4d374f09b581.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-b850d2b001350814.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-a3d926e3ce38f6cc.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-0a660adf51e0d01c.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-49252de8bfa771e2.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-6f52a21444f37c70.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-57e8575f0ca731a2.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-da4065b9a8ae7be4.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-1ad47776352198ff.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-7075f8a8dc932a7c.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-a494eb4ddbb000f0.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-672778ed8628861b.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-9bba1c59dcc21440.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-b9849fb628ce12eb.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-0ea4fcc08eb96f77.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-a8ba743c059cc198.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-e4195ee2443e1656.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-04991604e2730fd6.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-f02db372677d4667.rlib" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-448eba810c83029d.rlib" "-Wl,-Bdynamic" "-lobs" "-lobs-frontend-api" "-lxcb-ewmh" "-lxcb" "-lxcb-randr" "-lxcb-render" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/ioann/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/ioann/rust/rust-obs-plugins/target/debug/deps/libscrollfocus.so" "-Wl,--gc-sections" "-shared" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
= note: /usr/bin/ld: cannot find -lobs: No such file or directory
/usr/bin/ld: cannot find -lobs-frontend-api: No such file or directory
/usr/bin/ld: cannot find -lxcb-ewmh: No such file or directory
/usr/bin/ld: cannot find -lxcb: No such file or directory
/usr/bin/ld: cannot find -lxcb-randr: No such file or directory
/usr/bin/ld: cannot find -lxcb-render: No such file or directory
collect2: error: ld returned 1 exit status

error: could not compile scroll-focus-filter (lib) due to previous error

The issue is that ld cannot link obs & xcb libraries. But ldconfig -p shows they are present:

sudo ldconfig -p | grep obs
    libobsglad.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libobsglad.so.1
libobs.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libobs.so.0
libobs-scripting.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libobs-scripting.so.1
libobs-opengl.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libobs-opengl.so.1
libobs-frontend-api.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libobs-frontend-api.so.0
sudo ldconfig -p | grep xcb
libxcb.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb.so.1
libxcb.so.1 (libc6) => /lib/i386-linux-gnu/libxcb.so.1
libxcb-xv.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-xv.so.0
libxcb-xkb.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-xkb.so.1
libxcb-xinput.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-xinput.so.0
libxcb-xinerama.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-xinerama.so.0
libxcb-xfixes.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-xfixes.so.0
libxcb-xfixes.so.0 (libc6) => /lib/i386-linux-gnu/libxcb-xfixes.so.0
libxcb-util.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-util.so.1
libxcb-sync.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-sync.so.1
libxcb-sync.so.1 (libc6) => /lib/i386-linux-gnu/libxcb-sync.so.1
libxcb-shm.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-shm.so.0
libxcb-shm.so.0 (libc6) => /lib/i386-linux-gnu/libxcb-shm.so.0
libxcb-shape.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-shape.so.0
libxcb-res.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-res.so.0
libxcb-render.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-render.so.0
libxcb-render-util.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-render-util.so.0
libxcb-randr.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-randr.so.0
libxcb-randr.so.0 (libc6) => /lib/i386-linux-gnu/libxcb-randr.so.0
libxcb-present.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-present.so.0
libxcb-present.so.0 (libc6) => /lib/i386-linux-gnu/libxcb-present.so.0
libxcb-keysyms.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-keysyms.so.1
libxcb-image.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-image.so.0
libxcb-icccm.so.4 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-icccm.so.4
libxcb-glx.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-glx.so.0
libxcb-glx.so.0 (libc6) => /lib/i386-linux-gnu/libxcb-glx.so.0
libxcb-dri3.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-dri3.so.0
libxcb-dri3.so.0 (libc6) => /lib/i386-linux-gnu/libxcb-dri3.so.0
libxcb-dri2.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-dri2.so.0
libxcb-dri2.so.0 (libc6) => /lib/i386-linux-gnu/libxcb-dri2.so.0
libxcb-damage.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-damage.so.0
libxcb-composite.so.0 (libc6,x86-64) => /lib/x86_64-linux-gnu/libxcb-composite.so.0
libX11-xcb.so.1 (libc6,x86-64) => /lib/x86_64-linux-gnu/libX11-xcb.so.1
libX11-xcb.so.1 (ELF) => /lib/i386-linux-gnu/libX11-xcb.so.1

OBS is installed via unofficial Debian package.

I've tried to play with obs-sys/build.rs:

  • Change println!("cargo:rustc-link-lib=dylib=obs"); to println!("cargo:rustc-link-lib=dylib=libobs.so.0"); and println!("cargo:rustc-link-lib=dylib=libobs.so.29"); (original file after going thru all references (found out by using file /usr/lib/x86_64-linux-gnu/libobs.so.29))
  • Add println!("cargo:rustc-link-search=native="/usr/lib/x86_64-linux-gnu");
  • Move neccesary .so files inside obs-sys and add println!("cargo:rustc-link-search=native=.")

Nothing worked. I feel like I'm missing something obvious so I wonder can i get any help with this issue.

@bennetthardwick
Copy link
Owner

Hey there I'm away from my computer for a couple more weeks so I won't be able to look into this just yet sorry. It feels to me like there is something going on with the multiarch stuff on your machine but I've also seen issues with the new version of clang so it could be related to that. In fact CI seems to be broken at the moment (#43) because I need to update some stuff to work with the newer clang version I assume.

If you have time to figure out what's going on I'll be happy to review something otherwise I'll look into it when I get back 😄

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

No branches or pull requests

2 participants