< 返回版块

bell 发表于 2022-03-10 15:17

命令:cargo build --lib = note: "cc" "-Wl,--version-script=/tmp/rustc3Tar4v/list" "-m64" "/data/test/nav_test/target/debug/deps/navigation.10m2e4tgzweul3fx.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.123jx5ygcnw69fbm.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.18wht81yn0ecu7lh.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.1cjwemtorq8shiog.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.1f414g8oyl5xc5io.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.1g1scrr1d78nufc5.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.1hj5wd5drqua4b86.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.1o6v3wctuaes4c98.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.1pghwnqegtyycuqi.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.1xtf7nfnkz79i883.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.203lpbhkrcmla13d.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.21orwsm4goob8yu4.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.22pgd7jirtcbrjma.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.24ahbcb9qm6tof9x.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2542x3yyg44xfxvw.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.268m8451k2hsavb0.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.26n2ffxvm9vn8eli.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2aiu85gxklc74bkp.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2czg8nzhvwjkduu5.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2jjf3ilk5mff4gq2.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2n08vmpdl6h09egv.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2qga7g4e5pn5fkbf.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2ra7r4au7spgarsu.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2uk8dx26e1ofb32i.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2vwt1yn8llkrg2x1.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2wk4f5qh20tkjxnx.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.2yhut17jk54qdf5r.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.309u6w1kcsvbmopc.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.33c9ys6wnhnz8ykq.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.3bwp00o8rzatq7o2.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.3chfr57ibvnetva2.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.3cov8wtm5q0nqag4.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.3cvqsnq3gyucu0am.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.3dfbhqy3ypc980lj.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.3h2gsae329s4kbh0.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.3iwzk5rudz8dytza.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.3tyt8elq0xr1q3v1.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.3yyzr4kv2ow3qj1k.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.3zpov9cs1n02nb9s.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.47jymsbysgbbsbr8.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.4c825kpoo490m98e.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.4co6eijxoig8xj50.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.4eq4j4stgp7yafko.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.4hbnbmn5yk4s7o2x.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.4onxywxdc6z7tudn.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.4sas1322yghrtcze.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.50l0ds1ldy6f0eox.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.5cnssue0es59y9rn.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.7ektfccy0rs1g6u.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.bwya21dutapya0c.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.kanwvsxeedopwps.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.l3msvxr1dzlyej8.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.oixfgvgkon8mmop.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.r7e2aa2ogg5v699.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.w6a9a7k0agzmso4.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.zmvx1rmp0iev9hg.rcgu.o" "/data/test/nav_test/target/debug/deps/navigation.1um3n5v7tgcrk75y.rcgu.o" "-Wl,--as-needed" "-L" "/data/test/nav_test/target/debug/deps" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "-Wl,--whole-archive" "-l./libs/libnav" "-Wl,--no-whole-archive" "/data/test/nav_test/target/debug/deps/librustler-b5f116543223465b.rlib" "/data/test/nav_test/target/debug/deps/liblazy_static-6716dd773db6a16d.rlib" "/data/test/nav_test/target/debug/deps/librustler_sys-dae39eabbd4e255e.rlib" "/data/test/nav_test/target/debug/deps/liblibc-ad862ff6eeea88a9.rlib" "-Wl,--start-group" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-59854d433099a38f.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-8a5397a80d3764ef.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-141bbb07ac2950c8.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-0adb2559be38dca5.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-2ed048b9df28c5ce.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libmemchr-a3364b42e9964861.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-2ac4048431f5af83.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-97d1ddbe3d503566.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-f5f26d83d6888cf9.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-8736150214a52c46.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-9874e269c373f5e9.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-f80d209928f2ab1f.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-79a09bd0bc8902dd.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-5c2d083c3d90e876.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-50c4c8d7e28984fd.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-3baf7b7cec1dbdf0.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-48f366d15e3735ba.rlib" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-639ed145d6fb1c0f.rlib" "-Wl,--end-group" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-ba78ad69bde4530b.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-L" "/usr/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/data/test/nav_test/target/debug/deps/libnavigation.so" "-Wl,--gc-sections" "-shared" "-Wl,-zrelro,-znow" "-nodefaultlibs"

= note: /bin/ld: cannot find -l./libs/libnav collect2: error: ld returned 1 exit status

链接命令: #[link(name="./libs/libnav",kind="static")]

检查了name的目录和执行build命令的相对路径关系是正确的 跪求 大佬提示!

评论区

写评论

还没有评论

1 共 0 条评论, 1 页