slint icon indicating copy to clipboard operation
slint copied to clipboard

/usr/bin/ld: cannot find -lQt5Core: No such file or directory

Open zhuisu930 opened this issue 1 year ago • 6 comments

cargo build
   Compiling slint_demo v0.1.0 (/home/linux/RustroverProjects/slint_demo)
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/bin:/home/linux/bin:/home/linux/.cargo/bin:/home/linux/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustc2RxaUq/symbols.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.1cwyp58fhtzno6wk.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.1e3x5gplwjmgey98.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.1fon4sbqc4u0ar90.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.1qa7lvnywnvxtyfj.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.1rce0h5apbknylq3.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.1tav2o1a2j6svhou.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.1twzezw3pwv041rz.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.1ycqgux9cbl5f2ub.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.1zhl5dyv19h5fegu.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.206gwtpzv307ss14.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.209s5olmto1gxnrh.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.20weudajx3jjp71x.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.2165tfqbt6rcmln3.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.26fbsef3a2bonww5.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.26rdw12nyid6i2ob.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.277i5im8a1a26a9e.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.28kgp52ntvfjz5d4.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.2ee2kbl8x354fyx9.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.2ophw7wmqvzkze0t.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.2ws31pckj1yd7y55.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.2wu6t2mkoysi0oxl.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.3a2getzezqmo8461.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.3d1do40gpbes3ts0.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.3f1fle1xj456xg5y.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.3fx7gsah6fwibu1m.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.3js7rejigepduno6.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.3n86862j4gdpzjfr.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.3s5rx5o4j4vinrva.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.3zyubbty5zkcjuyz.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.43c1tj6higpjow7e.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.45jg5j0aj5ri3ydm.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.462xrelce4tgdgyn.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.46unmgtmly6wmdzu.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.4brjho5wwlqd6bba.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.4p98q91m9zby8i8t.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.4qmr1qesp8xq938d.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.4r79z0kz4ca7x1ta.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.4td4kqvh5kz4v5wv.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.4tm7ghz6giododg5.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.4u0865vnne02xpg.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.50k5w2eqc9izymv2.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.532b9joq1gywjufb.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.53q7lhfnckhie2da.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.57chwybkrjmlk9cz.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.5bmx7jxk9e27gxh0.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.5ekrd4o9ggbnrnxz.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.7yaof87zkiiatrb.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.f6sfosdmcz1umsw.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.fx1skpg51z78yvi.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.jh1oxi7ydzsviey.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.mh0k85ld2pmbd4d.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.mmisy8f35hc5ja6.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.nvsa7pq9rjw66c9.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.tgohtpgbny0ll2g.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.uk4y430nvjdisyj.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.vt2oabngepsng1w.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.xs9v8ccmwvo1f5u.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.ywvzvpf2epc5yz6.rcgu.o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697.3w66icne6kbw0636.rcgu.o" "-Wl,--as-needed" "-L" "/home/linux/RustroverProjects/slint_demo/target/debug/deps" "-L" "D:/Qt/qt/5.15.2/msvc2019_64/lib" "-L" "/home/linux/RustroverProjects/slint_demo/target/debug/build/i-slint-backend-qt-dc5bb30325c322f1/out" "-L" "/home/linux/RustroverProjects/slint_demo/target/debug/build/qttypes-b5ebe632101dc694/out" "-L" "/usr/lib/x86_64-linux-gnu" "-L" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-lQt5Core" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libslint-d0bddbf9ebab29b6.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libi_slint_backend_selector-f759c403db5e9841.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libi_slint_backend_winit-558b2efe8a3b485e.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsend_wrapper-ee2cc264a9324c7d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libaccesskit_winit-8191cb79be178a4d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libaccesskit_unix-d8db673092388c42.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libasync_once_cell-52947c411aeced87.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libatspi-520b60622655ce1f.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libatspi_connection-1b8691b51842641a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libatspi_proxies-3ab2ce305335bf3c.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libatspi_common-8fe3ebb683517b59.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libaccesskit_consumer-578235ea3874b9c0.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libzbus-bd0a2592c205ba17.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libasync_fs-cb103a16f3e67199.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libblocking-0f6aeaf2d082cf90.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libpiper-a0adac4908e52ecb.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libatomic_waker-48902a0f00d67dce.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libasync_channel-7dbc554817674c0e.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libhex-26fcc039634d6996.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libasync_executor-92190c4779986029.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfutures_lite-9859abf6fdb83890.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libasync_task-0fd34303420b39ad.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libasync_lock-47ecd1068b4fb0bf.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libevent_listener_strategy-1cdabf7680f47e9a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libevent_listener-f2a418ef99be73b4.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libordered_stream-47a7caf21de3d3dc.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libasync_broadcast-396f7797d58c7967.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/librand-4e8da3cb0639585a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/librand_chacha-301987e4c1193b15.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libppv_lite86-ceccd0b09e3a5a4b.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/librand_core-6b6e6577012252f5.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libxdg_home-641ab565c5662c63.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsha1-902824d3a2da39fa.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcpufeatures-48b640816535b711.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libdigest-4399a308cbafe867.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libblock_buffer-5fe12cb4cb82fa62.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcrypto_common-5c609e45e62c3fda.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libgeneric_array-db1cbe929a4bae85.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libtypenum-bf0f34171b8ca4af.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfutures_util-c91d2cf49cc34f52.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfutures_sink-9fe8e1cff9fa882c.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfutures_task-86988f567a880ca2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libpin_utils-568cc56a780181c2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libasync_io-732914c62f47a08c.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/librustix-7b1f2380a41a1eb2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libio_lifetimes-ec53f582df9ee7c7.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblinux_raw_sys-7d18d20d33a96565.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libpolling-cc8b29e2bac832e3.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libconcurrent_queue-6040c42645fbd2c8.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcrossbeam_utils-0c1eb614d27f0e5c.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libasync_lock-af1b1ebffae8a3c0.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libevent_listener-346605a9db2c0e34.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsocket2-b8647ddabcb004c0.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfutures_lite-fd39b6f6294b98c4.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libmemchr-7e59f8de638f1b49.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfastrand-e6406709308aa321.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfutures_io-f8605fb8e9e26909.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfutures_core-9e2aa51b2585f42b.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libwaker_fn-9f91b90a01a1dd7d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libparking-6febcbc7bfa88ee8.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libzbus_names-594dd572bafdcbec.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libzvariant-8884575c81e1588d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libenumflags2-66ec96a384d79d28.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libserde-df683f0db04492b3.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libstatic_assertions-31ba3f8d1564dfe4.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsoftbuffer-19fff7067c2abe61.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfastrand-5ad67a950a824b29.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libtiny_xlib-13688ad669af22db.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libglutin_winit-127deae381899aac.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libaccesskit-4ce43e96ea277c1d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libglutin-eb4e108b189dc295.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libglutin_glx_sys-fdee53aaacb2c25a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libglutin_egl_sys-03bddfb6fd72d0de.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libi_slint_renderer_femtovg-eeb38792390a7f8c.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfemtovg-6fa552bec05e3498.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libglow-83b6d1765ca4c166.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libimgref-d979f62d9ab88a64.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblru-a9a122685acbac51.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libgenerational_arena-d7dadb40e37e2c94.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfnv-4d87e4d2bb291f2a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libwinit-6e4b9e5a2bc3ec2f.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsctk_adwaita-2891160bcf5ca7f0.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libab_glyph-288580675c8a169a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libowned_ttf_parser-f1233e0543698f74.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libab_glyph_rasterizer-64591ad0758f1363.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libraw_window_handle-de8eba9ac928b8ba.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libpercent_encoding-24f9b03c0089268c.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libx11rb-e3126b5869ce2348.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libx11rb_protocol-efc3ddd7b60d3793.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libwayland_protocols_plasma-08ae9420acc2e708.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libx11_dl-8ed8ab3c4428d33f.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libxkbcommon_dl-4516af788f9a0aa6.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libxkeysym-275f25eaa25b5950.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsmol_str-e6d74db7d1cc33dd.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libraw_window_handle-f01745ef50b337e6.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcopypasta-0beb074eee1263c2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libx11_clipboard-6aec26edd513e040.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libx11rb-abfcb7c6cc03435e.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libgethostname-f9f167fe86f84009.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libas_raw_xcb_connection-b10f9d2429054ffa.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblibloading-83db7c797ca32a3b.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libx11rb_protocol-37784783627dd607.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsmithay_clipboard-cbf50c8df6511dee.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsmithay_client_toolkit-1bb57bcdaa9021f9.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libwayland_cursor-8b47f76810aae1b1.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libxcursor-1a78bd730640cc18.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libmemmap2-b07cf4446eefc1b2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libwayland_protocols_wlr-5c3702e8934eb439.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libwayland_protocols-f7140fc167470bac.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libwayland_csd_frame-a073b29c123c0e84.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcursor_icon-2ad80571868b8eb4.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcalloop_wayland_source-be4639e9f9c75173.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libwayland_client-2f556f2c52870b75.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libwayland_backend-00e83c7b10a56c13.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libdowncast_rs-cbc0b23857f6c1f9.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libnix-c3a2c8fe04dfe237.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libmemoffset-7cc367c6f21e2d8f.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libscoped_tls-1dfecbaa090430fc.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libwayland_sys-e76954c85cd9d443.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libdlib-371a24ba246d273b.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcalloop-d288e3aa482f4584.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libthiserror-88a66262e36e097a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libpolling-ee5c4780495a53ae.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/librustix-bb1b775af1b12858.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libbitflags-fd0b3a5a44c2c8c2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblinux_raw_sys-c269bb6e60506862.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libtracing-60f72899cc2c2fef.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libpin_project_lite-a76229303093e015.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libtracing_core-c6690e4ba60e8580.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libi_slint_backend_qt-97eea6565e3e91d9.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libqttypes-0b8038aaffa69ac8.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcpp-2ed1d475d84bb04f.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libi_slint_core-4df710a3be0511d1.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/librustybuzz-ea08fa755297ca78.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfontdue-825a89140ffcd2b7.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libttf_parser-f35d51da8adfccce.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libhashbrown-bc896614e40286d8.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libahash-b6facf2879583379.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libgetrandom-0cabfb2e593119d6.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libzerocopy-e653a9237020a6cf.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liballocator_api2-76a1655c0106d913.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libpin_weak-f3ee6e0c13975c3d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libslab-196fddbee6a75cdd.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libimage-ee019a76cccc2f14.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcolor_quant-b7cf6246af0c842e.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libbyteorder-2e4da680045a0c80.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libnum_rational-345649a0c3bab3d2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libnum_integer-7cc373535c792425.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libjpeg_decoder-53d0a3f1542a8e3f.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libclru-38b62254fba61352.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblyon_extra-fed0479777c89c23.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblyon_algorithms-a9ed6d20536f3d7e.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libscopeguard-2448006f136b7268.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libscoped_tls_hkt-b7ee6317b87dacce.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libstrum-cc0b6df0810a0248.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libunicode_linebreak-727e31428f07a20f.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libinteger_sqrt-11c5c45f6cc55ead.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libpin_project-e3c49a279a1566cb.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libunicode_segmentation-aae0a5625b368fa2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libonce_cell-37e32557d532adf2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libvtable-f8e2056c6e0af68d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libstable_deref_trait-0e10adbab816b4e1.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libi_slint_common-dd9c8832a1fc8067.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblibloading-7aa0c1e8ba9725f9.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libresvg-3f017989bebd5a4b.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/librgb-6ef5422f4a3c792d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libusvg-3183b455bbb9e9fc.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libbase64-95d0da1728bb1b14.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libusvg_text_layout-7389ba5a6cb198df.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libunicode_vo-95815e189654a7a2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libunicode_bidi-b30a1f155563ac19.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/librustybuzz-3624dedef66711f1.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libunicode_bidi_mirroring-d1721304a20320ac.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libunicode_script-b574509ba794cdd6.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libunicode_properties-9c7bdba6ef7bbd2f.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libunicode_ccc-1fb9e26acbd70cc2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsmallvec-25285d4c62e4b1ce.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfontdb-2384316d71dede49.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfontconfig_parser-f969c586b477d7df.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libmemmap2-d32acf8e0a23067e.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblibc-cb22630470207ca8.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libtinyvec-3fd4ab6967b9f11c.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libtinyvec_macros-267d34b29e8276e3.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libslotmap-c98146befe0ac485.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libttf_parser-ab69d10df19b60eb.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libxmlwriter-b0ce6d9f10ce4df1.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libusvg_parser-8f979620a313abe3.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsimplecss-d70ab61e9b9efa8c.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libdata_url-a0da99536cfe08e9.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libimagesize-70b710ab74b8e298.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libroxmltree-208fc6817491ffa9.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libxmlparser-33dbb67db5d2d51b.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libusvg_tree-d173056e0ca9e440.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/librctree-245aa51ad64a3b84.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsvgtypes-eadca071b2ff5230.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libkurbo-105e21b1d2caccb8.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsiphasher-17f60dcc2f470be6.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libtiny_skia-4fb1d16367a04fec.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libpng-d2af50fd5482bf6d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libflate2-81472e17c27f011e.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libminiz_oxide-4b77c2e8fe933f4d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfdeflate-b8722e0a9b691a1c.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libsimd_adler32-7f9432a8f56af434.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcrc32fast-faf80f280cc1bb4a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libbitflags-1926cec1a16924e0.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libcfg_if-a4949322dd83a0a2.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblog-d9ea7d312521bc79.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libtiny_skia_path-fc3a792fc0a45dbb.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libbytemuck-90968895120a8bcf.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libstrict_num-0a1cb07e305b7f6f.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfloat_cmp-5528d339db300418.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libarrayref-e1a33ae3c406bf07.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblyon_path-dd56dcf6b25b9c7a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/liblyon_geom-342b99e68af1841a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libarrayvec-20f1930cff3dbb7a.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libconst_field_offset-a0ac4c683e6a17ca.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libfield_offset-c4940e49c45d7417.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libmemoffset-735a9caf36edca0d.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libportable_atomic-1eb4830af853d93b.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libeuclid-c38b9201c425a91b.rlib" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/libnum_traits-a3d7fd46fe8c37f6.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-8f88c761e33f2651.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-f9018f9cee1cc5ff.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-919f89587cbed68d.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-c6624cb4360306cd.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-4930b3dc482158f7.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-65bea4bb6af40828.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-bc6864da821ce9a2.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-1bccb7a942e1b311.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-356231f77d1e268a.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-80ed5799bf463787.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-9c3df673b2797081.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-c6afbee8d1102512.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-682387162b570769.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-05a2cedbb78c1d4f.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-f002c8f83a289c4b.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-649be05783c8912e.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-13da980d6c74fec5.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-46a989d0e2cef827.rlib" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-b114db70ea0690b1.rlib" "-Wl,-Bdynamic" "-ldl" "-ldl" "-lstdc++" "-lstdc++" "-lQt5Core" "-lQt5Gui" "-lQt5Widgets" "-ldl" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/linux/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/linux/RustroverProjects/slint_demo/target/debug/deps/slint_demo-aff221a989234697" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"
  = note: /usr/bin/ld: cannot find -lQt5Core: No such file or directory
          collect2: error: ld returned 1 exit status
          

error: could not compile `slint_demo` (bin "slint_demo") due to previous error

My Qt configuration is qmake -query: 2024-02-22 22-49-42屏幕截图

and file libQt55Core 2024-02-22 22-50-33屏幕截图

zhuisu930 avatar Feb 22 '24 14:02 zhuisu930

I can find this libQt5Core.so in my system, what't wrong?

zhuisu930 avatar Feb 22 '24 14:02 zhuisu930

Looks like you indeed have the Qt5 packages of your distribution installed. That is enough to find the library at run-time.

Do you have the dev package for Qt5 installed, too? The linker needs it at link-time during the build.

hunger avatar Feb 23 '24 09:02 hunger

The command line you pasted has "-L" "/usr/lib/x86_64-linux-gnu" (good) and according to your screenshot /usr/lib/x86_64-linux-gnu/libQt5Core.so exists (good). It's not apparent to me why the linker can't find the file.

Are you using WSL by chance?

As a workaround, you can set an environment variable: export SLINT_NO_QT=1.

tronical avatar Feb 23 '24 09:02 tronical

set an environment variable: export SLINT_NO_QT=1

The command line you pasted has "-L" "/usr/lib/x86_64-linux-gnu" (good) and according to your screenshot /usr/lib/x86_64-linux-gnu/libQt5Core.so exists (good). It's not apparent to me why the linker can't find the file.

Are you using WSL by chance? NO, My system is ubuntu 22.04, The /usr/lib/x86_64-linux-gnu/libQt5Core.so library is a soft link that points to /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.13.3 As a workaround, you can set an environment variable: export SLINT_NO_QT=1. Setting an environment variable: export SLINT_NO_QT=1 for compilation, but the error remains the same

zhuisu930 avatar Feb 27 '24 05:02 zhuisu930

Looks like you indeed have the Qt5 packages of your distribution installed. That is enough to find the library at run-time.

Do you have the dev package for Qt5 installed, too? The linker needs it at link-time during the build.

The qt5base dev package has been installed

zhuisu930 avatar Feb 27 '24 05:02 zhuisu930

Any news on this issue? I'm afraid we are a bit clueless on what is going on. Something seems wrong with the setup. You will have to investigate yourself why this error occurs. The command seems alright to me, so it is a mystery why it reports that the library is not found. Let us know if there is something we can do in Slint to address this issue.

ogoffart avatar Mar 23 '24 07:03 ogoffart

i'm going to close this issue as i don't think we can do something. But please let me know if you have more info that would let us do something about it

ogoffart avatar Jun 28 '24 13:06 ogoffart